mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
And notice shortcodes (#537)
* Added information panel shortcodes (#437) * Added information panel shortcodes * Fixed dark mixin * Moved mixin location to correct location Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com> * Fix SCSS styling * Update generated files * Fix notice HTML * Fix Makefile * Rename JS file * Adsd emoji support for lang selectors * Fix notices and other things * Fix JS on template * Update example content * Update images * Update generated files * Fix netlify preview * Fix netlify preview build * Fix netlify theme path Co-authored-by: Jian Liew <jianloongliew@gmail.com>
This commit is contained in:
committed by
GitHub
parent
32ffc536aa
commit
ed1c854df2
@@ -1,22 +1,23 @@
|
||||
*,
|
||||
*:after,
|
||||
*:before {
|
||||
box-sizing: inherit;
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
font-size: 62.5%;
|
||||
box-sizing: border-box;
|
||||
font-size: 62.5%;
|
||||
}
|
||||
|
||||
body {
|
||||
color: $fg-color;
|
||||
background-color: $bg-color;
|
||||
font-family: $font-family;
|
||||
font-size: 1.8em;
|
||||
font-weight: 400;
|
||||
font-family: $font-family;
|
||||
font-size: 1.8em;
|
||||
font-weight: 400;
|
||||
line-height: 1.8em;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 1.6em;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
@@ -26,7 +27,8 @@ a {
|
||||
font-weight: 500;
|
||||
color: $link-color;
|
||||
text-decoration: none;
|
||||
transition: all .25s ease-in;
|
||||
transition: all 0.25s ease-in;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
@@ -34,7 +36,7 @@ a {
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 2.0rem 0 2.0rem 0;
|
||||
margin: 2rem 0 2rem 0;
|
||||
}
|
||||
|
||||
h1,
|
||||
@@ -70,58 +72,70 @@ h6 {
|
||||
h1 {
|
||||
font-size: 3.2rem;
|
||||
line-height: 3.6rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
font-size: 3.0rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 3rem;
|
||||
line-height: 3.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2.8rem;
|
||||
line-height: 3.2rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 2.6rem;
|
||||
line-height: 3.0rem;
|
||||
line-height: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 2.4rem;
|
||||
line-height: 2.8rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 2.2rem;
|
||||
line-height: 2.6rem;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 2.2rem;
|
||||
line-height: 2.6rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
font-size: 2.0rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 2rem;
|
||||
line-height: 2.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 2.0rem;
|
||||
font-size: 2rem;
|
||||
line-height: 2.4rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 1.8rem;
|
||||
line-height: 2.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1.8rem;
|
||||
line-height: 2.2rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 1.6rem;
|
||||
line-height: 2.0rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
b, strong {
|
||||
b,
|
||||
strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.highlight > div,
|
||||
.highlight > pre {
|
||||
.highlight>div,
|
||||
.highlight>pre {
|
||||
margin: 0 0 2rem;
|
||||
padding: 1rem;
|
||||
border-radius: 1rem;
|
||||
@@ -135,6 +149,7 @@ pre {
|
||||
line-height: 2.6rem;
|
||||
overflow-x: auto;
|
||||
margin: 0;
|
||||
|
||||
code {
|
||||
display: inline-block;
|
||||
background-color: inherit;
|
||||
@@ -152,31 +167,39 @@ code {
|
||||
|
||||
blockquote {
|
||||
border-left: 2px solid $alt-bg-color;
|
||||
padding-left: 2.0rem;
|
||||
padding-left: 2rem;
|
||||
line-height: 2.2rem;
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
th, td {
|
||||
th,
|
||||
td {
|
||||
padding: 1.6rem;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table td, table th {
|
||||
|
||||
table td,
|
||||
table th {
|
||||
border: 2px solid $alt-fg-color;
|
||||
}
|
||||
|
||||
table tr:first-child th {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
table tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
table tr td:first-child,
|
||||
table tr th:first-child {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
table tr td:last-child,
|
||||
table tr th:last-child {
|
||||
border-right: 0;
|
||||
@@ -190,6 +213,16 @@ figure {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.preload-transitions * {
|
||||
$null-transition: none !important;
|
||||
|
||||
-webkit-transition: $null-transition;
|
||||
-moz-transition: $null-transition;
|
||||
-ms-transition: $null-transition;
|
||||
-o-transition: $null-transition;
|
||||
transition: $null-transition;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -200,10 +233,10 @@ figure {
|
||||
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
max-width: 90.0rem;
|
||||
max-width: 90rem;
|
||||
width: 100%;
|
||||
padding-left: 2.0rem;
|
||||
padding-right: 2.0rem;
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
|
||||
.fab {
|
||||
@@ -233,6 +266,6 @@ figure {
|
||||
img.emoji {
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
margin: 0 .05em 0 .1em;
|
||||
margin: 0 0.05em 0 0.1em;
|
||||
vertical-align: -0.1em;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
@mixin base_dark {
|
||||
|
||||
color: $fg-color-dark;
|
||||
background-color: $bg-color-dark;
|
||||
|
||||
@@ -50,18 +49,18 @@
|
||||
border-left: 2px solid $alt-bg-color-dark;
|
||||
}
|
||||
|
||||
table td, table th {
|
||||
table td,
|
||||
table th {
|
||||
border: 2px solid $alt-fg-color-dark;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include base_dark()
|
||||
@include base_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include base_dark()
|
||||
@include base_dark();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ body.rtl {
|
||||
table tr th:first-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
table tr td:last-child,
|
||||
table tr th:last-child {
|
||||
border-left: 0;
|
||||
|
||||
@@ -3,44 +3,54 @@
|
||||
display: flex;
|
||||
margin-top: 1.6rem;
|
||||
margin-bottom: 3.2rem;
|
||||
|
||||
article {
|
||||
details {
|
||||
summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
margin-top: 6.4rem;
|
||||
margin-bottom: 3.2rem;
|
||||
|
||||
h1 {
|
||||
font-size: 4.2rem;
|
||||
line-height: 4.6rem;
|
||||
margin: 0;
|
||||
@media only screen and (max-width : 768px) {
|
||||
font-size: 4.0rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 4rem;
|
||||
line-height: 4.4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 4.0rem;
|
||||
margin-top: 4rem;
|
||||
|
||||
.see-also {
|
||||
margin: 3.2rem 0;
|
||||
|
||||
h3 {
|
||||
margin: 3.2rem 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
text-justify: auto;
|
||||
hyphens: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.post {
|
||||
.post-title {
|
||||
margin-bottom: .75em;
|
||||
margin-bottom: 0.75em;
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
i {
|
||||
text-align: center;
|
||||
@@ -48,6 +58,7 @@
|
||||
margin-left: 0;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.date {
|
||||
.posted-on {
|
||||
margin-left: 0;
|
||||
@@ -56,10 +67,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
figcaption p {
|
||||
text-align: center;
|
||||
font-style: italic;
|
||||
@@ -68,11 +81,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.avatar img{
|
||||
.avatar img {
|
||||
width: 20rem;
|
||||
height: auto;
|
||||
border-radius: 50%;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
width: 10rem;
|
||||
}
|
||||
}
|
||||
@@ -82,38 +96,45 @@
|
||||
margin: 3.2rem 0 3.2rem 0;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
font-size: 1.8rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
margin: 1.6rem 0 1.6rem 0;
|
||||
}
|
||||
|
||||
.date {
|
||||
display: inline-block;
|
||||
flex:1;
|
||||
width: 20.0rem;
|
||||
flex: 1;
|
||||
width: 20rem;
|
||||
text-align: right;
|
||||
margin-right: 3.0rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
margin-right: 3rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
display: block;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 1.8rem;
|
||||
flex:2;
|
||||
flex: 2;
|
||||
color: $fg-color;
|
||||
font-family: $font-family;
|
||||
font-weight: 700;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color
|
||||
color: $link-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul:not(.pagination) {
|
||||
li {
|
||||
@media only screen and (min-width : 768.1px) {
|
||||
@media only screen and (min-width: 768.1px) {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
@@ -124,40 +145,50 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.about {
|
||||
text-align: center;
|
||||
|
||||
h1 {
|
||||
margin-top: 2.0rem;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-top: 1.0rem;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 2.4rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
font-size: 2.0rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 3.0rem 0 1.0rem 0;
|
||||
margin: 3rem 0 1rem 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
color: $fg-color;
|
||||
text-transform: uppercase;
|
||||
margin-left: 1.0rem;
|
||||
margin-right: 1.0rem;
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
font-size: 1.6rem;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color;
|
||||
}
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 3.2rem;
|
||||
}
|
||||
@@ -168,19 +199,23 @@
|
||||
|
||||
.error {
|
||||
text-align: center;
|
||||
|
||||
h1 {
|
||||
margin-top: 2.0rem;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 4.6rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 3.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-top: 2.0rem;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 3.2rem;
|
||||
font-size: 3.2rem;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 2.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
@mixin content_dark {
|
||||
|
||||
.content {
|
||||
|
||||
.list {
|
||||
ul {
|
||||
li {
|
||||
.title {
|
||||
color: $fg-color-dark;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
@@ -22,6 +21,7 @@
|
||||
li {
|
||||
a {
|
||||
color: $fg-color-dark;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
@@ -32,15 +32,14 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include content_dark()
|
||||
@include content_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include content_dark()
|
||||
@include content_dark();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ body.rtl {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.tags,
|
||||
.categories {
|
||||
i {
|
||||
@@ -22,9 +23,10 @@ body.rtl {
|
||||
li {
|
||||
.date {
|
||||
text-align: left;
|
||||
margin-left: 3.0rem;
|
||||
margin-left: 3rem;
|
||||
margin-right: 0;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,24 +4,35 @@
|
||||
z-index: 100;
|
||||
position: fixed;
|
||||
font-size: 1.6em;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
width: 3.0rem;
|
||||
height: 3.0rem;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
font-size: 2rem;
|
||||
color: $alt-fg-color;
|
||||
background-color: $alt-bg-color;
|
||||
font-size: 2.0rem;
|
||||
border-radius: 0.5rem;
|
||||
border-radius: 0.2rem;
|
||||
opacity: 50%;
|
||||
transition: all .25s ease-in;
|
||||
&:hover, &:focus {
|
||||
transition: all 0.25s ease-in;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color;
|
||||
opacity: 100%;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
color: $alt-fg-color;
|
||||
opacity: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,9 +3,12 @@
|
||||
a {
|
||||
color: $alt-fg-color-dark;
|
||||
background-color: $alt-bg-color-dark;
|
||||
&:hover, &:focus {
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
color: $alt-fg-color-dark;
|
||||
}
|
||||
}
|
||||
@@ -14,11 +17,11 @@
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include float_dark()
|
||||
@include float_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include float_dark()
|
||||
@include float_dark();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 1.6rem;
|
||||
line-height: 2.0rem;
|
||||
margin-bottom:1.0rem;
|
||||
line-height: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
a {
|
||||
color: $link-color;
|
||||
}
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include footer_dark()
|
||||
@include footer_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include footer_dark()
|
||||
@include footer_dark();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,32 +1,39 @@
|
||||
.navigation {
|
||||
height: 6.0rem;
|
||||
height: 6rem;
|
||||
width: 100%;
|
||||
a, span {
|
||||
|
||||
a,
|
||||
span {
|
||||
display: inline;
|
||||
font-size: 1.7rem;
|
||||
font-family: $font-family;
|
||||
font-weight: 600;
|
||||
line-height: 6.0rem;
|
||||
line-height: 6rem;
|
||||
color: $fg-color;
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color
|
||||
color: $link-color;
|
||||
}
|
||||
}
|
||||
|
||||
.navigation-title {
|
||||
letter-spacing: 0.1rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.navigation-list {
|
||||
float: right;
|
||||
list-style: none;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
position: absolute;
|
||||
top: 6.0rem;
|
||||
top: 6rem;
|
||||
right: 0;
|
||||
z-index: 5;
|
||||
visibility: hidden;
|
||||
@@ -39,37 +46,47 @@
|
||||
border-bottom: solid 2px $alt-bg-color;
|
||||
transition: opacity 0.25s, max-height 0.15s linear;
|
||||
}
|
||||
|
||||
.navigation-item {
|
||||
float: left;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
float: none !important;
|
||||
text-align: center;
|
||||
a, span {
|
||||
line-height: 5.0rem;
|
||||
|
||||
a,
|
||||
span {
|
||||
line-height: 5rem;
|
||||
}
|
||||
}
|
||||
a, span {
|
||||
margin-left: 1.0rem;
|
||||
margin-right: 1.0rem;
|
||||
|
||||
a,
|
||||
span {
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.separator {
|
||||
@media only screen and (max-width : 768px) {
|
||||
@media only screen and (max-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-separator {
|
||||
@media only screen and (max-width : 768px) {
|
||||
@media only screen and (max-width: 768px) {
|
||||
border-top: 2px solid $fg-color;
|
||||
margin: 0 8.0rem;
|
||||
margin: 0 8rem;
|
||||
|
||||
span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#dark-mode-toggle {
|
||||
margin: 1.7rem 0;
|
||||
font-size: 2.4rem;
|
||||
@@ -79,22 +96,27 @@
|
||||
z-index: 100;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
#menu-toggle {
|
||||
display: none;
|
||||
@media only screen and (max-width : 768px) {
|
||||
&:checked + label > i {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
&:checked+label>i {
|
||||
color: $alt-bg-color;
|
||||
}
|
||||
&:checked + label + ul {
|
||||
|
||||
&:checked+label+ul {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
max-height: 100rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-button {
|
||||
display: none;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
display: block;
|
||||
margin: 1.8rem 0;
|
||||
font-size: 2.4rem;
|
||||
@@ -102,14 +124,18 @@
|
||||
}
|
||||
|
||||
i {
|
||||
&:hover, &:focus {
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $alt-fg-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
color: $fg-color;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color;
|
||||
|
||||
@@ -1,59 +1,68 @@
|
||||
@mixin navigation_dark {
|
||||
|
||||
|
||||
.navigation {
|
||||
a, span {
|
||||
|
||||
a,
|
||||
span {
|
||||
color: $fg-color-dark;
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
}
|
||||
}
|
||||
|
||||
.navigation-list {
|
||||
@media only screen and (max-width : 768px) {
|
||||
@media only screen and (max-width: 768px) {
|
||||
background-color: $bg-color-dark;
|
||||
border-top: solid 2px $alt-bg-color-dark;
|
||||
border-bottom: solid 2px $alt-bg-color-dark;
|
||||
}
|
||||
|
||||
.menu-separator {
|
||||
@media only screen and (max-width : 768px) {
|
||||
@media only screen and (max-width: 768px) {
|
||||
border-top: 2px solid $fg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#menu-toggle {
|
||||
@media only screen and (max-width : 768px) {
|
||||
&:checked + label > i {
|
||||
@media only screen and (max-width: 768px) {
|
||||
&:checked+label>i {
|
||||
color: $alt-bg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
color: $fg-color-dark;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-button {
|
||||
i {
|
||||
&:hover, &:focus {
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $alt-fg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include navigation_dark()
|
||||
@include navigation_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include navigation_dark()
|
||||
@include navigation_dark();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
body.rtl {
|
||||
.navigation-list {
|
||||
float: left;
|
||||
@media only screen and (max-width : 768px) {
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.navigation-item {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-button {
|
||||
@media only screen and (max-width : 768px) {
|
||||
@media only screen and (max-width: 768px) {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
111
assets/scss/_notices.scss
Normal file
111
assets/scss/_notices.scss
Normal file
@@ -0,0 +1,111 @@
|
||||
.notice {
|
||||
border-radius: 0.2rem;
|
||||
position: relative;
|
||||
margin: 2rem 0;
|
||||
padding: 0 0.75rem;
|
||||
overflow: auto;
|
||||
|
||||
.notice-title {
|
||||
position: relative;
|
||||
font-weight: 700;
|
||||
margin: 0 -0.75rem;
|
||||
padding: 0.2rem 3.5rem;
|
||||
border-bottom: 1px solid $bg-color;
|
||||
|
||||
i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 1.8rem;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
|
||||
.notice-content {
|
||||
display: block;
|
||||
margin: 2rem 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.notice.note {
|
||||
background-color: $bg-color-notice-note-content;
|
||||
|
||||
.notice-title {
|
||||
background-color: $bg-color-notice-note-title;
|
||||
|
||||
i {
|
||||
color: $fg-color-notice-note-icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.notice.tip {
|
||||
background-color: $bg-color-notice-tip-content;
|
||||
|
||||
.notice-title {
|
||||
background-color: $bg-color-notice-tip-title;
|
||||
|
||||
i {
|
||||
color: $fg-color-notice-tip-icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.notice.example {
|
||||
background-color: $bg-color-notice-example-content;
|
||||
|
||||
.notice-title {
|
||||
background-color: $bg-color-notice-example-title;
|
||||
|
||||
i {
|
||||
color: $fg-color-notice-example-icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.notice.question {
|
||||
background-color: $bg-color-notice-question-content;
|
||||
|
||||
.notice-title {
|
||||
background-color: $bg-color-notice-question-title;
|
||||
|
||||
i {
|
||||
color: $fg-color-notice-question-icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.notice.info {
|
||||
background-color: $bg-color-notice-info-content;
|
||||
|
||||
.notice-title {
|
||||
background-color: $bg-color-notice-info-title;
|
||||
|
||||
i {
|
||||
color: $fg-color-notice-info-icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.notice.warning {
|
||||
background-color: $bg-color-notice-warning-content;
|
||||
|
||||
.notice-title {
|
||||
background-color: $bg-color-notice-warning-title;
|
||||
|
||||
i {
|
||||
color: $fg-color-notice-warning-icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.notice.error {
|
||||
background-color: $bg-color-notice-error-content;
|
||||
|
||||
.notice-title {
|
||||
background-color: $bg-color-notice-error-title;
|
||||
|
||||
i {
|
||||
color: $fg-color-notice-error-icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
17
assets/scss/_notices_dark.scss
Normal file
17
assets/scss/_notices_dark.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
@mixin notices_dark {
|
||||
.notice {
|
||||
.notice-title {
|
||||
border-bottom: 1px solid $bg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include notices_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include notices_dark();
|
||||
}
|
||||
}
|
||||
@@ -1,18 +1,22 @@
|
||||
.pagination {
|
||||
margin-top: 6.0rem;
|
||||
margin-top: 6rem;
|
||||
text-align: center;
|
||||
font-family: $font-family;
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
text-align: center;
|
||||
font-weight: 700;
|
||||
|
||||
span {
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
width: 3.2rem;
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 300;
|
||||
|
||||
span {
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
|
||||
@@ -1,17 +1,53 @@
|
||||
// Fonts
|
||||
$font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
|
||||
$code-font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
|
||||
$font-family: -apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Roboto,
|
||||
Oxygen-Sans,
|
||||
Ubuntu,
|
||||
Cantarell,
|
||||
"Helvetica Neue",
|
||||
Helvetica,
|
||||
sans-serif;
|
||||
$code-font-family: SFMono-Regular,
|
||||
Consolas,
|
||||
Liberation Mono,
|
||||
Menlo,
|
||||
monospace;
|
||||
|
||||
// Colors
|
||||
$bg-color: #FAFAFA !default;
|
||||
$bg-color: #fafafa !default;
|
||||
$fg-color: #212121 !default;
|
||||
$alt-bg-color: #E0E0E0 !default;
|
||||
$alt-bg-color: #e0e0e0 !default;
|
||||
$alt-fg-color: #000 !default;
|
||||
$link-color: #1565c0 !default;
|
||||
|
||||
// Colors dark
|
||||
// Dark colors
|
||||
$bg-color-dark: #212121 !default;
|
||||
$fg-color-dark: #dadada !default;
|
||||
$alt-bg-color-dark: #424242 !default;
|
||||
$alt-fg-color-dark: #dadada !default;
|
||||
$link-color-dark: #42a5f5 !default;
|
||||
|
||||
// Notice colors
|
||||
$fg-color-notice-note-icon: #5e35b1 !default;
|
||||
$bg-color-notice-note-title: #673ab71a !default;
|
||||
$bg-color-notice-note-content: #7e57c21a !default;
|
||||
$fg-color-notice-tip-icon: #00897b !default;
|
||||
$bg-color-notice-tip-title: #0096881a !default;
|
||||
$bg-color-notice-tip-content: #26a69a1a !default;
|
||||
$fg-color-notice-example-icon: #6d4c41 !default;
|
||||
$bg-color-notice-example-title: #7955481a !default;
|
||||
$bg-color-notice-example-content: #8d6e631a !default;
|
||||
$fg-color-notice-question-icon: #7cb342 !default;
|
||||
$bg-color-notice-question-title: #8bc34a1a !default;
|
||||
$bg-color-notice-question-content: #9ccc651a !default;
|
||||
$fg-color-notice-info-icon: #1e88e5 !default;
|
||||
$bg-color-notice-info-title: #2196f31a !default;
|
||||
$bg-color-notice-info-content: #42a5f51a !default;
|
||||
$fg-color-notice-warning-icon: #ffb300 !default;
|
||||
$bg-color-notice-warning-title: #ffc1071a !default;
|
||||
$bg-color-notice-warning-content: #ffca281a !default;
|
||||
$fg-color-notice-error-icon: #e53935 !default;
|
||||
$bg-color-notice-error-title: #f443361a !default;
|
||||
$bg-color-notice-error-content: #ef53501a !default;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
@import "variables";
|
||||
@import "base_dark";
|
||||
@import "content_dark";
|
||||
@import "notices_dark";
|
||||
@import "navigation_dark";
|
||||
@import "footer_dark";
|
||||
@import "float_dark";
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
@import "variables";
|
||||
@import "base";
|
||||
@import "content";
|
||||
@import "notices";
|
||||
@import "navigation";
|
||||
@import "pagination";
|
||||
@import "footer";
|
||||
|
||||
Reference in New Issue
Block a user