X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4988801dc6c1175bde14b8001dbc91638c316f70..c819bec8b7b81fb2766a67247440375e4a837d10:/vendor/assets/iD/iD.css.erb diff --git a/vendor/assets/iD/iD.css.erb b/vendor/assets/iD/iD.css.erb index 797ec6189..c7e02c29b 100644 --- a/vendor/assets/iD/iD.css.erb +++ b/vendor/assets/iD/iD.css.erb @@ -2247,7 +2247,7 @@ a:visited, a { } a:hover { - color:#597be7; + color: #597be7; } /* Forms @@ -2721,7 +2721,7 @@ button.save.has-count .count::before { position: absolute; right: 0; top: 0; - height: 59px; + height: 60px; z-index: 50; } @@ -2732,6 +2732,7 @@ button.save.has-count .count::before { border-top: 1px solid #ccc; background-color: #fafafa; width: 100%; + z-index: 1; } .sidebar-component .body { @@ -4492,16 +4493,20 @@ div.full-screen > button:hover { border-radius: 4px 4px 0 0; } -.help-wrap .toc li:nth-last-child(2) a { +.help-wrap .toc li:nth-last-child(3) a { border-bottom: 1px solid #CCC; border-radius: 0 0 4px 4px } +.help-wrap .toc li.shortcuts a, .help-wrap .toc li.walkthrough a { overflow: hidden; margin-top: 10px; border-bottom: 1px solid #ccc; border-radius: 4px; +} + +.help-wrap .toc li.walkthrough a { text-align: center; } @@ -4554,13 +4559,16 @@ img.tile { } .tile-label-debug { + font-size: 10px; background: rgba(0, 0, 0, 0.7); color: #fff; position: absolute; text-align: center; - width: 128px; + padding: 5px; border-radius: 3px; z-index: 2; + margin-left: -50px; + margin-top: -20px; transform-origin:0 0; -ms-transform-origin:0 0; @@ -4575,7 +4583,7 @@ img.tile { } img.tile-debug { - border: 1px solid red; + outline: 1px solid red; } img.tile-loaded { @@ -4714,38 +4722,96 @@ img.tile-removing { /* Info Box ------------------------------------------------------- */ -.infobox { +.info-panels { + display: flex; + flex-flow: row-reverse wrap-reverse; position: absolute; z-index: 1; right: 0; bottom: 30px; - width: 240px; - border-radius: 4px 0 0 0; - border-bottom: 1px solid black; -ms-user-select: element; } -.infobox .infobox-heading { - display: block; - border-radius: 4px 0 0 0; +.info-panels h1, +.info-panels h2, +.info-panels h3, +.info-panels h4, +.info-panels h5 { + display: inline-block; + margin-bottom: 0; +} + +.info-panels h1, +.info-panels h2, +.info-panels h3 { + color: #ff8; +} + +.panel-container { + flex: 0 0 auto; + margin: 2px 0 0 2px; + border-radius: 4px; + border: 1px solid rgba(0, 0, 0, 0.75); + padding-bottom: 10px; + width: 250px; +} + +.panel-container .panel-title { + border-radius: 4px 4px 0 0; +} + +.panel-title { padding: 5px 10px; - height: 30px; } -.infobox ul { +.panel-title button.close { + float: right; + height: 20px; + background: none; + color: #ddd; +} + +.panel-title button.close:hover { + color: #fff; +} + +.panel-title button.close .icon { + height: 20px; + width: 16px; +} + +.panel-content { padding: 5px 10px; + position: relative; } -.infobox .button { - position: absolute; +.panel-content .button { + display: inline-block; background: #7092ff; border-radius: 2px; padding: 0 4px; + margin-top: 10px; color: white; - top: 40px; - right: 10px; } +.panel-content-history .links a { + margin-left: 10px; +} +[dir='rtl'] .panel-content-history .links a { + margin-left: auto; + margin-right: 10px; +} + +.panel-content-history .view-history-on-osm { + display: block; + margin-top: 10px; +} + +.panel-content-location .location-info { + margin-top: 10px; +} + + /* About Section ------------------------------------------------------- */ @@ -4772,7 +4838,7 @@ img.tile-removing { .base-layer-attribution, .overlay-layer-attribution { position: absolute; - color: #888; + color: #ccc; font-size: 10px; } @@ -4788,11 +4854,26 @@ img.tile-removing { content: '; '; } -.source-image { +.attribution a, +.attribution a:visited { + color: #ccf; +} + +.attribution a:hover { + color: #aaf; +} + +.attribution .source-image { height: 20px; - vertical-align:top; + vertical-align: middle; + border-radius: 3px; +} + +.attribution span { + margin: 0 3px; } + #footer { pointer-events: all; display: block; @@ -5157,6 +5238,107 @@ img.tile-removing { } +/* Shortcuts Modal +------------------------------------------------------- */ +.modal-shortcuts { + width: 90%; + max-width: 950px; +} + +.modal-shortcuts .modal-section:last-child { + padding-top: 10px; + min-height: 275px; +} + +.modal-shortcuts .tabs-bar { + text-align: center; + padding-bottom: 5px; + font-size: 16px; + font-weight: bold; +} + +.modal-shortcuts .tab { + display: inline-block; + padding: 5px 10px; + margin: 0 5px; + cursor: pointer; + color: #666; +} +.modal-shortcuts .tab.active { + color: #7092ff; +} +.modal-shortcuts .tab:hover { + color: #597be7; + background-color: #efefef; +} + +.modal-shortcuts .shortcut-tab { + display: flex; + flex-flow: row wrap; +} + +.modal-shortcuts .shortcut-column { + flex: 1 1 50%; + width: 50%; +} + +.modal-shortcuts .shortcut-tab-tools .shortcut-column { + flex: 1 1 100%; + width: 100%; +} + +.modal-shortcuts td { + padding-bottom: 5px; +} + +.modal-shortcuts .shortcut-section { + padding: 20px 0 10px 0; +} + +.modal-shortcuts .shortcut-keys { + padding-right: 10px; + color: #767676; + text-align: right; +} +[dir='rtl'] .modal-shortcuts .shortcut-keys { + padding-right: auto; + padding-left: 10px; + text-align: left; +} + +.modal-shortcuts .shortcut-keys kbd { + display: inline-block; + text-align: center; + padding: 3px 5px; + font-size: 11px; + line-height: 12px; + min-width: 12px; + color: #555; + vertical-align: baseline; + background-color: #fcfcfc; + border: solid 1px #ccc; + margin: 0 2px; + border-bottom-color: #bbb; + border-radius: 3px; + box-shadow: inset 0 -1px 0 #bbb; +} + +.modal-shortcuts .shortcut-keys svg.mouseclick use.left { + fill: rgba(112, 146, 255, 1); + color: rgba(112, 146, 255, 0); +} +.modal-shortcuts .shortcut-keys svg.mouseclick use.right { + fill: rgba(112, 146, 255, 0); + color: rgba(112, 146, 255, 1); +} + +.modal-shortcuts .shortcut-keys .gesture { + color: #333; + padding: 3px; +} + + + /* Save Mode ------------------------------------------------------- */ .mode-save a.user-info { @@ -5512,6 +5694,9 @@ img.tile-removing { .map-control .tooltip { min-width: 160px; } +.map-control .shortcuts .tooltip { + max-width: 160px; +} /* Move over tooltips that are near the edge of screen */ .add-point .tooltip { @@ -6090,3 +6275,11 @@ li.hide + li.version .badge .tooltip .tooltip-arrow { [dir='rtl'] .spin-control button.increment{ border-bottom-left-radius: 3px; } +/* modal */ +[dir='rtl'] .modal > button { + position: absolute; + left: 0; + right: unset; + top: 0; +} +