colouring-montreal/app/src/frontend/sidebar.css

232 lines
4.1 KiB
CSS
Raw Normal View History

/**
* Sidebar layout
*/
2018-09-11 15:59:37 -04:00
.info-container {
position: absolute;
top: 50%;
left: 0;
right: 0;
bottom: 3rem;
padding: 0.25em 0em;
2018-09-11 15:59:37 -04:00
background: #fff;
background-color: rgba(255,255,255,0.98);
2018-09-11 15:59:37 -04:00
z-index: 1000;
overflow-y: auto;
}
2018-09-13 18:55:53 -04:00
.info-container .h2:first-child {
margin-bottom: 0.5rem;
margin-top: 0.5rem;
margin-left: -0.1em;
padding: 0 0.75rem;
2018-09-13 18:55:53 -04:00
}
#root .leaflet-container .leaflet-control-attribution {
2018-09-11 15:59:37 -04:00
width: 100%;
height: 3rem;
background: #fff;
background: rgba(255, 255, 255, 0.7);
2018-09-11 15:59:37 -04:00
}
.leaflet-right{
left: 0;
}
@media (min-width: 380px){
.info-container {
bottom: 2rem;
}
#root .leaflet-container .leaflet-control-attribution {
2018-09-11 15:59:37 -04:00
height: 2rem;
}
}
@media (min-width: 768px){
.info-container {
top: 0;
left: 0;
width: 20rem;
bottom: 0;
}
.leaflet-right{
left: 20rem;
}
#root .leaflet-container .leaflet-control-attribution {
2018-09-11 15:59:37 -04:00
height: auto;
}
}
2018-10-01 12:20:25 -04:00
/**
* Sidebar main header
*/
2018-10-01 12:20:25 -04:00
.sidebar-header .h2 {
display: inline-block;
}
.sidebar-header .icon-button {
margin-left: 0.25rem;
margin-top: 0.4rem;
}
.sidebar-header .icon-button:hover {
background-color: #eee;
}
/**
* Data list section headers
*/
.bullet-prefix {
display: block;
position: relative;
clear: both;
text-decoration: none;
color: #222;
transition: background-color 0.2s;
}
.bullet-prefix h3 {
display: inline-block;
}
.bullet-prefix > a {
display: block;
padding: 0.6rem 0.5rem 0.5rem 2.25rem;
color: #222;
}
.bullet-prefix.active,
.bullet-prefix:hover {
color: #222;
text-decoration: none;
background-color: #eeeeee;
}
.bullet-prefix > a::before {
display: block;
position: absolute;
left: 0.55rem;
top: 0.3rem;
width: 1.2rem;
height: 1rem;
text-align: center;
color: #7d7d7d;
font-size: 1.2rem;
content: '\25B8';
transition: color 0.2s;
}
.bullet-prefix:hover > a::before,
.bullet-prefix.active > a::before {
color: #222;
font-size: 1.1rem;
}
.bullet-prefix:hover > a::before {
content: '\25BC';
}
.bullet-prefix.active:hover > a::before {
content: '\25B2';
}
.bullet-prefix .icon-buttons {
position: absolute;
top: 0;
right: 0;
padding: 0.6rem 0.5rem 0.5rem 0;
}
/**
* Icon buttons
*/
.icon-button {
display: inline-block;
width: 1.8rem;
height: 1.8rem;
padding: 0;
outline: none;
border: none;
border-radius: 0.9rem;
margin: 0 0.05rem;
background-color: transparent;
transition: background-color 0.2s;
color: #222;
vertical-align: top;
text-align: center;
}
.icon-button svg {
transition: color 0.2s;
color: #222;
margin-top: 2px;
width: 1rem;
height: 1rem;
display: inline-block;
vertical-align: middle;
}
.icon-button:hover {
background-color: #fff;
}
.icon-button.edit:hover svg {
color: rgb(11, 225, 225);
}
.icon-button.help:hover svg {
color: rgb(0, 81, 255)
}
.icon-button.tooltip-hint.active svg,
.icon-button.tooltip-hint:hover svg {
color: rgb(255, 11, 245);
}
.icon-button.close svg {
margin-top: -1px;
}
.icon-button.close:hover svg {
color: rgb(255, 72, 11)
}
.icon-button.save:hover svg {
color: rgb(11, 225, 72);
}
.section-header .icon-button {
float: right;
margin-top: -2px;
}
/**
* Data list sections
*/
.data-section {
border-top: 1px solid #ffffff;
}
.data-section.inactive {
opacity: 0.5;
}
.data-section.inactive .bullet-prefix::before {
opacity: 0.4;
}
.data-section .h3 {
margin: 0;
}
.data-intro {
padding-left: 0.75rem;
font-size: 0.8333rem;
margin-top: 0.25rem;
}
.data-list {
margin: 0;
padding-left: 0.75rem;
padding-right: 0.5rem;
}
.data-section form {
padding: 0 0.75rem;
}
.data-list a {
color: #555;
}
.data-list a:focus,
.data-list a:active,
.data-list a:hover {
color: #222;
}
.data-list dt,
.data-section label {
display: block;
margin: 0.5em 0 0;
font-size: 0.8333rem;
font-weight: normal;
color: #555;
}
.data-list dd {
margin: 0 0 0.5rem;
line-height: 1.5;
}
.data-list .no-data {
color: #999;
}