summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2021-11-27 14:19:19 +0100
committerxengineering <me@xengineering.eu>2021-11-27 14:19:19 +0100
commit796a8ee01a5ac2092da66d6d19180802673fc3e9 (patch)
treeb84cd5df89deba84f3bf5350f8bc02af4e98a670
parent0de11573b0a4b81d34e9b5005341e746cb4777f2 (diff)
downloadlibweb-796a8ee01a5ac2092da66d6d19180802673fc3e9.tar
libweb-796a8ee01a5ac2092da66d6d19180802673fc3e9.tar.zst
libweb-796a8ee01a5ac2092da66d6d19180802673fc3e9.zip
Introduce small/big vertical Space Variable
-rw-r--r--css/xengineering.css61
1 files changed, 32 insertions, 29 deletions
diff --git a/css/xengineering.css b/css/xengineering.css
index 4a322ed..9067ec7 100644
--- a/css/xengineering.css
+++ b/css/xengineering.css
@@ -34,6 +34,9 @@ contact via mail: me@xengineering.eu
--background-color-dark2: darkgray;
--font-family-primary: Arial, Helvetica, sans-serif;
+
+ --vertical-space-small: 1vh;
+ --vertical-space-big: 3vh;
}
/***************************** DEFAULT / MOBILE *******************************/
@@ -85,50 +88,50 @@ main {
}
h1 {
- margin-top: 3vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-big);
+ margin-bottom: var(--vertical-space-small);
font-size: 2.2em;
}
h2 {
- margin-top: 3vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-big);
+ margin-bottom: var(--vertical-space-small);
font-size: 2.0em;
}
h3 {
- margin-top: 3vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-big);
+ margin-bottom: var(--vertical-space-small);
font-size: 1.8em;
}
h4 {
- margin-top: 3vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-big);
+ margin-bottom: var(--vertical-space-small);
font-size: 1.6em;
}
h5 {
- margin-top: 3vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-big);
+ margin-bottom: var(--vertical-space-small);
font-size: 1.4em;
}
h6 {
- margin-top: 3vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-big);
+ margin-bottom: var(--vertical-space-small);
font-size: 1.2em;
}
p {
- margin-top: 1vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-small);
+ margin-bottom: var(--vertical-space-small);
}
a {
display: inline;
- margin-top: 1vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-small);
+ margin-bottom: var(--vertical-space-small);
text-decoration: none;
color: blue;
}
@@ -148,33 +151,33 @@ button:hover {
}
img {
- margin-top: 1vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-small);
+ margin-bottom: var(--vertical-space-small);
}
ol {
- margin-top: 1vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-small);
+ margin-bottom: var(--vertical-space-small);
list-style-position: outside;
padding-left: 2em;
}
ul {
- margin-top: 1vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-small);
+ margin-bottom: var(--vertical-space-small);
list-style-position: outside;
padding-left: 2em;
}
li {
display: list-item;
- margin-top: 1vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-small);
+ margin-bottom: var(--vertical-space-small);
}
pre {
- margin-top: 1vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-small);
+ margin-bottom: var(--vertical-space-small);
padding: 1em;
white-space: pre-wrap;
background-color: var(--background-color-light2);
@@ -182,13 +185,13 @@ pre {
}
footer {
- height: 3vh;
+ height: var(--vertical-space-big);
background-color: rgba(0,0,0,0);
}
.card {
- margin-top: 1vh;
- margin-bottom: 1vh;
+ margin-top: var(--vertical-space-small);
+ margin-bottom: var(--vertical-space-small);
padding: 1em;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
border-radius: 0.5em;