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

175 lines
2.7 KiB
CSS
Raw Normal View History

/**
* Sidebar layout
*/
2018-09-11 15:59:37 -04:00
.info-container {
position: absolute;
2020-01-27 12:58:08 -05:00
top: 75px;
left: 0;
bottom: 0;
2020-01-27 12:58:08 -05:00
z-index: 1001;
transition: transform 0.3s;
2020-01-27 12:58:08 -05:00
transform: translateX(0);
width: 65%;
min-width: 280px;
max-width: 95%;
max-width: calc(100vw - 40px);
border-right: 1px solid #000;
2020-01-27 12:58:08 -05:00
}
2020-01-27 12:58:08 -05:00
.info-container.offscreen {
transform: translateX(-100%);
2018-09-11 15:59:37 -04:00
}
2020-01-27 12:58:08 -05:00
.info-container-collapse {
position: absolute;
left: 100%;
top: 4rem;
width: 2rem;
2020-01-27 12:58:08 -05:00
padding: 2.5rem 0rem;
2020-01-27 12:58:08 -05:00
border-radius: 0 .25rem .25rem 0;
}
@media (min-width: 510px) {
.info-container {
max-width: 470px;
}
}
@media (min-width: 734px){
2018-09-11 15:59:37 -04:00
.info-container {
width: 470px;
2018-09-11 15:59:37 -04:00
}
}
@media (min-width: 990px){
2020-01-27 12:58:08 -05:00
.info-container.offscreen {
transform: translateX(0);
}
2020-01-27 12:58:08 -05:00
.info-container-collapse {
display: none;
}
}
2020-01-27 12:58:08 -05:00
.info-container-inner {
width: 100%;
2020-01-27 12:58:08 -05:00
height: 100%;
overflow-y: scroll;
2020-01-27 12:58:08 -05:00
background: #fff;
2018-09-11 15:59:37 -04:00
}
2018-10-01 12:20:25 -04:00
/**
* Icon buttons
*/
.icon-button {
padding: 0;
display: inline-block;
background-color: transparent;
outline: none;
border: none;
color: #222;
}
.icon-button:hover {
color: #222;
text-decoration: none;
2019-08-14 08:32:08 -04:00
cursor: pointer;
}
.icon-button svg {
margin-left: 0.3em;
background-color: transparent;
transition: background-color color 0.2s;
font-size: 1.2em;
color: #222;
display: inline-block;
vertical-align: middle;
}
/**
* Data list sections
*/
2020-02-03 17:35:32 -05:00
.section-body {
margin-top: 0.75em;
padding: 0 0.75em 5em 0.75em;
2020-04-09 11:10:07 -04:00
min-height: 80vh;
2020-02-03 17:35:32 -05:00
}
.data-section .h3 {
margin: 0;
}
.data-intro {
padding: 0 0.5rem 0 0;
2019-01-22 14:39:27 -05:00
margin-top: 0.5rem;
}
.data-section p {
font-size: 1rem;
2019-05-28 16:18:36 -04:00
margin: 0.5rem 0;
}
2019-04-18 12:13:49 -04:00
.data-section ul {
padding-left: 1.333rem;
font-size: 1rem;
}
.data-section li {
margin-bottom: 0.3rem;
2019-04-18 12:13:49 -04:00
}
.data-list {
margin: 0;
padding-left: 0.75rem;
padding-right: 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 {
font-size: 0.8333rem;
font-weight: normal;
color: #555;
}
.data-section input,
.data-section textarea,
.data-section select {
margin: 0 0 0.5em 0;
}
2020-02-03 17:35:32 -05:00
.data-section input[type="checkbox"] {
position: static;
margin-right: 0.5em;
}
.data-list dd {
margin: 0 0 0.5rem;
line-height: 1.5;
white-space: pre;
}
.data-list .no-data {
color: #999;
}
.data-list dd ul {
list-style: none;
padding-left: 0;
}
.data-section .data-link-list {
padding: 0;
list-style: none;
margin-bottom: 0;
margin-top: 0.5rem;
}
.data-link-list li {
border-color: #6c757d;
border-radius: 0;
}