svg.escobar.life

A simple SVG markup editor for the web

Commit
f26386938c565ec8a14f324787a46552e5dfb1be
Parent
65060d8b36936357d3f332862abc0dc152da6cd4
Author
Pablo <pablo-escobar@riseup.net>
Date

Changed the style of the page

Changed the font to the default monospace font

Also changed the color scheme

Also incorporated the relevant rules from base.css to the main stylesheet

Diffstat

1 file changed, 110 insertions, 94 deletions

Status File Name N° Changes Insertions Deletions
Modified css/styles.css 204 110 94
diff --git a/css/styles.css b/css/styles.css
@@ -1,57 +1,81 @@
-@import url('/css/base.css');
+/*  This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program. If not, see <https://www.gnu.org/licenses/>. */
 
 :root {
-    align-self: center;
-    align-content: center;
-    align-items: center;
-    
-    cursor: default;
-    user-select: none;
-    scrollbar-width: none;
+  align-self: center;
+  align-content: center;
+  align-items: center;
+
+  cursor: default;
+  user-select: none;
+  scrollbar-width: none;
 
-    --selection: #A599E940;
-    --dark: #000011;
+  --background: #151226;
+  --foreground: #dfdfdf;
+  --accent: #90ff68;
 
-    --tag: #9EFFFF;
-    --attribute: var(--accent);
-    --string: #A5FF90;
-    --comm: #B362FF;
+  --selection: #A599E940;
+  --dark: #05020d;
 
-    --indent: 3em;
+  --tag: #FF4E56;
+  --attribute: var(--accent);
+  --string: #FFE86E;
+  --comm: #68CDFF;
+
+  --indent: 3em;
 }
 
 body {
-    height: 100vh;
-    min-height: 25vw;
+  height: 100vh;
+  min-height: 25vw;
+  padding: 0;
+  margin: 0;
 
-    padding: 0;
+  background: var(--background);
+}
+
+body, button, .elmsh, textarea {
+  font-size: 13pt;
+  line-height: 1.4em;
+  font-family: monospace;
+  color: var(--foreground);
 }
 
 #container {
-    display: grid;
+  display: grid;
 
-    grid-gap: 1em;
-    grid-template-rows: 30vh auto;
+  grid-gap: 1em;
+  grid-template-rows: 30vh auto;
 
-    height: calc(100% - 2em);
-    padding: 1em;
+  height: calc(100% - 2em);
+  padding: 1em;
 }
 
 @media (orientation: landscape) {
-    #container {
-        grid-template-columns: 1fr 2fr;
-        grid-template-rows: 100%;
-    }
+  #container {
+    grid-template-columns: 1fr 2fr;
+    grid-template-rows: 100%;
+  }
 }
 
 #container #display img {
-    grid-area: image;
+  grid-area: image;
 
-    max-width: 100% !important;
-    max-height: 100% !important;
+  max-width: 100% !important;
+  max-height: 100% !important;
 
-    justify-self: center;
-    align-self: center;
+  justify-self: center;
+  align-self: center;
 }
 
 @media (orientation: portrait) {
@@ -61,41 +85,39 @@ body {
 }
 
 #container, #container * {
-    transition: background-color .25s ease, fill .25s ease;
+  transition: background-color .25s ease, fill .25s ease;
 }
 
 #container #display {
-    display: grid;
+  display: grid;
 
-    grid-template-rows: auto 2em;
-    grid-template-columns: repeat(3, 1fr);
-    grid-template-areas: "image  image  image"
-                         "button button button";
-    grid-gap: 1em;
+  grid-template-rows: auto 2em;
+  grid-template-columns: repeat(3, 1fr);
+  grid-template-areas: "image  image  image"
+  "button button button";
+  grid-gap: 1em;
 
-    padding: 1em;
-    background: var(--foreground);
+  padding: 1em;
+  background: var(--foreground);
 }
 
 #container #display.dark {
-    background: var(--dark);
+  background: var(--dark);
 }
 
 #container #display button {
-    grid-area: auto;
-    display: flex;
+  grid-area: auto;
+  display: flex;
 
-    background: var(--background);
-    border: none;
-    cursor: pointer;
+  background: var(--background);
+  border: none;
+  cursor: pointer;
 
-    font-family: 'IBM Plex Mono', 'EmojiOne Color', monospace;
-    font-size: 13pt;
-    line-height: 2em;
-    text-align: center;
-    color: var(--foreground);
+  line-height: 2em;
+  text-align: center;
+  color: var(--foreground);
 
-    overflow-y: hidden;
+  overflow-y: hidden;
 }
 
 #container #display button span {
@@ -103,31 +125,31 @@ body {
 }
 
 #container #display img#error {
-    width: 100%;
-    height: 100%;
+  width: 100%;
+  height: 100%;
 }
 
 #container #display img#error, #container.error #display img#image {
-    display: none;
+  display: none;
 }
 
 #container.error #display #error {
-    display: block;
+  display: block;
 }
 
 #container #editor {
-    position: relative;
+  position: relative;
 
-    width: 100%;
-    height: 100%;
+  width: 100%;
+  height: 100%;
 
-    overflow: hidden;
-    line-height: 1em;
+  overflow: hidden;
+  line-height: 1em;
 }
 
 #container #editor > * {
-    position: absolute;
-    will-change: transform;
+  position: absolute;
+  will-change: transform;
 }
 
 #container #editor * {
@@ -135,44 +157,44 @@ body {
 }
 
 #container #editor textarea {
-    z-index: 1;
+  z-index: 1;
 
-    resize: none;
-    white-space: pre;
-    overflow: scroll;
+  resize: none;
+  white-space: pre;
+  overflow: scroll;
 
-    width: calc(100% - var(--indent));
-    height: 100%;
-    margin-left: var(--indent);
+  width: calc(100% - var(--indent));
+  height: 100%;
+  margin-left: var(--indent);
 
-    outline: none;
+  outline: none;
 
-    border: none;
-    background: transparent;
+  border: none;
+  background: transparent;
 
-    color: transparent;
-    caret-color: var(--foreground);
+  color: transparent;
+  caret-color: var(--foreground);
 
-    scrollbar-color: var(--foreground) transparent;
-    scrollbar-width: thin;
+  scrollbar-color: var(--foreground) transparent;
+  scrollbar-width: thin;
 }
 
 #container #editor textarea::-webkit-scrollbar,
 #container #editor textarea::-webkit-scrollbar-track {
-    width: 11px;
-    height: 11px;
-    background: transparent;
-    outline: none;
+  width: 11px;
+  height: 11px;
+  background: transparent;
+  outline: none;
 }
 
 #container #editor textarea::-webkit-scrollbar-thumb {
-    background: var(--foreground);
-    outline: none;
+  background: var(--foreground);
+  outline: none;
 }
 
 #container #editor textarea::selection {
-    background: var(--selection);
-    color: transparent;
+  background: var(--selection);
+  color: transparent;
 }
 
 #noscript {
@@ -185,12 +207,6 @@ body {
   margin: auto;
 }
 
-.elmsh, #container #editor textarea {
-  font-family: 'IBM Plex Mono', 'EmojiOne Color', monospace;
-  font-size: 13pt;
-  line-height: 1.4em;
-}
-
 .elmsh-line::before {
   display: inline-block;
   width: calc(var(--indent) - 1em);
@@ -202,8 +218,8 @@ body {
 }
 
 .elmsh-comm {
-    font-style: italic;
-    color: var(--comm);
+  font-style: italic;
+  color: var(--comm);
 }
 
 .elmsh , .elmsh7 { color: var(--foreground); }