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

375 lines
7.6 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;
2019-01-22 13:39:43 -05:00
padding: 0.25em 0em 2em;
2018-09-11 15:59:37 -04:00
background: #fff;
z-index: 1000;
overflow-y: auto;
}
.info-container h2:first-child {
2018-09-13 18:55:53 -04:00
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: 25rem;
2018-09-11 15:59:37 -04:00
bottom: 0;
}
.leaflet-right{
left: 25rem;
2018-09-11 15:59:37 -04:00
}
#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
*/
2019-01-22 14:39:27 -05:00
.sidebar-header {
border-bottom: 6px solid;
border-image: linear-gradient(
to right,
#edc40b 0%, #edc40b 8.3%,
#f0ee0c 8.3%, #f0ee0c 16.6%,
#ff9100 16.6%, #ff9100 25%,
#ee5f63 25%, #ee5f63 33.3%,
#ee91bf 33.3%, #ee91bf 41.6%,
#aa7fa7 41.6%, #aa7fa7 50%,
#6f879c 50%, #6f879c 58.3%,
#5ec232 58.3%, #5ec232 66.6%,
#6dbb8b 66.6%, #6dbb8b 75%,
#65b7ff 75%, #65b7ff 83.3%,
#a1a3a9 83.3%, #a1a3a9 91.6%,
#9c896d 91.6%, #9c896d 100%
) 1;
}
.sidebar-header h2 {
2019-01-22 14:39:27 -05:00
margin: 0.45rem 0 0.6rem;
2018-10-01 12:20:25 -04:00
display: inline-block;
}
.sidebar-header .icon-button {
margin-left: 0.25rem;
2018-12-03 05:29:32 -05:00
margin-top: 0.3rem;
2018-10-01 12:20:25 -04:00
}
.sidebar-header .icon-button:hover {
background-color: #eee;
}
/**
* Data list section headers
*/
.section-header {
display: block;
position: relative;
clear: both;
text-decoration: none;
color: #222;
2019-01-22 13:39:43 -05:00
border-style: solid;
border-color: #fff;
2019-01-22 14:39:27 -05:00
border-top-color: #222;
border-width: 1px 0 4px 0;
2019-01-22 16:25:42 -05:00
padding-top: 4px;
}
.section-header h3 {
display: inline-block;
}
.section-header > a {
display: block;
padding: 0.6rem 0.5rem 0.5rem 2.25rem;
color: #222;
2019-01-22 13:39:43 -05:00
outline: none;
}
.section-header.active,
.section-header:hover {
color: #222;
text-decoration: none;
}
2019-01-22 14:39:27 -05:00
.data-section:first-of-type .section-header {
border-top-color: #fff;
}
2019-01-22 13:39:43 -05:00
.section-header.active.location {
2019-01-22 14:39:27 -05:00
border-bottom-color: #edc40b;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.location:hover > a::before,
.section-header.location.active > a::before {
color: #edc40b;
2019-01-22 13:39:43 -05:00
}
.section-header.active.use {
2019-01-22 14:39:27 -05:00
border-bottom-color: #f0ee0c;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.use:hover > a::before,
.section-header.use.active > a::before {
color: #f0ee0c;
2019-01-22 13:39:43 -05:00
}
.section-header.active.type {
2019-01-22 14:39:27 -05:00
border-bottom-color: #ff9100;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.type:hover > a::before,
.section-header.type.active > a::before {
color: #ff9100;
2019-01-22 13:39:43 -05:00
}
.section-header.active.age {
2019-01-22 14:39:27 -05:00
border-bottom-color: #ee5f63;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.age:hover > a::before,
.section-header.age.active > a::before {
color: #ee5f63;
2019-01-22 13:39:43 -05:00
}
.section-header.active.size {
2019-01-22 14:39:27 -05:00
border-bottom-color: #ee91bf;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.size:hover > a::before,
.section-header.size.active > a::before {
color: #ee91bf;
2019-01-22 13:39:43 -05:00
}
.section-header.active.construction {
2019-01-22 14:39:27 -05:00
border-bottom-color: #aa7fa7;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.construction:hover > a::before,
.section-header.construction.active > a::before {
color: #aa7fa7;
2019-01-22 13:39:43 -05:00
}
.section-header.active.team {
2019-01-22 14:39:27 -05:00
border-bottom-color: #6f879c;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.team:hover > a::before,
.section-header.team.active > a::before {
color: #6f879c;
2019-01-22 13:39:43 -05:00
}
.section-header.active.sustainability {
2019-01-22 14:39:27 -05:00
border-bottom-color: #5ec232;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.sustainability:hover > a::before,
.section-header.sustainability.active > a::before {
color: #5ec232;
2019-01-22 13:39:43 -05:00
}
.section-header.active.greenery {
2019-01-22 14:39:27 -05:00
border-bottom-color: #6dbb8b;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.greenery:hover > a::before,
.section-header.greenery.active > a::before {
color: #6dbb8b;
2019-01-22 13:39:43 -05:00
}
.section-header.active.planning {
2019-01-22 14:39:27 -05:00
border-bottom-color: #65b7ff;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.planning:hover > a::before,
.section-header.planning.active > a::before {
color: #65b7ff;
2019-01-22 13:39:43 -05:00
}
.section-header.active.demolition {
2019-01-22 14:39:27 -05:00
border-bottom-color: #a1a3a9;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.demolition:hover > a::before,
.section-header.demolition.active > a::before {
color: #a1a3a9;
2019-01-22 13:39:43 -05:00
}
.section-header.active.like {
2019-01-22 14:39:27 -05:00
border-bottom-color: #9c896d;
2019-01-22 13:39:43 -05:00
}
2019-01-22 14:39:27 -05:00
.section-header.like:hover > a::before,
.section-header.like.active > a::before {
color: #9c896d;
2019-01-22 13:39:43 -05:00
}
.section-header > a::before {
display: block;
position: absolute;
left: 0.55rem;
2019-01-22 16:25:42 -05:00
top: 0.5rem;
width: 1.2rem;
height: 1rem;
text-align: center;
color: #222264;
font-size: 1.2rem;
content: '\25B8';
}
.section-header:hover > a::before,
.section-header.active > a::before {
font-size: 1rem;
}
.section-header:hover > a::before,
.section-header.active > a::before {
2019-01-22 16:25:42 -05:00
top: 0.7rem;
content: '\25BC';
}
2019-01-22 13:39:43 -05:00
.data-section.inactive .section-header,
.data-section.inactive .section-header > a {
color: #777;
}
.data-section.inactive .section-header.active,
.data-section.inactive .section-header.active:hover > a,
.data-section.inactive .section-header.active > a {
color: #222;
}
.section-header .icon-buttons {
position: absolute;
top: 0;
right: 0;
2019-01-22 14:39:27 -05:00
padding: 0.7rem 0.5rem 0.5rem 0;
}
/**
* Icon buttons
*/
.icon-button {
display: inline-block;
background-color: transparent;
font-size: 0.8333rem;
outline: none;
border: none;
color: #222;
vertical-align: top;
}
.icon-button:hover {
color: #222;
text-decoration: none;
}
.icon-button.tooltip-hint {
padding: 0;
}
.icon-button svg {
background-color: transparent;
transition: background-color color 0.2s;
display: inline-block;
color: #222;
margin-top: 2px;
width: 1.8rem;
height: 1.8rem;
padding: 0.4rem;
border-radius: 0.9rem;
margin: 0 0.05rem;
display: inline-block;
vertical-align: middle;
}
.svg-inline--fa.fa-w-11,
.svg-inline--fa.fa-w-16,
.svg-inline--fa.fa-w-8 {
width: 1.8rem;
}
.icon-button:hover svg {
background-color: #fff;
}
.icon-button.edit:hover svg {
color: rgb(11, 225, 225);
}
2018-11-13 05:44:12 -05:00
.icon-button.help,
.section-header .icon-button.help {
margin-top: 2px;
}
.icon-button.help:hover {
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-edit svg {
margin-top: -1px;
}
.icon-button.close-edit: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;
}
/* Back button */
.icon-button.back,
.icon-button.back:hover {
padding: 0;
background-color: transparent;
}
.icon-button.back:hover svg {
background-color: transparent;
}
/**
* Data list sections
*/
.data-section .h3 {
margin: 0;
}
.data-intro {
padding: 0 0.5rem 0 2.25rem;
2019-01-22 14:39:27 -05:00
margin-top: 0.5rem;
}
.data-list {
margin: 0;
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.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-section input,
.data-section textarea,
.data-section select {
margin: 0 0 0.5em 0;
}
.data-list dd {
margin: 0 0 0.5rem;
line-height: 1.5;
}
.data-list .no-data {
color: #999;
}
.data-list dd ul {
list-style: none;
padding-left: 0;
}