X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e6d7471ab6a64a438d42000898d93b4518d77b38..d76756d202aa3e3e12004e3a9f31898292b078d6:/app/assets/stylesheets/common.scss diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index df7eb57c7..e660a0930 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1,14 +1,14 @@ @import "parameters"; +@import "bootstrap-custom"; /* Styles common to large and small screens */ /* Minimal CSS reset */ -html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input { +html, body, ul, ol, li, form, fieldset, legend, input { margin: 0; padding: 0; border: 0; - font-size:100%; } fieldset,img { border: 0; } @@ -108,23 +108,6 @@ body { height: 100%; } -h1, h2, h3 { - font-weight: 600; - line-height: 1.2; -} - -h4, h5 { - font-weight: 500; -} - -h1 { - font-size: 18px; -} - -h2, h3 { - font-size: 16px; -} - p > img { width: auto; max-width: 100%; @@ -280,12 +263,19 @@ header { } h1 { + font-size: 18px; + font-weight: 600; + line-height: 1.2; margin: 0; padding-top: 15px; a { color: #000; } + + a:hover { + color: #000; + } } } @@ -552,7 +542,6 @@ body.compact { float: left; width: $sidebarWidth; background: #fff; - font-size: 12px; #sidebar_loader { display: none; @@ -567,12 +556,13 @@ body.compact { h2 { padding: $lineheight $lineheight $lineheight/2; + font-size: 1.5rem; } h3, h4 { margin-top: $lineheight; margin-bottom: $lineheight/2; - font-size: 13px; + font-size: 1.25rem; } .close-wrap { @@ -1118,21 +1108,12 @@ tr.turn:hover { #sidebar .changesets { li { - padding: 15px 20px; - border-bottom: 1px solid $grey; cursor: pointer; &.selected { background: $list-highlight; } /* color is derived from changeset bbox fillColor in history.js */ } - h4 { - margin: 0; - a { - color: #000; - } - } - .comments { float: right; color: $darkgrey; @@ -1201,7 +1182,6 @@ tr.turn:hover { background-color: #F6F6F6; border: 1px solid $grey; border-radius: 3px; - font-size: 12px; table-layout: fixed; border-collapse: separate; @@ -1233,8 +1213,8 @@ tr.turn:hover { .colour-preview-box { float: right; - width: 12px; - height: 12px; + width: 14px; + height: 14px; margin: 4px 0px; border: 1px solid rgba(0, 0, 0, .1); // add color via inline css on element: background-color: ; @@ -1287,17 +1267,10 @@ tr.turn:hover { .query-results { display: none; - - h3 { - padding: $lineheight $lineheight $lineheight/2; - margin: 0; - } + padding: 0 $lineheight $lineheight/2; ul { li { - padding: 15px 20px; - border-bottom: 1px solid $grey; - &.query-result { cursor: pointer; } @@ -1393,8 +1366,6 @@ tr.turn:hover { .content-heading { background: $lightgrey; - - h1 { font-size: 22px; } } .content-body { @@ -1496,7 +1467,6 @@ tr.turn:hover { /* Rules for the trace list shown by the traces tab etc */ #trace_list { - font-size: $lineheight/2; border-width: 0px; text-align: right; @@ -1504,38 +1474,6 @@ tr.turn:hover { font-size: 12px; color: gray; } - - .trace_pending { - color: red; - } - - .trace_public { - color: green; - } - - .trace_identifiable { - color: green; - } - - .trace_trackable { - color: red; - } - - .trace_private { - color: red; - } -} - -/* Rules for the trace view */ - -.trace-show { - .trace_pending { - color: red; - } - - .geo { - display: inline; - } } /* Rules for the new trace form */ @@ -1651,7 +1589,6 @@ tr.turn:hover { /* Rules for the user list */ #user_list { - font-size: $lineheight/2; width: 100%; tr { @@ -1691,7 +1628,6 @@ tr.turn:hover { h2 { margin-top: 0; margin-bottom: $lineheight/2; - font-size: 24px; } } @@ -2106,9 +2042,6 @@ textarea { padding: 5px; width: 100%; min-height: 50px; -} - -textarea.comment { resize: vertical; } @@ -2144,13 +2077,6 @@ abbr.geo { border-bottom: none; } -/* Rules for RSS buttons */ - -.rsssmall { - position: relative; - top: 3px; -} - /* General styles for action lists / subnavs / pager navs */ ul.secondary-actions { @@ -2320,24 +2246,6 @@ a.button { .richtext, .prose { - h1, h2 { - padding-bottom: $lineheight/2; - border-bottom: 1px dashed $grey; - margin-bottom: $lineheight/2; - } - - h1 { - font-size: 24px; - } - - h2 { - font-size: 18px; - } - - h3 { - font-size: $typeheight; - } - code { font-size: 13px; background: $lightgrey; @@ -2905,12 +2813,6 @@ input.richtext_title[type="text"] { } .report-disclaimer { - background: #fff1f0; - color: #d85030; - border-color: rgba(216, 80, 48, 0.3); - padding: 10px 20px; - margin-bottom: $lineheight; - ul { padding-left: $lineheight; margin-bottom: 0;