team-3/src/c3nav/site/static/site/css/c3nav.scss
2019-12-24 17:29:00 +01:00

1337 lines
30 KiB
SCSS

//noinspection CssInvalidFunction
@if primary_color() != "" {
$color-primary: primary_color() !global;
$color-header-primary: primary_color() !global;
}
//noinspection CssInvalidFunction
@if header_background_color() != "" {
$color-header-background: header_background_color() !global;
}
//noinspection CssInvalidFunction
@if header_text_color() != "" {
$color-header-text: header_text_color() !global;
}
//noinspection CssInvalidFunction
@if header_text_hover_color() != "" {
$color-header-text-hover: header_text_hover_color() !global;
}
@import 'milligram/milligram.sass';
$color-header-background: #ffffff !default;
$color-header-primary: $color-secondary !default;
$color-header-text: $color-primary !default;
$color-header-text-hover: $color-secondary !default;
$color-icon: #7c848a;
$color-icon-light: #b2b2b2;
$color-placeholder: #9da2a6;
$color-sidebar-border: #dddddd;
body {
font-weight: normal;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
position: absolute;
-webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
header {
padding: 10px;
height: 60px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
background-color: $color-header-background;
-ms-flex-negative: 0;
flex-shrink: 0;
}
header h1 {
font-size: 3rem;
margin: 0;
}
header h1 a, header h1 a:hover {
color: $color-header-primary;
line-height: 50px;
display: block;
height: 50px;
}
header h1 img {
height: 50px;
vertical-align: top;
margin-left: -10px;
max-width: none;
}
@media (max-width: 500px) {
header h1 span#subheader {
display: none;
}
}
header #user {
text-align: right;
padding: 0 0 3px 10px;
color: $color-header-text;
}
header #user small {
display: block;
margin-top: -2px;
color: inherit;
}
header #user small:empty {
display:none;
}
header #user:hover {
color: $color-header-text-hover;
}
input {
font-family: inherit;
color: inherit;
}
::-webkit-input-placeholder {
color: $color-placeholder;
}
::-moz-placeholder {
color: $color-placeholder;
}
.material-icons {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
hr {
margin: 1.5rem 0;
}
main {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
background-color: #FFFFFF;
border: 0 solid #CCCCCC;
border-top-width: 1px;
padding: 10px;
padding-top: 20px;
position: relative;
}
body > *:not(header):not(main) {
/* against stupid browser extensions */
-ms-flex-preferred-size: 0;
flex-basis: 0;
overflow: hidden;
}
main.map {
/*noinspection CssUnknownTarget*/
background: #FFFFFF url('../../img/loader.gif') no-repeat center;
position: relative;
padding: 0;
border-top-width: 0;
-ms-scroll-chaining: none;
overscroll-behavior: contain;
}
main.account form {
max-width: 400px;
}
#modal-content form button[type=submit] {
display: block;
width: 100%;
}
#modal-content p, main.account p {
margin-bottom: 10px;
}
#modal-content :last-child {
margin-bottom: 0;
}
.app-download-buttons {
margin-top: 20px;
}
#map {
position: absolute;
z-index: 1;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
#sidebar {
position: absolute;
z-index: 2;
top: 0;
padding: 10px 10px 32px;
width: 100%;
bottom: 0;
max-width: 420px;
pointer-events: none;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
overflow: hidden;
}
@media (max-width: 500px) {
#sidebar {
max-width: 500px;
}
}
#sidebar section {
pointer-events: auto;
background-color: #ffffff;
-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
border-radius: 2px;
overflow: hidden;
margin-bottom: 10px;
}
#sidebar section > div {
border: 0 $color-sidebar-border solid;
border-top-width: 1px;
-webkit-transition: margin-bottom 150ms, opacity 150ms;
-o-transition: margin-bottom 150ms, opacity 150ms;
transition: margin-bottom 150ms, opacity 150ms;
overflow: hidden;
}
#sidebar section > div:first-child {
margin-top: -1px;
}
#search {
width: 0;
}
#sidebar #search {
z-index: 4;
min-height: 54px;
min-width: 54px;
width: 100%;
-webkit-transition: width 150ms;
-o-transition: width 150ms;
transition: width 150ms;
-ms-flex-negative: 0;
flex-shrink: 0;
}
#sidebar #search.loading {
/*noinspection CssUnknownTarget*/
background: url('../../img/loader.gif') no-repeat 4px 3px;
width: 5%;
}
.loader {
width: 48px;
height: 48px;
/*noinspection CssUnknownTarget*/
background: url('../../img/loader.gif');
}
.embed-link {
z-index: 2;
background-color: $color-header-background;
color: $color-header-primary;
}
#embed-logo {
font-size: 3rem;
line-height: 100%;
font-weight: 300;
position: absolute;
top: 0;
left: 0;
padding: 0 10px 0 0;
letter-spacing: -.1rem;
color: $color-header-primary;
}
#embed-logo span {
display:inline-block;
padding: 10px 0 10px 10px;
}
#embed-logo img {
height: 50px;
vertical-align: middle;
}
#embed-logo:hover {
display:inline-block;
}
#embed-open {
position: absolute;
top: 0;
right: 0;
padding: 10px;
color: $color-header-text;
}
#embed-open:hover {
color: $color-header-text-hover;
}
main:not([data-view^=route]) #origin-input,
#search.loading #destination-input {
margin-bottom: -55px;
pointer-events: none;
opacity: 0;
}
main:not([data-view=location]) #location-buttons,
main:not([data-view=route-search]) #route-search-buttons,
main:not([data-view=route-result]) #route-result-buttons {
margin-bottom: -3.3rem;
pointer-events: none;
opacity: 0;
}
#resultswrapper {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 100px;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
#resultswrapper section {
max-height: 100%;
margin: 0;
}
h2 {
font-size: 2.5rem;
margin: 0 0 1rem;
}
.details-head h2 {
margin: 0;
}
h4 {
margin: 2rem 0 1rem;
}
section.details {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
}
section.details > * {
-ms-flex-negative: 0;
flex-shrink: 0;
-webkit-box-flex: 0;
-ms-flex-positive: 0;
flex-grow: 0;
}
section.details > .details-head {
padding: 11px 10px 8px;
}
section.details > .details-head > .button {
font-size: 30px;
line-height: 1.0;
color: $color-icon-light;
margin: -2px -2px 0 0;
-webkit-transition: none;
-o-transition: none;
transition: none;
}
#sidebar section.details > .details-body {
overflow: auto;
-ms-scroll-chaining: none;
overscroll-behavior: contain;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
}
section.details {
/*noinspection CssUnknownTarget*/
background: url('../../img/loader.gif') no-repeat right 2px top 2px;
}
#sidebar section.details.loading > .details-head {
background-color: rgba(255, 255, 255, 0);
}
#sidebar section.details.loading > .details-head .button {
pointer-events: none;
opacity: 0;
line-height: 2;
}
#sidebar section.details.loading > .details-body,
#sidebar section.details.loading > .details-buttons {
max-height: 0;
opacity: 0;
}
#sidebar section.details:not(.loading) > .details-head {
-webkit-transition: background-color 50ms;
-o-transition: background-color 50ms;
transition: background-color 50ms;
background-color: rgba(255, 255, 255, 1);
}
#sidebar section.details:not(.loading) > .details-head .button {
-webkit-transition: opacity 150ms;
-o-transition: opacity 150ms;
transition: opacity 150ms;
pointer-events: auto;
opacity: 1;
}
#sidebar section.details:not(.loading) > div.details-body,
#sidebar section.details:not(.loading) > div.details-buttons {
max-height: 100vh;
-webkit-transition: max-height 150ms, opacity 50ms;
-o-transition: max-height 150ms, opacity 50ms;
transition: max-height 150ms, opacity 50ms;
-webkit-transition-timing-function: ease-in;
-o-transition-timing-function: ease-in;
transition-timing-function: ease-in;
-webkit-animation: show-details-body;
animation: show-details-body;
-webkit-animation-duration: 160ms;
animation-duration: 160ms;
opacity: 1;
}
@-webkit-keyframes show-details-body {
from {
overflow: hidden;
}
99% {
overflow: hidden;
}
to {
overflow: auto;
overscroll-behavior: contain;
}
}
@keyframes show-details-body {
from {
overflow: hidden;
}
99% {
overflow: hidden;
}
to {
overflow: auto;
-ms-scroll-chaining: none;
overscroll-behavior: contain;
}
}
#location-details .details-body {
padding: 10px 10px 0;
}
#location-details dl {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
margin: 0;
font-size:90%;
}
#location-details dt {
width: 39%;
margin: 0 0 0.7rem;
font-weight: 700;
}
#location-details dd {
width: 60%;
margin: 0 0 0.7rem;
padding: 0 0 0 1rem;
}
#location-details dd > * {
display:block;
}
main:not([data-view$=search]) #autocomplete,
main:not([data-view=location]) #location-details,
main:not([data-view=route-result]) #route-details,
main:not([data-view=route-result]) #route-options,
main:not(.show-details) #resultswrapper .details:not(#route-options),
main:not(.show-options) #resultswrapper #route-options {
display:none;
}
main .buttons .details .material-icons {
transition: -webkit-transform 250ms;
-webkit-transition: -webkit-transform 250ms;
-o-transition: transform 250ms;
transition: transform 250ms;
transition: transform 250ms, -webkit-transform 250ms;
}
main.show-details .buttons .details .material-icons {
-webkit-transform: scale(1, -1);
-ms-transform: scale(1, -1);
transform: scale(1, -1);
}
main.show-details #resultswrapper .details,
main.show-options #resultswrapper #route-options {
-webkit-animation: show-details;
animation: show-details;
-webkit-animation-duration: 150ms;
animation-duration: 150ms;
-webkit-animation-timing-function: ease-out;
animation-timing-function: ease-out;
}
@-webkit-keyframes show-details {
from {
opacity: 0;
top: 10px;
}
to {
opacity: 1;
top: 0;
}
}
@keyframes show-details {
from {
opacity: 0;
top: 10px;
}
to {
opacity: 1;
top: 0;
}
}
.route-options-fields {
padding: 0 10px 5px;
}
.route-options-fields input, .route-options-fields select {
margin-bottom: 1rem;
}
.route-options-buttons {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
padding: 0 0 15px 10px;
}
.route-options-buttons button {
padding: 0 1rem;
margin: 0 10px 0 0;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
.location {
position: relative;
padding: 5px 10px 5px 53px;
height: 55px;
}
.location.location-form-value {
margin: -10px -10px 5px -10px;
}
.location .icon {
font-size: 36px;
position: absolute;
top: 9px;
left: 9px;
cursor: default;
color: $color-icon;
transition: color 150ms, top 150ms, -webkit-transform 150ms;
-webkit-transition: color 150ms, top 150ms, -webkit-transform 150ms;
-o-transition: color 150ms, transform 150ms, top 150ms;
transition: color 150ms, transform 150ms, top 150ms;
transition: color 150ms, transform 150ms, top 150ms, -webkit-transform 150ms;
pointer-events: none;
}
.location > * {
display: block;
white-space: nowrap;
}
.location small {
line-height: 1.1;
}
.location.focus {
background-color: $color-tertiary;
}
#autocomplete .location {
cursor: pointer;
}
.location-label {
white-space: nowrap;
}
.location-label-text {
line-height: 100%;
border-radius: 2px;
white-space: nowrap;
transform: translateX(-50%) translateY(-50%);
text-align: center;
span {
line-height: 100%;
background-color: rgba(255, 255, 255, 0.6);
vertical-align: 12%;
}
}
.locationinput {
position: relative;
padding: 0;
}
.locationinput input {
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-width:0;
height: 54px;
-webkit-transition: padding-bottom 150ms;
-o-transition: padding-bottom 150ms;
transition: padding-bottom 150ms;
line-height: 1.0;
padding-left: 52px;
}
.locationinput small {
position: absolute;
left: 52px;
top: 30px;
line-height: 1.1;
opacity: 1;
-webkit-transition: opacity 150ms;
-o-transition: opacity 150ms;
transition: opacity 150ms;
}
.locationinput:not(.selected) small {
opacity: 0;
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none; /* Likely future */
pointer-events: none;
}
.locationinput:not(.selected) .icon {
color: transparent;
}
.locationinput .icon::before {
position: absolute;
top: 0;
left: 1px;
content: "\e8b6"; /* unicode code point for the "seach" ligature, so android 4.3.3 gets it */
color: $color-icon-light;
-webkit-transition: color 150ms;
-o-transition: color 150ms;
transition: color 150ms;
}
.locationinput.selected .icon::before {
color: transparent;
}
.locationinput.selected input {
padding-bottom: 25px;
}
#search .locationinput button {
position: absolute;
top: 6px;
right: 6px;
padding: 0;
width: 42px;
height: 42px;
border-width: 0;
transition: opacity 150ms, top 150ms, right 150ms, -webkit-transform 150ms;
-webkit-transition: opacity 150ms, top 150ms, right 150ms, -webkit-transform 150ms;
-o-transition: transform 150ms, opacity 150ms, top 150ms, right 150ms;
transition: transform 150ms, opacity 150ms, top 150ms, right 150ms;
transition: transform 150ms, opacity 150ms, top 150ms, right 150ms, -webkit-transform 150ms;
font-size: 42px;
color: $color-icon-light;
line-height: 1;
}
#search .locationinput button:hover {
color: #a2a2a2;
}
#search button.locate {
font-size: 35px;
top: 5px;
}
.locationinput:not(.empty) button.locate, .locationinput.empty button.clear {
-webkit-transform: scale(0.7);
-ms-transform: scale(0.7);
transform: scale(0.7);
opacity: 0;
pointer-events:none;
}
#route-dots {
position: absolute;
top: 53px;
left: 25px;
text-shadow: 2px 0 1px #fff, -2px 0 1px #fff;
transition: top 150ms, opacity 150ms, color 150ms, -webkit-transform 150ms;
-webkit-transition: top 150ms, opacity 150ms, color 150ms, -webkit-transform 150ms;
-o-transition: top 150ms, opacity 150ms, color 150ms, transform 150ms;
transition: top 150ms, opacity 150ms, color 150ms, transform 150ms;
transition: top 150ms, opacity 150ms, color 150ms, transform 150ms, -webkit-transform 150ms;
color: $color-icon;
pointer-events: none;
}
main:not([data-view^=route]) #route-dots {
position: absolute;
top: 40px;
opacity: 0;
}
main:not([data-view=route-result]) #route-dots {
color: $color-icon-light;
}
#route-details .details-body > div:not(:last-child) {
border: 0 $color-sidebar-border solid;
border-bottom-width: 1px;
}
.routeitem {
padding: 3px 10px 2px 53px;
position: relative;
}
.routeitem .icon {
position: absolute;
top: 4px;
left: 12px;
width: 29px;
height: 21px;
text-align: center;
}
.routeitem .icon .material-icons {
color: $color-icon;
font-size: 21px;
}
.routeitem .icon img {
opacity: 0.6;
height: 21px;
}
#popup-buttons, #attributions {
display: none;
}
.location-popup .leaflet-popup-content {
font-size: 16px;
color: $color-secondary;
overflow: hidden;
line-height: 1.6;
margin: 15px 10px 10px;
padding: 0;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
border-radius: 2px;
}
.location-popup {
.leaflet-popup-content-wrapper {
padding: 0;
}
.leaflet-popup-content {
margin: 0;
.buttons {
border: 0 #dddddd solid;
border-top-width: 1px;
.button-clear {
display:block;
width: 100%;
padding: 0 7px;
margin: 0;
line-height: 3.3rem;
}
}
.location {
margin-right: 24px;
padding-right: 0;
overflow: hidden;
}
.as-location .material-icons {
transform: rotate(-45deg);
}
}
a.leaflet-popup-close-button {
font-size: 24px;
width: 22px;
top: 2px;
}
.leaflet-popup-tip-container::after {
content: "";
border: 0 #dddddd solid;
border-top-width: 1px;
display: block;
width: 28px;
height: 20px;
top: 0;
left: 11px;
margin: auto;
position: absolute;
}
}
.buttons {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
margin-left: -1px;
height: 3.3rem;
}
.buttons > button.button-clear, .buttons > .button.button-clear {
width: 1px;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
margin: 0;
border: 0 $color-sidebar-border solid;
border-left-width: 1px;
border-radius: 0;
padding: 0;
font-size: 1.3rem;
line-height: 1.3;
height: 3.3rem;
}
.buttons > *:hover, .buttons > *:active {
background-color: #eeeeee;
}
#search button, .leaflet-popup button, .details-head .button, .buttons.details-buttons button, .buttons.details-buttons .button {
font-size: 1.3rem;
line-height: 3.3rem;
height: 3.3rem;
padding: 0;
}
button .material-icons, .button .material-icons {
font-size: 15px;
vertical-align: -3px;
}
#route-summary {
position: relative;
padding: 6px 10px 5px 52px;
height: 55px;
}
#route-summary > * {
display: block;
white-space: nowrap;
}
#route-summary .icon {
font-size: 36px;
position: absolute;
top: 10px;
left: 9px;
cursor: default;
color: $color-icon;
}
#route-summary small {
line-height: 1.1;
}
#route-summary.loading {
/*noinspection CssUnknownTarget*/
background: url('../../img/loader.gif') no-repeat 4px 4px;
}
#route-summary.loading > * {
display: none;
}
main:not([data-view=route-result]) #route-summary {
margin-bottom: -55px;
pointer-events: none;
opacity: 0;
}
#route-summary button.options {
position: absolute;
top: 8px;
right: 6px;
padding: 0;
width: 37px;
height: 37px;
border-width: 0;
font-size: 36px;
color: $color-icon-light;
line-height: 1;
}
@media not all and (min-height: 700px) and (min-width: 1100px) {
main[data-view=route-result] #sidebar #search:not(.focused) .locationinput {
margin-bottom: -21px;
}
main[data-view=route-result] #sidebar #search:not(.focused) .locationinput input {
padding-bottom: 28px;
}
main[data-view=route-result] #sidebar #search:not(.focused) .locationinput small {
opacity: 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
pointer-events: none;
}
main[data-view=route-result] #sidebar #search:not(.focused) .locationinput .icon {
-webkit-transform: scale(0.6);
-ms-transform: scale(0.6);
transform: scale(0.6);
top: -1px;
}
main[data-view=route-result] #sidebar #search:not(.focused) .locationinput button {
-webkit-transform: scale(0.6);
-ms-transform: scale(0.6);
transform: scale(0.6);
top: -5px;
right: -5px;
}
main[data-view=route-result] #sidebar #search:not(.focused) #route-dots {
-webkit-transform: scale(0.7);
-ms-transform: scale(0.7);
transform: scale(0.7);
top: 32px;
}
}
/* leaftlet levels control */
.leaflet-control-levels a, .leaflet-control-levels a:hover {
width: auto;
min-width: 26px;
font-size: 14px;
padding: 0 3px;
white-space: nowrap;
}
.leaflet-touch .leaflet-control-levels a, .leaflet-touch .leaflet-control-levels a:hover {
width: auto;
min-width: 30px;
line-height: 30px;
font-size: 15px;
padding: 0 3px;
}
.leaflet-control-levels a.current {
font-weight: bold;
background-color: #eeeeee;
}
.leaflet-control-attribution a {
color: $color-primary;
}
.leaflet-control-attribution a:hover {
color: $color-secondary;
text-decoration: none;
}
.leaflet-control-user-location a {
font-size: 20px;
}
.leaflet-bar a:focus {
color: black;
}
.leaflet-bar .control-disabled, .leaflet-bar .control-disabled:hover, .leaflet-bar .control-disabled:focus {
color: #BBBBBB;
}
.leaflet-bottom .leaflet-control-scale {
margin-bottom: 10px;
margin-left: 10px;
}
/* fix for firefox */
.leaflet-fade-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-zoom-animated { will-change:auto !important; }
.c3nav-grid {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
line-height: 1;
font-size: 16px;
font-weight: bold;
pointer-events: none;
color: rgba(0, 0, 0, 0.6);
}
.c3nav-grid-row, .c3nav-grid-column {
position: absolute;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
border-style: solid;
border-color: rgba(0, 0, 0, 0.25);
overflow:hidden;
}
.c3nav-grid-row {
left: 0;
right: 0;
border-width: 1px 0 0;
}
.c3nav-grid-row span {
padding: 0 5px;
}
@media (max-width: 500px) {
.c3nav-grid span:last-child {
display: none;
}
}
.c3nav-grid-column {
top: 0;
bottom: 0;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0 0 0 1px;
}
.c3nav-grid-column span {
padding: 5px 0;
}
#modal {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.3);
z-index: 2;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
opacity: 0;
-webkit-transition: opacity 300ms;
-o-transition: opacity 300ms;
transition: opacity 300ms;
pointer-events: none;
}
#modal.show {
opacity: 1;
pointer-events: auto;
}
#modal-content {
-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
border-radius: 2px;
background-color: #ffffff;
width: 380px;
min-height: 150px;
max-height: 95vh;
max-width: 95vw;
padding: 20px;
overflow: auto;
-ms-scroll-chaining: none;
overscroll-behavior: contain;
position: relative;
}
#modal.loading #modal-content {
/*noinspection CssUnknownTarget*/
background: #ffffff url('../../img/loader.gif') no-repeat center;
}
#close-modal {
position: absolute;
top: 8px;
right: 8px;
font-size: 30px;
padding: 0;
color: $color-icon-light;
}
#close-modal:hover {
color: #a2a2a2;
}
.share-ui {
text-align: center;
}
.share-ui h3 {
text-align: left;
margin: 0;
}
.share-ui img {
width: 100%;
max-width: 50vh;
}
.share-ui input {
margin: 0;
}
.share-ui p button {
margin-top: 10px;
margin-bottom: 0;
}
body:not(.mobileclient) .share-ui p {
display: none;
}
body:not(.mobileclient) .locationinput.empty .locate {
opacity: 0.4;
}
main > .share-ui, #reload-msg, #app-ad {
display: none;
}
ul.errorlist {
margin-bottom:0.5rem;
color:red;
list-style-type:none;
}
ul.messages {
list-style-type:none;
margin: 0 0 1.0rem;
}
ul.messages li {
padding:1.0rem;
border-radius: .4rem;
border: 0.1rem solid #666666;
background-color:#EEEEEE;
pointer-events: auto;
}
ul.messages li.alert-info {
color: #006688;
border-color: #006688;
background-color:#DDE4FF;
}
ul.messages li.alert-success {
color: #338800;
border-color: #339900;
background-color:#E4FFDD;
}
ul.messages li.alert-warning {
color: #CC6600;
border-color: #FF9900;
background-color:#FFFFDD;
}
ul.messages li.alert-danger {
color: #CC0000;
border-color: #CC0000;
background-color:#FFEEEE;
}
.app-ads {
position:absolute;
z-index: 10;
bottom:0;
right:0;
left:0;
padding:0;
text-align: center;
display:none;
}
.app-ads div {
background-color: #ffffff;
-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
border-radius: 2px;
overflow: hidden;
display: inline-block;
margin: 0 10px 25px;
padding: 10px;
vertical-align: middle;
}
.app-ads .close {
float: right;
color: inherit;
line-height: 16px;
margin-left: 10px;
}
#messages {
z-index: 5;
position: absolute;
top: -20px;
width: 100vw;
padding: 10px;
pointer-events: none;
}
.mobileclient #messages {
top: 0;
}
#messages:empty {
display:none;
}
#messages ul.messages {
margin: auto;
max-width: 700px;
}
#messages ul.messages .close {
float: right;
color: inherit;
}
.search-form input {
max-width: 400px;
vertical-align: top;
margin-right: 10px;
}
.filter-form {
margin-bottom: 0;
}
.filter-form input, .filter-form select {
width: auto;
vertical-align: top;
margin-right: 10px;
}
.filter-form input[type=number] {
width: 100px;
}
.columns {
display:-webkit-box;
display:-ms-flexbox;
display:flex;
width: 100%;
}
.columns > div {
padding-right: 10px;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
.columns > div > h4:first-child {
margin-top: 0;
}
.columns form {
margin-bottom: 0;
}
main.control p {
margin-bottom: 1.0rem;
}
main.control h4, main.control h2 {
margin-bottom: 0.8rem;
}
main.control h4 {
margin-top: 2.5rem;
}
main.control form tr > * {
white-space: nowrap;
}
.button-cell {
padding-top: 4px;
padding-bottom: 4px;
text-align: right;
}
.button-cell button, .button-cell .button, .button-cell form {
margin: 0;
}
.input-cell {
padding-top: 6px;
padding-bottom: 6px;
}
.input-cell input, .input-cell select {
margin: 0;
}
main .narrow {
max-width: 400px;
margin: auto;
}
main .narrow p, main .narrow form, main .narrow button {
margin-bottom: 1.0rem;
}
main .narrow form button {
width: 100%;
}
main form > p, #modal form > p {
margin-bottom: 15px;
> :last-child {
margin-bottom: 0;
}
.helptext {
display: block;
margin-top: -15px;
font-style: italic;
color: #999999;
}
textarea {
resize: none;
height: 100px;
}
select {
height: 100px;
}
}
.user-permissions-form label {
font-weight: 400;
width: auto;
display: inline;
}
.fields {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.fields .field {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
.fields .field > * {
width: 100%;
margin: 0;
}
.fields .field input {
margin: 0;
}
.fields .field:not(:first-child) {
margin-left: 10px;
}
@media (max-width: 500px) {
.fields {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
}
.fields .field:not(:first-child) {
margin-left: 0;
margin-top: 10px;
}
}
button + button {
margin-left: 5px;
}
.red {
color: #9c0900;
}
.green {
color: #28b62c;
}
.material-icons {
text-transform: none !important;
}