sass color variables

This commit is contained in:
2019-02-24 00:07:05 +01:00
parent eb5006f610
commit 202ac44759
5 changed files with 51 additions and 53 deletions

View File

@@ -50,4 +50,9 @@ body, textarea, input, button {
textarea { textarea {
resize: none; resize: none;
}
button {
cursor: pointer;
font-weight: bold;
} }

View File

@@ -1,3 +1,18 @@
$post-input-bg: #d9deff;
$post-color: #323268;
$post-bg: #B4BDFF;
$message-color: #326526;
$message-bg: #6DFF58;
$picture-color: #635C28;
$picture-bg: #F3EC9F;
$track-main-color: #00ff78;
$track-off-track-color: #0000ff;
$track-hitchhiking-color: #FF7814;
$legend-color: #222;
$feed-width: calc(30% - 1rem);
$feed-width-min: calc(400px + 3rem);
#messages { #messages {
#submap { #submap {
@@ -46,12 +61,12 @@
.fa-message { .fa-message {
font-size: 32px; font-size: 32px;
text-shadow: rgba(0, 0, 0, 0.5) 3px 3px 3px; text-shadow: rgba(0, 0, 0, 0.5) 3px 3px 3px;
color: #6DFF58; color: $message-bg;
} }
.fa-message-in { .fa-message-in {
font-size: 13px; font-size: 13px;
color: #326526; color: $message-color;
top: 3px; top: 3px;
} }
} }
@@ -70,7 +85,7 @@
} }
&.leaflet-control-layers-expanded { &.leaflet-control-layers-expanded {
color: #222; color: $legend-color;
width: calc(100% - 2em - 16px); width: calc(100% - 2em - 16px);
} }
@@ -83,9 +98,11 @@
} }
} }
/* Pull right controls by 30% */ /* Pull right controls by $feed-width % */
.leaflet-right { .leaflet-right {
//See below #feed width: $feed-width;
max-width: $feed-width-min;
.leaflet-control { .leaflet-control {
left: -100%; left: -100%;
} }
@@ -103,8 +120,6 @@
} }
#legend { #legend {
//right: 30vw;
.line { .line {
display: block; display: block;
border-left: 2em solid; border-left: 2em solid;
@@ -112,52 +127,33 @@
padding-left: 0.5em; padding-left: 0.5em;
margin: 1em 1em 0.5em; margin: 1em 1em 0.5em;
font-size: 1em; font-size: 1em;
color: #222; color: $legend-color;
&:first-child { &:first-child {
margin-top: 0.5em; margin-top: 0.5em;
} }
&.main { &.main {
border-color: #00ff78; border-color: $track-main-color;
} }
&.off-track { &.off-track {
border-color: #0000ff; border-color: $track-off-track-color;
} }
&.hitchhiking { &.hitchhiking {
border-color: #FF7814; border-color: $track-hitchhiking-color;
} }
} }
} }
#feed, .leaflet-right {
width: calc(30% - 1rem);
max-width: calc(400px + 3rem);
}
#feed { #feed {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
bottom: 0; bottom: 0;
width: $feed-width;
max-width: $feed-width-min;
z-index: 999; z-index: 999;
input, textarea, button {
border: none;
padding: 0.5em 1em;
background: #F7F7F7;
}
button {
background: #CCC;
cursor: pointer;
font-weight: bold;
}
button: hover {
background: #F7F7F7;
}
#posts { #posts {
position: absolute; position: absolute;
top: 0; top: 0;
@@ -167,11 +163,13 @@
#poster { #poster {
input, textarea, button { input, textarea, button {
border: none;
padding: 0.5em 1em;
border-radius: 3px; border-radius: 3px;
background-color: #d9deff; background-color: $post-input-bg;
color: #323268; color: $post-color;
} }
#post { #post {
margin-bottom: 1em; margin-bottom: 1em;
width: calc(100% - 2em); width: calc(100% - 2em);
@@ -183,21 +181,21 @@
#submit { #submit {
margin-left: 1em; margin-left: 1em;
background-color: #323268; background-color: $post-color;
color: #B4BDFF; color: $post-bg;
margin-bottom: 0.5em; margin-bottom: 0.5em;
&:hover { &:hover {
background-color: #d9deff; background-color: $post-input-bg;
color: #323268; color: $post-color;
} }
} }
} }
.post { .post {
margin-bottom: 1em; margin-bottom: 1em;
background: #B4BDFF; background: $post-bg;
color: #323268; color: $post-color;
border-radius: 3px; border-radius: 3px;
width: calc(100% - 1em); width: calc(100% - 1em);
box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.5); box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.5);
@@ -239,8 +237,8 @@
padding: 0em 1em 0.5em; padding: 0em 1em 0.5em;
} }
&.picture { &.picture {
background: #F3EC9F; background: $picture-bg;
color: #635C28; color: $picture-color;
a { a {
display: inline-block; display: inline-block;
@@ -257,8 +255,8 @@
} }
} }
&.message { &.message {
background: #6DFF58; background: $message-bg;
color: #326526; color: $message-color;
p { p {
font-size: 0.9em; font-size: 0.9em;
@@ -282,15 +280,11 @@
.fa { .fa {
font-size: 1.5em; font-size: 1.5em;
color: #323268; color: $post-color;
} }
} }
} }
} }
#loading {
}
} }
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
todo
View File

@@ -1,4 +1,3 @@
To Do List To Do List
---------- ----------
- Device/Spot Class - Device/Spot Class
- variablize colors scss