page split width variables

This commit is contained in:
2019-02-25 20:07:30 +01:00
parent 7a503c0888
commit e4f89008cf
4 changed files with 18 additions and 14 deletions

View File

@@ -1,18 +1,22 @@
//Feed width
$feed-width: "30% - 1rem";
$feed-width-max: "400px + 3rem";
//Feed colors
$post-input-bg: #d9deff; $post-input-bg: #d9deff;
$post-color: #323268; $post-color: #323268;
$post-bg: #B4BDFF; $post-bg: #B4BDFF;
$message-color: #326526; $message-color: #326526;
$message-bg: #6DFF58; $message-bg: #6DFF58;
$picture-color: #635C28; $picture-color: #635C28;
$picture-bg: #F3EC9F; $picture-bg: #F3EC9F;
//Legend colors
$track-main-color: #00ff78; $track-main-color: #00ff78;
$track-off-track-color: #0000ff; $track-off-track-color: #0000ff;
$track-hitchhiking-color: #FF7814; $track-hitchhiking-color: #FF7814;
$legend-color: #222; $legend-color: #222;
$feed-width: calc(30% - 1rem);
$feed-width-min: calc(400px + 3rem);
#messages { #messages {
#submap { #submap {
@@ -23,8 +27,8 @@ $feed-width-min: calc(400px + 3rem);
width: 100%; width: 100%;
&.with_feed { &.with_feed {
width: calc(70% + 1rem); width: calc(100% - #{$feed-width});
min-width: calc(100% - 400px - 4rem); min-width: calc(100% - #{$feed-width-max});
} }
.loader { .loader {
@@ -100,8 +104,8 @@ $feed-width-min: calc(400px + 3rem);
/* Pull right controls by $feed-width % */ /* Pull right controls by $feed-width % */
.leaflet-right { .leaflet-right {
width: $feed-width; width: calc(#{$feed-width});
max-width: $feed-width-min; max-width: calc(#{$feed-width-max});
.leaflet-control { .leaflet-control {
left: -100%; left: -100%;
@@ -150,8 +154,8 @@ $feed-width-min: calc(400px + 3rem);
right: 0; right: 0;
top: 0; top: 0;
bottom: 0; bottom: 0;
width: $feed-width; width: calc(#{$feed-width});
max-width: $feed-width-min; max-width: calc(#{$feed-width-max});
z-index: 999; z-index: 999;
#posts { #posts {

View File

@@ -1 +1 @@
sass --unix-newline -l --style=compressed spot.scss spot.css sass --unix-newline -l --style=compressed --watch spot.scss:spot.css

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long