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

243 lines
4.4 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;
width: 95%;
2020-01-27 12:58:08 -05:00
width: calc(100% - 40px);
2020-02-03 17:35:32 -05:00
border-right: 1px solid #000;
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);
}
.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;
right: -32px;
top: 2rem;
padding: 2.5rem 0rem;
border-radius: 0 .25rem .25rem 0;
}
2020-02-03 16:16:49 -05:00
@media (min-width: 990px){
2018-09-11 15:59:37 -04:00
.info-container {
width: 480px; /* to match .main-header menu width */
2018-09-11 15:59:37 -04:00
}
2020-01-27 12:58:08 -05:00
.info-container.offscreen {
transform: translateX(0);
}
.info-container-collapse {
display: none;
}
}
.info-container-inner {
overflow-y: auto;
height: 100%;
padding: 0 0 2em;
background: #fff;
2018-09-11 15:59:37 -04:00
}
2018-10-01 12:20:25 -04:00
/**
2019-08-14 08:41:13 -04:00
* Data section headers
*/
.section-header {
display: block;
position: relative;
clear: both;
text-decoration: none;
color: #222;
2020-02-03 17:35:32 -05:00
padding: 0.75rem 0.25rem 0.5rem 0.75rem;
2019-10-15 09:38:07 -04:00
z-index: 1000;
2020-02-03 17:35:32 -05:00
position: sticky;
top: 0;
}
2019-08-14 08:32:08 -04:00
.section-header h2,
.section-header .icon-buttons {
display: inline-block;
}
.section-header .h2 {
font-size: 1.5rem;
margin: 0.25rem 0;
}
.section-header .icon-buttons {
position: absolute;
right: 0;
2019-08-14 08:32:08 -04:00
top: 7px;
2019-01-22 14:39:27 -05:00
padding: 0.7rem 0.5rem 0.5rem 0;
}
2019-08-14 08:32:08 -04:00
.icon-buttons .icon-button {
margin-left: 7px;
}
/**
* 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;
2019-08-14 08:32:08 -04:00
cursor: pointer;
}
.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: 30px;
height: 30px;
padding: 6px;
border-radius: 15px;
margin: 0 0.05rem;
display: inline-block;
vertical-align: middle;
}
.svg-inline--fa.fa-w-11,
.svg-inline--fa.fa-w-16,
2019-08-23 09:56:29 -04:00
.svg-inline--fa.fa-w-18,
.svg-inline--fa.fa-w-8 {
width: 30px;
}
2019-08-23 09:56:29 -04:00
.icon-button.edit:active svg,
.icon-button.edit:hover svg,
.icon-button.view:active svg,
.icon-button.view:hover svg {
color: rgb(11, 225, 225);
}
2018-11-13 05:44:12 -05:00
.icon-button.help,
2019-10-24 07:19:54 -04:00
.icon-button.copy,
.icon-button.history {
2019-08-14 08:32:08 -04:00
margin-top: 4px;
2019-08-01 06:19:04 -04:00
}
2019-08-01 07:16:08 -04:00
.data-section label .icon-buttons .icon-button.copy {
margin-top: 0px;
}
.icon-button.copy:hover,
2018-11-13 05:44:12 -05:00
.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);
}
.data-title .icon-buttons {
float: right;
}
/* Back button */
.icon-button.back,
.icon-button.back:hover {
2019-08-14 17:03:54 -04:00
padding: 5px 1px;
background-color: transparent;
}
.icon-button.back:hover svg {
background-color: transparent;
}
/**
* Data list sections
*/
2020-02-03 17:35:32 -05:00
.section-body {
margin-top: 0.75em;
padding: 0 0.75em 5em 0.75em;
min-height: 100vh;
}
.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 {
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;
}
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;
}