X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1aa63d92bcbcca6edcd66c55a026e0b1e4413603..8e85d0cfd1cf18c3264ef7493644719eca54dda8:/app/assets/stylesheets/common.scss diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 56c4515d0..d3488fe73 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -150,6 +150,10 @@ small, aside { .piwik { border: 0; } +[dir=rtl] { /* no-r2 */ text-align: right; } + +[dir=ltr] { /* no-r2 */ text-align: left; } + /* Rules for icons */ .icon { @@ -1324,11 +1328,11 @@ tr.turn:hover { #maxlat { margin-top: -1px; } #minlon { float: left; - margin-left: -1px; + /* no-r2 */ margin-left: -1px; } #maxlon { float: right; - margin-right: -1px; + /* no-r2 */ margin-right: -1px; } #minlat { margin-bottom: 0; } } @@ -1456,6 +1460,10 @@ tr.turn:hover { } } +[dir=rtl] .header-illustration { + transform: scaleX(-1); +} + #content.maximised { top: 0; left: 0; @@ -1656,10 +1664,18 @@ tr.turn:hover { .diary_post { position: relative; - margin-top: $lineheight/2; padding-top: $lineheight; + padding-bottom: $lineheight/2; border-top: 1px solid #ccc; + &:first-of-type { + margin-top: $lineheight/2; + } + + &.deemphasize { + background-color: #fee; + } + .post_heading { margin-bottom: $lineheight; @@ -1686,7 +1702,7 @@ tr.turn:hover { /* Rules for the diary entry page */ -.diary_entry { +.diary_entries { #map { position: relative; width: 90%; @@ -1704,14 +1720,17 @@ tr.turn:hover { max-width: 740px; } .diary-comment { - margin-top: $lineheight/2; border-top: 1px dashed #ccc; padding-top: $lineheight/2; + padding-bottom: $lineheight/2; &:first-child { - margin-top: $lineheight; + margin-top: $lineheight/2; padding-top: $lineheight; border-top: 1px solid #ccc; } + &.deemphasize { + background-color: #fee; + } p { margin-bottom: $lineheight/2; } @@ -1722,7 +1741,7 @@ tr.turn:hover { } } -.diary_entry-show img.user_thumbnail { +.diary_entries-show img.user_thumbnail { float: left; } @@ -2314,6 +2333,7 @@ a.button { font-size: 13px; background: #e8e8e8; padding: 2px 3px; + white-space: pre-wrap; code { padding: 0; @@ -2341,11 +2361,11 @@ a.button { margin-left: $lineheight; } - ul li { + ul > li { list-style: disc; } - ol li { + ol > li { list-style: decimal; } } @@ -2619,7 +2639,7 @@ input.richtext_title[type="text"] { } .sprite.x { - background-position: -50px 0; + /* no-r2 */ background-position: -50px 0; } .sprite.term { @@ -2628,27 +2648,27 @@ input.richtext_title[type="text"] { } .sprite.node { - background-position: -100px 0; + /* no-r2 */ background-position: -100px 0; } .sprite.way { - background-position: -150px 0; + /* no-r2 */ background-position: -150px 0; } .sprite.tag { - background-position: -200px 0; + /* no-r2 */ background-position: -200px 0; } .sprite.editor { - background-position: -250px 0; + /* no-r2 */ background-position: -250px 0; } .sprite.question { - background-position: -300px 0; + /* no-r2 */ background-position: -300px 0; } .sprite.rules { - background-position: -350px 0; + /* no-r2 */ background-position: -350px 0; } .start-mapping {