summaryrefslogtreecommitdiff
path: root/src/css/design.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/css/design.scss')
-rwxr-xr-xsrc/css/design.scss168
1 files changed, 132 insertions, 36 deletions
diff --git a/src/css/design.scss b/src/css/design.scss
index a83ce34..d98db42 100755
--- a/src/css/design.scss
+++ b/src/css/design.scss
@@ -2,7 +2,7 @@ $gsm: "screen and (max-width: 768px)";
$gt-gsm: "screen and (min-width: 768px)";
$tab: "screen and (max-width: 1024px)";
$laptop: "screen and (min-width: 1024px)";
-$big-laptop: "screen and (min-width: 1400px)";
+$big-laptop: "screen and (min-width: 1520px)";
$big-screen: "screen and (min-width: 1720px)";
@import 'contenu';
@@ -12,31 +12,64 @@ $big-screen: "screen and (min-width: 1720px)";
html {
- background: #f1f1f1;
+ @mixin lightMode {
+ background: #f1f1f1;
+ }
@mixin darkMode {
background: #222;
}
- @media (prefers-color-scheme: dark) { @include darkMode; } &.dark { @include darkMode; }
-}
-/*
- Disabled because of firefx bugs : <https://bugzilla.mozilla.org/show_bug.cgi?id=1712656>
+ @media (prefers-color-scheme: dark) { @include darkMode; }
+ @media (prefers-color-scheme: light) { @include lightMode; }
-@media (prefers-color-scheme: dark) {
- html{background:#282328;filter:invert(0.98);}
- img,svg,.cp_embed_wrapper,pre{filter:invert(0.8);}
- #logo-ache {filter:invert(0);}
+ &.light { @include lightMode; }
+ &.dark { @include darkMode; }
}
-*/
body {
margin: 0;
line-height: 1.35;
- color: #333333;
word-wrap: break-word;
font-size: 16px;
+ a {
+ text-decoration: underline;
+ text-decoration-thickness: 10%;
+ text-decoration-style: dotted;
+
+ @mixin lightMode {
+ &:hover, &:focus {
+ text-shadow: 0 0 2px #999;
+ text-decoration-color: royalblue;
+ }
+
+ color: #458;
+ &:visited {
+ color: #444;
+ }
+ }
+ @mixin darkMode {
+ &:hover, &:focus {
+ text-shadow: 0 0 2px #FFF;
+ text-decoration-color: goldenrod;
+ }
+
+
+ color: #B7B7A7;
+ &:visited {
+ color: #C7C7C7;
+ }
+ }
+
+ @media (prefers-color-scheme: dark) { @include darkMode; }
+ @media (prefers-color-scheme: light) { @include lightMode; }
+
+ &.light { @include lightMode; }
+ &.dark { @include darkMode; }
+ }
+
--width_panel: 100%;
+ --width_panel_bis: 0px;
@media #{$gt-gsm} {
--width_panel: 290px;
--width_panel_bis: 290px;
@@ -44,14 +77,8 @@ body {
#side-bar {
box-sizing: border-box;
-
- @mixin lightMode {
- background: #F5F6F5;
- }
- @media (prefers-color-scheme: light) { @include lightMode; } &.dark { @include lightMode; }
padding-top: 10px;
-
text-rendering: optimizelegibility;
width: var(--width_panel);
left: calc(var(--width_panel_bis) - var(--width_panel);
@@ -63,13 +90,13 @@ body {
transition: margin-left 0.25s ease-out 0.25s;
}
}
-#harr {
- cursor: pointer;
-}
.hide_arrow {
@media (prefers-color-scheme: dark) { filter: invert(1); }
+ @media (prefers-color-scheme: light) { filter: invert(0); }
+ &.light{ filter: invert(0); }
&.dark { filter: invert(1); }
+ cursor: pointer;
position: fixed;
display: none;
top: 30%;
@@ -112,9 +139,9 @@ ache {
margin-left: auto;
margin-right: auto;
}
-img {
+img, video {
display: block;
- margin: 0 auto;
+ margin: 15px 15px;
max-width: 100%;
}
table {
@@ -124,22 +151,65 @@ table {
p {
display: inline;
}
- th {
- background-color: lightblue;
+
+ @mixin lightMode {
+ th {
+ background-color: lightblue;
+ }
+ tr:nth-child(even) {
+ background-color: #DEDEFF99;
+ }
+ }
+ @mixin darkMode {
+ th {
+ background-color: darkslategrey;
+ }
+
+ tr:nth-child(even) {
+ background-color: darkslateblue;
+ }
}
+
+
+ @media (prefers-color-scheme: dark) { @include darkMode; }
+ @media (prefers-color-scheme: light) { @include lightMode; }
+
+ &.light { @include lightMode; }
+ &.dark { @include darkMode; }
+
+}
+p code {
+ display: inline-block;
+ white-space: nowrap;
+}
+code {
+ border: 0px;
+ border-radius: 8px;
+ padding: 0 5px;
+ font-weight: 500;
+ font-family: Consolas, Liberation Mono, Monaco, Lucida Console, monospace;
+
+ @mixin lightMode {
+ color: #c22222;
+ background: #FFF;
+ }
+ @mixin darkMode {
+ color: red;
+ background: black;
+ }
+
+ @media (prefers-color-scheme: dark) { @include darkMode; }
+ @media (prefers-color-scheme: light) { @include lightMode; }
+
+ &.light { @include lightMode; }
+ &.dark { @include darkMode; }
+
+
}
table, th, td {
- border: 1px solid #dfe2e5;
padding: 7px 13px;
-}
-.suite {
- color: #686868;
- outline: none;
- text-decoration: none;
- font-size: 0.6em;
- font-weight: bold;
- font-family: monospace, serif;
- text-shadow: 0 1px 0 #DDD;
+
+ border: 1px solid #dfe2e5;
}
.decal_panel {
@@ -149,4 +219,30 @@ table, th, td {
}
transition: margin-left 0.25s ease-out 0.25s, grid-template-columns 0.25s ease-out 0.25s;
}
-
+#hid {
+ .moon, .sun {
+ display: none;
+ }
+ &.dark {
+ .sun {
+ display: unset;
+ }
+ }
+ &.light {
+ .moon {
+ display: unset;
+ }
+ }
+ position: fixed;
+ top: 10px;
+ right: 10vw;
+ .sun, .moon {
+ position: sticky;
+ top: 400px;
+ cursor: pointer;
+ opacity: 0.5;
+ &:hover {
+ opacity: 1;
+ }
+ }
+}