Files
iD/css/app.css
Saman Bemel-Benrud 16e87ca12e refining buttons.
2012-12-06 19:58:21 -05:00

505 lines
7.7 KiB
CSS

/* Basics
------------------------------------------------------- */
body {
font:normal 12px/20px 'Helvetica Neue', Arial, sans-serif;
margin:0;
padding:0;
color:#444;
}
#iD * {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
h2 {
font-size: 24px;
font-weight: bold;
line-height:40px;
}
h3 {
font-size: 18px;
font-weight: bold;
line-height:30px;
}
:focus {
outline-color: transparent;
outline-style: none;
}
p {
margin:0;
padding:0;
}
a:visited, a {
color: #345692;
}
a:hover {
color:#000;
}
table th {
text-align:left;
}
input[type=text] {
font-size:12px;
line-height:20px;
padding:1px 2px;
}
input[type=text]:focus {
border-color:#222;
}
/* Utility Classes
------------------------------------------------------- */
.fillL { background-color: white;}
.fillL2 { background: #f7f7f7 url(/img/background-pattern-1.png) repeat;}
div.hide {
display:none;
}
a.selected {
background:#DDE4FF;
}
/* Buttons */
button {
border:0;
line-height:20px;
cursor:pointer;
border:1px solid #aaa;
box-shadow: inset 0 0 0 1px #fff;
color:#222;
background: white;
font-weight:bold;
white-space:nowrap;
font-size:14px;
display: inline-block;
height:40px;
margin:10px;
}
button:hover {
background-color: #ececec;
}
button.active:not([disabled]) {
background:#7392ff;
color:#fff;
}
button.wide,
button.narrow {
border-radius:4px;
}
button.wide,
button.add-button {
width: 80px;
}
button.narrow,
button.add-button:first-child {
width:40px;
}
.buttons-joined {
display: inline-block;
margin:10px;
}
.buttons-joined button {
border-right-width: 0;
border-radius:0;
margin: 0;
}
.buttons-joined button:first-child {
border-radius:4px 0 0 4px;
}
.buttons-joined button:last-child {
border-right-width: 1px;
border-radius:0 4px 4px 0;
}
button[disabled] {
color:#eee;
cursor:auto;
}
button.save {
display:inline-block;
color:#6dc643;
}
button.cancel {
background:#aaa;
}
button.delete {
background:#DD5757;
}
input[type=text] {
width:150px;
height:20px;
border:1px solid #ccc;
padding:5px;
margin:0;
}
button small {
display: inline-block;
font-weight: normal;
font-size:12px;
line-height:20px;
vertical-align: top;
}
/* Map
------------------------------------------------------- */
#map {
display:block;
position:absolute;
overflow:hidden;
top:45px;
left:0;
right:0;
bottom:0;
background:#fff;
}
img.tile {
position:absolute;
transform-origin:0 0;
-ms-transform-origin:0 0;
-webkit-transform-origin:0 0;
-moz-transform-origin:0 0;
-o-transform-origin:0 0;
}
#tile-g {
position:absolute;
top:0;
}
/* About Section
------------------------------------------------------- */
#about {
position:absolute;
bottom:5px;
right:5px;
background:#fff;
padding:2px 5px;
}
/* ToolBar / Persistent UI Elements
------------------------------------------------------- */
#bar {
border-bottom:1px solid #ccc;
position:absolute;
left:0px;
top:0px;
right:0;
height:60px;
}
/* Status box */
.messages {
display:none;
}
/* Inspector */
.inspector-wrap {
border:1px solid #ccc;
position:absolute;
right: 0;
left: 510px;
padding:10px;
height: 60px;
opacity:0;
display:none;
}
.inspector-wrap a.permalink {
text-decoration:none;
margin-right:1em;
}
.inspector tbody td {
border: 1px solid #ccc;
width:150px;
}
.inspector input {
margin:0;
padding:4px;
border:0;
background:#fff;
width:150px;
}
.inspector-wrap table {
border-collapse: collapse;
width:347px;
border-spacing:0;
}
.inspector-wrap .tag-table-wrap {
max-height:350px;
overflow:auto;
}
.inspector-wrap table td {
padding:0;
border-spacing:0;
}
.inspector-wrap .close {
border: 0;
position: absolute;
top: 0;
right: 0;
cursor: pointer;
}
/* Map Controls */
#bar .zoombuttons {
position:absolute;
left:10px;
top:50px;
width:40px;
}
#bar .zoombuttons button {
width:40px;
border:1px solid #ccc;
}
#bar .zoombuttons button.zoom-in {
border-bottom:0;
border-radius:5px 5px 0 0;
}
#bar .zoombuttons button.zoom-out {
border-radius:0 0 5px 5px;
}
/* Layer Switcher */
div.layerswitcher-control {
position:absolute;
top:170px;
left:10px;
color:#222;
}
div.layerswitcher-control .content {
background:#fff;
padding:5px;
position:absolute;
left:40px;
width:100px;
top:0;
}
div.layerswitcher-control div.opacity-options {
border:1px solid #000;
height:15px;
width:45px;
}
div.layerswitcher-control a.layer {
display:block;
}
div.layerswitcher-control a.opacity {
background:#000;
display:inline-block;
width:15px;
height:15px;
}
/* Geocoder */
div.geocode-control {
position:absolute;
top:130px;
left:10px;
color:#222;
}
#bar div.geocode-control button,
div.layerswitcher-control button {
width:40px;
}
div.geocode-control input {
display:none;
}
/* Account Information
------------------------------------------------------- */
.user {
width:200px;
position:absolute;
bottom:10px;
left:10px;
background:#fff;
padding:2px 5px;
border-radius:3px;
border:1px solid #aaa;
}
.user .logout {
margin-left:10px;
}
div.typeahead {
background:#fff;
width:148px;
border:1px solid #ccc;
}
div.typeahead a {
padding:1px 4px;
display:block;
}
/* Modals
------------------------------------------------------- */
.modal {
width:640px;
height:550px;
padding:10px;
position:absolute;
background:#f0f0f0;
top:50px;
left:50%;
margin-left:-330px;
box-shadow:0 0 5px #000;
}
.modal.modal-alert {
width:320px;
height:100px;
margin-left:-160px;
}
.shaded:before {
content:'';
background:rgba(0,0,0,0.5);
position:fixed;
left:0px; right:0px; top:0px; bottom:0px;
}
.commit-modal h3 small.count {
font-size:12px;
font-weight: normal;
line-height:40px;
border-radius:20px;
padding:5px;
background:#7092ff;
margin-left:10px;
color:#fff;
}
.commit-modal ul {
border-bottom:1px solid #ccc;
background:#fff;
}
.commit-modal li {
border-top:1px solid #ccc;
padding:2px 10px;
}
.commit-modal .changeset-comment {
width:630px;
/* firefox uses monospace in textareas */
font:normal 12px/20px 'Helvetica Neue', Arial, sans-serif;
}
.commit-section {
max-height:250px;
overflow:auto;
}
/* Tooltips
------------------------------------------------------- */
#bar button .tooltip {
white-space: normal;
}
.tooltip {
position: absolute;
z-index: 1030;
display: block;
padding: 5px;
font-size: 11px;
opacity: 0;
filter: alpha(opacity=0);
visibility: visible;
}
.tooltip.in {
opacity: 0.8;
filter: alpha(opacity=80);
}
.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
color: #ffffff;
text-align: center;
text-decoration: none;
background-color: #000000;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.tooltip.bottom .tooltip-arrow {
top: 0;
left: 50%;
margin-left: -5px;
border-bottom-color: #000000;
border-width: 0 5px 5px;
}
/* Mobile Tweaks
------------------------------------------------------- */
* {
-webkit-tap-highlight-color:rgba(0,0,0,0);
-webkit-touch-callout:none;
}