added css prefixes with autoprefixer

This commit is contained in:
Jenny Danzmayr 2018-12-20 18:50:32 +01:00
parent 0040e3a07b
commit e08a4b1b91

View file

@ -29,10 +29,17 @@ $color-sidebar-border: #dddddd;
body { body {
font-weight: normal; font-weight: normal;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
flex-direction: column; -webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
position: absolute; position: absolute;
align-items: stretch; -webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
top: 0; top: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
@ -42,11 +49,18 @@ body {
header { header {
padding: 10px; padding: 10px;
height: 60px; height: 60px;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
align-items: center; -webkit-box-align: center;
justify-content: space-between; -ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
background-color: $color-header-background; background-color: $color-header-background;
flex-shrink: 0; -ms-flex-negative: 0;
flex-shrink: 0;
} }
header h1 { header h1 {
font-size: 3rem; font-size: 3rem;
@ -108,7 +122,9 @@ hr {
} }
main { main {
flex-grow: 1; -webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
background-color: #FFFFFF; background-color: #FFFFFF;
border: 0 solid #CCCCCC; border: 0 solid #CCCCCC;
border-top-width: 1px; border-top-width: 1px;
@ -118,7 +134,8 @@ main {
} }
body > *:not(header):not(main) { body > *:not(header):not(main) {
/* against stupid browser extensions */ /* against stupid browser extensions */
flex-basis: 0; -ms-flex-preferred-size: 0;
flex-basis: 0;
overflow: hidden; overflow: hidden;
} }
main.map { main.map {
@ -127,7 +144,8 @@ main.map {
position: relative; position: relative;
padding: 0; padding: 0;
border-top-width: 0; border-top-width: 0;
overscroll-behavior: contain; -ms-scroll-chaining: none;
overscroll-behavior: contain;
} }
main.account form { main.account form {
@ -164,8 +182,13 @@ main.account form {
bottom: 0; bottom: 0;
max-width: 420px; max-width: 420px;
pointer-events: none; pointer-events: none;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
flex-direction: column; -webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
overflow: hidden; overflow: hidden;
} }
@media (max-width: 500px) { @media (max-width: 500px) {
@ -176,7 +199,8 @@ main.account form {
#sidebar section { #sidebar section {
pointer-events: auto; pointer-events: auto;
background-color: #ffffff; background-color: #ffffff;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); -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; border-radius: 2px;
overflow: hidden; overflow: hidden;
margin-bottom: 10px; margin-bottom: 10px;
@ -184,6 +208,8 @@ main.account form {
#sidebar section > div { #sidebar section > div {
border: 0 $color-sidebar-border solid; border: 0 $color-sidebar-border solid;
border-top-width: 1px; border-top-width: 1px;
-webkit-transition: margin-bottom 150ms, opacity 150ms;
-o-transition: margin-bottom 150ms, opacity 150ms;
transition: margin-bottom 150ms, opacity 150ms; transition: margin-bottom 150ms, opacity 150ms;
overflow: hidden; overflow: hidden;
} }
@ -199,8 +225,11 @@ main.account form {
min-height: 54px; min-height: 54px;
min-width: 54px; min-width: 54px;
width: 100%; width: 100%;
-webkit-transition: width 150ms;
-o-transition: width 150ms;
transition: width 150ms; transition: width 150ms;
flex-shrink: 0; -ms-flex-negative: 0;
flex-shrink: 0;
} }
#sidebar #search.loading { #sidebar #search.loading {
/*noinspection CssUnknownTarget*/ /*noinspection CssUnknownTarget*/
@ -249,10 +278,18 @@ main:not([data-view=route-result]) #route-result-buttons {
opacity: 0; opacity: 0;
} }
#resultswrapper { #resultswrapper {
flex-grow: 1; -webkit-box-flex: 1;
flex-shrink: 1; -ms-flex-positive: 1;
flex-grow: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
flex-direction: column; -webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
} }
#resultswrapper section { #resultswrapper section {
max-height: 100%; max-height: 100%;
@ -272,28 +309,42 @@ h4 {
} }
section.details { section.details {
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
flex-direction: column; -webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
position: relative; position: relative;
} }
section.details > * { section.details > * {
flex-shrink: 0; -ms-flex-negative: 0;
flex-grow: 0; flex-shrink: 0;
-webkit-box-flex: 0;
-ms-flex-positive: 0;
flex-grow: 0;
} }
section.details > .details-head { section.details > .details-head {
padding: 11px 10px 8px; padding: 11px 10px 8px;
} }
section.details > .details-head > .button { section.details > .details-head > .button {
margin: -2px 0 0; margin: -2px 0 0;
-webkit-transition: none;
-o-transition: none;
transition: none; transition: none;
line-height: 2.5; line-height: 2.5;
} }
#sidebar section.details > .details-body { #sidebar section.details > .details-body {
border: 0; border: 0;
overflow: auto; overflow: auto;
overscroll-behavior: contain; -ms-scroll-chaining: none;
flex-grow: 1; overscroll-behavior: contain;
flex-shrink: 1; -webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
} }
section.details { section.details {
@ -313,23 +364,33 @@ section.details {
opacity: 0; opacity: 0;
} }
#sidebar section.details:not(.loading) > .details-head { #sidebar section.details:not(.loading) > .details-head {
-webkit-transition: background-color 50ms;
-o-transition: background-color 50ms;
transition: background-color 50ms; transition: background-color 50ms;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
} }
#sidebar section.details:not(.loading) > .details-head .button { #sidebar section.details:not(.loading) > .details-head .button {
-webkit-transition: opacity 150ms;
-o-transition: opacity 150ms;
transition: opacity 150ms; transition: opacity 150ms;
pointer-events: auto; pointer-events: auto;
opacity: 1; opacity: 1;
} }
#sidebar section.details:not(.loading) > div.details-body { #sidebar section.details:not(.loading) > div.details-body {
max-height: 100vh; max-height: 100vh;
-webkit-transition: max-height 150ms, opacity 50ms;
-o-transition: max-height 150ms, opacity 50ms;
transition: max-height 150ms, opacity 50ms; transition: max-height 150ms, opacity 50ms;
transition-timing-function: ease-in; -webkit-transition-timing-function: ease-in;
animation: show-details-body; -o-transition-timing-function: ease-in;
animation-duration: 160ms; transition-timing-function: ease-in;
-webkit-animation: show-details-body;
animation: show-details-body;
-webkit-animation-duration: 160ms;
animation-duration: 160ms;
opacity: 1; opacity: 1;
} }
@keyframes show-details-body { @-webkit-keyframes show-details-body {
from { from {
overflow: hidden; overflow: hidden;
} }
@ -341,15 +402,35 @@ section.details {
overscroll-behavior: contain; 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 { #location-details .details-body {
padding: 0 10px; padding: 0 10px;
} }
#location-details dl { #location-details dl {
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
flex-wrap: wrap; -ms-flex-wrap: wrap;
justify-content: space-between; flex-wrap: wrap;
align-items: flex-start; -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; margin: 0;
font-size:90%; font-size:90%;
} }
@ -376,16 +457,35 @@ main:not(.show-options) #resultswrapper #route-options {
display:none; display:none;
} }
main .buttons .details .material-icons { main .buttons .details .material-icons {
transition: -webkit-transform 250ms;
-webkit-transition: -webkit-transform 250ms;
-o-transition: transform 250ms;
transition: transform 250ms; transition: transform 250ms;
transition: transform 250ms, -webkit-transform 250ms;
} }
main.show-details .buttons .details .material-icons { main.show-details .buttons .details .material-icons {
transform: scale(1, -1); -webkit-transform: scale(1, -1);
-ms-transform: scale(1, -1);
transform: scale(1, -1);
} }
main.show-details #resultswrapper .details, main.show-details #resultswrapper .details,
main.show-options #resultswrapper #route-options { main.show-options #resultswrapper #route-options {
animation: show-details; -webkit-animation: show-details;
animation-duration: 150ms; animation: show-details;
animation-timing-function: ease-out; -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 { @keyframes show-details {
from { from {
@ -404,14 +504,19 @@ main.show-options #resultswrapper #route-options {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.route-options-buttons { .route-options-buttons {
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
flex-wrap: wrap; -ms-flex-wrap: wrap;
flex-wrap: wrap;
padding: 0 0 15px 10px; padding: 0 0 15px 10px;
} }
.route-options-buttons button { .route-options-buttons button {
padding: 0 1rem; padding: 0 1rem;
margin: 0 10px 0 0; margin: 0 10px 0 0;
flex-grow: 1; -webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
} }
#route-options .details-head button { #route-options .details-head button {
font-size: 30px; font-size: 30px;
@ -431,7 +536,11 @@ main.show-options #resultswrapper #route-options {
left: 9px; left: 9px;
cursor: default; cursor: default;
color: $color-icon; 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;
transition: color 150ms, transform 150ms, top 150ms, -webkit-transform 150ms;
pointer-events: none; pointer-events: none;
} }
.location > * { .location > * {
@ -453,9 +562,12 @@ main.show-options #resultswrapper #route-options {
padding: 0; padding: 0;
} }
.locationinput input { .locationinput input {
box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box;
border-width:0; border-width:0;
height: 54px; height: 54px;
-webkit-transition: padding-bottom 150ms;
-o-transition: padding-bottom 150ms;
transition: padding-bottom 150ms; transition: padding-bottom 150ms;
line-height: 1.0; line-height: 1.0;
padding-left: 52px; padding-left: 52px;
@ -466,6 +578,8 @@ main.show-options #resultswrapper #route-options {
top: 30px; top: 30px;
line-height: 1.1; line-height: 1.1;
opacity: 1; opacity: 1;
-webkit-transition: opacity 150ms;
-o-transition: opacity 150ms;
transition: opacity 150ms; transition: opacity 150ms;
} }
.locationinput:not(.selected) small { .locationinput:not(.selected) small {
@ -485,6 +599,8 @@ main.show-options #resultswrapper #route-options {
left: 1px; left: 1px;
content: "search"; content: "search";
color: $color-icon-light; color: $color-icon-light;
-webkit-transition: color 150ms;
-o-transition: color 150ms;
transition: color 150ms; transition: color 150ms;
} }
.locationinput.selected .icon::before { .locationinput.selected .icon::before {
@ -501,7 +617,11 @@ main.show-options #resultswrapper #route-options {
width: 42px; width: 42px;
height: 42px; height: 42px;
border-width: 0; 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;
transition: transform 150ms, opacity 150ms, top 150ms, right 150ms, -webkit-transform 150ms;
font-size: 42px; font-size: 42px;
color: $color-icon-light; color: $color-icon-light;
line-height: 1; line-height: 1;
@ -514,7 +634,9 @@ main.show-options #resultswrapper #route-options {
top: 5px; top: 5px;
} }
.locationinput:not(.empty) button.locate, .locationinput.empty button.clear { .locationinput:not(.empty) button.locate, .locationinput.empty button.clear {
transform: scale(0.7); -webkit-transform: scale(0.7);
-ms-transform: scale(0.7);
transform: scale(0.7);
opacity: 0; opacity: 0;
pointer-events:none; pointer-events:none;
} }
@ -524,7 +646,11 @@ main.show-options #resultswrapper #route-options {
top: 53px; top: 53px;
left: 25px; left: 25px;
text-shadow: 2px 0 1px #fff, -2px 0 1px #fff; 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;
transition: top 150ms, opacity 150ms, color 150ms, transform 150ms, -webkit-transform 150ms;
color: $color-icon; color: $color-icon;
pointer-events: none; pointer-events: none;
} }
@ -596,14 +722,21 @@ main:not([data-view=route-result]) #route-dots {
} }
.buttons { .buttons {
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
flex-direction: row; -webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
margin-left: -1px; margin-left: -1px;
height: 3.3rem; height: 3.3rem;
} }
.buttons > button.button-clear { .buttons > button.button-clear {
width: 1px; width: 1px;
flex-grow: 1; -webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
margin: 0; margin: 0;
border: 0 $color-sidebar-border solid; border: 0 $color-sidebar-border solid;
border-left-width: 1px; border-left-width: 1px;
@ -689,16 +822,22 @@ main:not([data-view=route-result]) #route-summary {
pointer-events: none; pointer-events: none;
} }
main[data-view=route-result] #sidebar #search:not(.focused) .locationinput .icon { main[data-view=route-result] #sidebar #search:not(.focused) .locationinput .icon {
transform: scale(0.6); -webkit-transform: scale(0.6);
-ms-transform: scale(0.6);
transform: scale(0.6);
top: -1px; top: -1px;
} }
main[data-view=route-result] #sidebar #search:not(.focused) .locationinput button { main[data-view=route-result] #sidebar #search:not(.focused) .locationinput button {
transform: scale(0.6); -webkit-transform: scale(0.6);
-ms-transform: scale(0.6);
transform: scale(0.6);
top: -5px; top: -5px;
right: -5px; right: -5px;
} }
main[data-view=route-result] #sidebar #search:not(.focused) #route-dots { main[data-view=route-result] #sidebar #search:not(.focused) #route-dots {
transform: scale(0.7); -webkit-transform: scale(0.7);
-ms-transform: scale(0.7);
transform: scale(0.7);
top: 32px; top: 32px;
} }
} }
@ -752,9 +891,15 @@ body:not(.mobileclient) .leaflet-control-user-location a {
} }
.c3nav-grid-row, .c3nav-grid-column { .c3nav-grid-row, .c3nav-grid-column {
position: absolute; position: absolute;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
justify-content: space-between; -webkit-box-pack: justify;
align-items: center; -ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
border-style: solid; border-style: solid;
border-color: rgba(0, 0, 0, 0.25); border-color: rgba(0, 0, 0, 0.25);
overflow:hidden; overflow:hidden;
@ -775,7 +920,10 @@ body:not(.mobileclient) .leaflet-control-user-location a {
.c3nav-grid-column { .c3nav-grid-column {
top: 0; top: 0;
bottom: 0; bottom: 0;
flex-direction: column; -webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0 0 0 1px; border-width: 0 0 0 1px;
} }
.c3nav-grid-column span { .c3nav-grid-column span {
@ -791,10 +939,18 @@ body:not(.mobileclient) .leaflet-control-user-location a {
right: 0; right: 0;
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.3);
z-index: 2; z-index: 2;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
align-items: center; -webkit-box-align: center;
justify-content: center; -ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
opacity: 0; opacity: 0;
-webkit-transition: opacity 300ms;
-o-transition: opacity 300ms;
transition: opacity 300ms; transition: opacity 300ms;
pointer-events: none; pointer-events: none;
} }
@ -803,7 +959,8 @@ body:not(.mobileclient) .leaflet-control-user-location a {
pointer-events: auto; pointer-events: auto;
} }
#modal-content { #modal-content {
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); -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; border-radius: 2px;
background-color: #ffffff; background-color: #ffffff;
width: 380px; width: 380px;
@ -812,7 +969,8 @@ body:not(.mobileclient) .leaflet-control-user-location a {
max-width: 95vw; max-width: 95vw;
padding: 20px; padding: 20px;
overflow: auto; overflow: auto;
overscroll-behavior: contain; -ms-scroll-chaining: none;
overscroll-behavior: contain;
position: relative; position: relative;
} }
#modal.loading #modal-content { #modal.loading #modal-content {
@ -938,12 +1096,16 @@ ul.messages li.alert-danger {
} }
.columns { .columns {
display:-webkit-box;
display:-ms-flexbox;
display:flex; display:flex;
width: 100%; width: 100%;
} }
.columns > div { .columns > div {
padding-right: 10px; padding-right: 10px;
flex-grow: 1; -webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
} }
.columns > div > h4:first-child { .columns > div > h4:first-child {
margin-top: 0; margin-top: 0;
@ -997,11 +1159,17 @@ main .narrow form button {
display: inline; display: inline;
} }
.fields { .fields {
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
align-items: center; -webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
} }
.fields .field { .fields .field {
flex-grow: 1; -webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
} }
.fields .field > * { .fields .field > * {
width: 100%; width: 100%;
@ -1015,8 +1183,13 @@ main .narrow form button {
} }
@media (max-width: 500px) { @media (max-width: 500px) {
.fields { .fields {
flex-direction: column; -webkit-box-orient: vertical;
align-items: stretch; -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) { .fields .field:not(:first-child) {
margin-left: 0; margin-left: 0;