summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kirillov <w96k@runbox.com>2024-10-31 07:02:44 +0400
committerMikhail Kirillov <w96k@runbox.com>2024-10-31 07:02:44 +0400
commit7f8256870ced9cf926ebd1bd920b0440f2fb97e1 (patch)
tree08c7d46e0508ef85fd01bf0751af5bc4931377cb
parent7dd59e3a8fca99de9fba36eeff0477ff7e18e348 (diff)
Update style
-rw-r--r--public/css/custom.css67
1 files changed, 34 insertions, 33 deletions
diff --git a/public/css/custom.css b/public/css/custom.css
index 4c45b42..25f5f7a 100644
--- a/public/css/custom.css
+++ b/public/css/custom.css
@@ -1,13 +1,14 @@
:root {
- --universal-margin: 0.5rem;
- --universal-padding: 0.5rem;
- --universal-border-radius: 0.2rem;
+ --universal-margin: 0.5em;
+ --universal-padding: 0.5em;
+ --universal-border-radius: 0.2em;
--a-link-color: blue;
--a-visited-color: #551A8B;
}
:link { color: #0000EE; }
:visited { color: #551A8B; }
+:visited:hover { color: blue; }
html {
font-family: sans-serif;
@@ -20,7 +21,7 @@ body {
article,
#footnotes,
#content > :not(article):not(#table-of-contents) {
- max-width: calc(60ch);
+ max-width: 40em;
margin: var(--universal-padding);
padding: calc(var(--universal-padding) * 2);
background: #fefefe;
@@ -41,7 +42,15 @@ article p {
article h2 {
margin-top: 0;
- padding: 0;
+ border: 1px solid rgba(0,0,0,.2);
+ text-transform: uppercase;
+ font-size: 1.2em;
+ text-align: center;
+ font-weight: 300;
+ border-radius: var(--universal-border-radius);
+ padding: 4px 2.5em;
+ box-shadow: 0px 2px 0 rgba(0,0,255,.2);
+ background: rgba(0,0,255,0.05);
}
.navbar {
@@ -50,43 +59,31 @@ article h2 {
border: 0;
position: relative;
z-index: 999;
-
- /* top: calc(var(--universal-padding) - 2px); */
+ font-size: 0.9em;
}
.navbar a {
text-transform: none;
background: #fefefe;
border: 1px solid rgba(0,0,0,.25);
- box-shadow: 0 1px 0px rgba(0,0,0,.1);
+ box-shadow: 0 2px 0px rgba(0,0,0,.1);
border-radius: var(--universal-border-radius);
text-decoration: underline;
- color: var(--a-link-color);
- padding: 4px 12px;
+ padding: 4px 2.5em;
margin-right: 6px;
flex-shrink: 0;
-}
-
-.navbar a:visited {
- color: purple;
-}
-
-#youmu {
- position: relative;
- top: 1em;
- margin-bottom: -0.5em;
- max-width: 400px;
- filter: drop-shadow(0 12px 4px rgba(0,0,0,.25));
+ font-weight: 600;
+ text-transform: uppercase;
}
#preamble {
- max-width: calc(60ch + 6em);
+ max-width: 42em;
margin: var(--universal-margin);
}
#postamble {
margin: var(--universal-margin);
- max-width: calc(76ch);
+ max-width: 50.5em;
display: flex;
flex-direction: row;
justify-content: space-between;
@@ -99,7 +96,7 @@ article h2 {
#postamble ul {
display: flex;
- list-style: square;
+ list-style: inside;
margin: 0;
padding-left: 0;
}
@@ -110,13 +107,12 @@ article h2 {
}
#postamble ul li:first-child {
- list-style: square !important;
+ list-style: inside !important;
}
}
#postamble ul li {
- margin: 0 0.75em;
- margin: 0 1ch;
+ margin: 0 0.5em;
}
#postamble ul li:first-child {
@@ -137,21 +133,24 @@ article h2 {
display: block;
z-index: 1050;
position: fixed;
- left: 70ch;
+ left: 45em;
background: #fefefe;
box-shadow: 0 1px 0px rgba(0,0,0,.1);
border-radius: var(--universal-border-radius);
border: 1px solid #cfcfcf;
max-height: calc(100% - 3 * (var(--universal-margin) + 0.5em) - 5em);
- overflow: auto;
- max-width: 35ch;
- padding-right: 2em;
+ max-width: 45m;
+ padding-right: 1em;
}
#table-of-contents * {
padding: none;
}
+#table-of-contents a:visited {
+ color: blue;
+}
+
#table-of-contents h2 {
font-size: 12pt;
margin: var(--universal-margin);
@@ -210,6 +209,8 @@ pre {
img {
max-width: 100%;
border-radius: var(--universal-border-radius);
+ box-shadow: 0 2px 1px rgba (0, 0, 0, 0.2);
+ border: 1px solid rgba(0, 0, 0, 0.2);
}
video {
@@ -238,8 +239,8 @@ a {
}
a:hover {
- text-decoration: underline;
background: #ddd;
+ box-shadow: 2px 2px 0px;
}
a:active {