Initial Commit
This commit is contained in:
83
themes/hugo-coder/assets/js/coder.js
Normal file
83
themes/hugo-coder/assets/js/coder.js
Normal file
@ -0,0 +1,83 @@
|
||||
const body = document.body;
|
||||
const darkModeToggle = document.getElementById('dark-mode-toggle');
|
||||
const darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
||||
|
||||
// Check if user preference is set, if not check value of body class for light or dark else it means that colorscheme = auto
|
||||
if (localStorage.getItem("colorscheme")) {
|
||||
setTheme(localStorage.getItem("colorscheme"));
|
||||
} else if (body.classList.contains('colorscheme-light') || body.classList.contains('colorscheme-dark')) {
|
||||
setTheme(body.classList.contains("colorscheme-dark") ? "dark" : "light");
|
||||
} else {
|
||||
setTheme(darkModeMediaQuery.matches ? "dark" : "light");
|
||||
}
|
||||
|
||||
if (darkModeToggle) {
|
||||
darkModeToggle.addEventListener('click', () => {
|
||||
let theme = body.classList.contains("colorscheme-dark") ? "light" : "dark";
|
||||
setTheme(theme);
|
||||
rememberTheme(theme);
|
||||
});
|
||||
}
|
||||
|
||||
darkModeMediaQuery.addListener((event) => {
|
||||
setTheme(event.matches ? "dark" : "light");
|
||||
});
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
let node = document.querySelector('.preload-transitions');
|
||||
node.classList.remove('preload-transitions');
|
||||
});
|
||||
|
||||
function setTheme(theme) {
|
||||
body.classList.remove('colorscheme-auto');
|
||||
let inverse = theme === 'dark' ? 'light' : 'dark';
|
||||
body.classList.remove('colorscheme-' + inverse);
|
||||
body.classList.add('colorscheme-' + theme);
|
||||
document.documentElement.style['color-scheme'] = theme;
|
||||
|
||||
function waitForElm(selector) {
|
||||
return new Promise(resolve => {
|
||||
if (document.querySelector(selector)) {
|
||||
return resolve(document.querySelector(selector));
|
||||
}
|
||||
|
||||
const observer = new MutationObserver(mutations => {
|
||||
if (document.querySelector(selector)) {
|
||||
resolve(document.querySelector(selector));
|
||||
observer.disconnect();
|
||||
}
|
||||
});
|
||||
|
||||
observer.observe(document.body, {
|
||||
childList: true,
|
||||
subtree: true
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (theme === 'dark') {
|
||||
const message = {
|
||||
type: 'set-theme',
|
||||
theme: 'github-dark'
|
||||
};
|
||||
waitForElm('.utterances-frame').then((iframe) => {
|
||||
iframe.contentWindow.postMessage(message, 'https://utteranc.es');
|
||||
})
|
||||
|
||||
}
|
||||
else {
|
||||
const message = {
|
||||
type: 'set-theme',
|
||||
theme: 'github-light'
|
||||
};
|
||||
waitForElm('.utterances-frame').then((iframe) => {
|
||||
iframe.contentWindow.postMessage(message, 'https://utteranc.es');
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function rememberTheme(theme) {
|
||||
localStorage.setItem('colorscheme', theme);
|
||||
}
|
266
themes/hugo-coder/assets/scss/_base.scss
Normal file
266
themes/hugo-coder/assets/scss/_base.scss
Normal file
@ -0,0 +1,266 @@
|
||||
*,
|
||||
*:after,
|
||||
*:before {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
html {
|
||||
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;
|
||||
line-height: 1.8em;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 1.6em;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
color: #4E5D94;
|
||||
text-decoration: none;
|
||||
transition: all 0.25s ease-in;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 2rem 0 2rem 0;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: $font-family;
|
||||
font-weight: 600;
|
||||
color: $alt-fg-color;
|
||||
margin: 4rem 0 2.5rem 0;
|
||||
|
||||
&:hover .heading-link {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.heading-link {
|
||||
color: #4E5D94;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
font-size: 80%;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.title-link {
|
||||
color: inherit;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.2rem;
|
||||
line-height: 3.6rem;
|
||||
|
||||
@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) {
|
||||
font-size: 2.6rem;
|
||||
line-height: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 2.4rem;
|
||||
line-height: 2.8rem;
|
||||
|
||||
@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: 2rem;
|
||||
line-height: 2.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 2rem;
|
||||
line-height: 2.4rem;
|
||||
|
||||
@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) {
|
||||
font-size: 1.6rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.highlight>div,
|
||||
.highlight>pre {
|
||||
margin: 2rem 0 2rem;
|
||||
padding: 1rem;
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
font-family: $code-font-family;
|
||||
font-size: 1.6rem;
|
||||
font-weight: 400;
|
||||
line-height: 2.6rem;
|
||||
overflow-x: auto;
|
||||
margin: 0;
|
||||
|
||||
code {
|
||||
display: inline-block;
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: $code-font-family;
|
||||
font-size: 1.6rem;
|
||||
font-weight: 400;
|
||||
background-color: $alt-bg-color;
|
||||
color: $fg-color;
|
||||
border-radius: 0.6rem;
|
||||
padding: 0.3rem 0.6rem;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 2px solid $alt-bg-color;
|
||||
padding-left: 2rem;
|
||||
line-height: 2.2rem;
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 1.6rem;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: 1rem auto;
|
||||
max-width: 90rem;
|
||||
width: 100%;
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
|
||||
.fab {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.fas {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.float-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.float-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.fab {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.fas {
|
||||
font-weight: 900;
|
||||
}
|
101
themes/hugo-coder/assets/scss/_base_dark.scss
Normal file
101
themes/hugo-coder/assets/scss/_base_dark.scss
Normal file
@ -0,0 +1,101 @@
|
||||
@mixin base_dark {
|
||||
color: $fg-color-dark;
|
||||
background-color: $bg-color-dark;
|
||||
|
||||
a {
|
||||
color: $link-color-dark;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: $alt-fg-color-dark;
|
||||
|
||||
&:hover .heading-link {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.heading-link {
|
||||
color: $link-color-dark;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
font-size: 80%;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.title-link {
|
||||
color: inherit;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: $alt-bg-color-dark;
|
||||
color: $fg-color-dark;
|
||||
}
|
||||
|
||||
// fix color schemes which do not explicitly set fg-color
|
||||
.highlight {
|
||||
pre {
|
||||
background-color: $alt-bg-color-dark;
|
||||
color: $fg-color-dark;
|
||||
}
|
||||
}
|
||||
|
||||
:not(.highlight) > pre {
|
||||
code {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 2px solid $alt-bg-color-dark;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 1.6rem;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table td,
|
||||
table th {
|
||||
border: 2px solid $alt-fg-color-dark;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include base_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include base_dark();
|
||||
}
|
||||
}
|
24
themes/hugo-coder/assets/scss/_base_rtl.scss
Normal file
24
themes/hugo-coder/assets/scss/_base_rtl.scss
Normal file
@ -0,0 +1,24 @@
|
||||
body.rtl {
|
||||
direction: rtl;
|
||||
|
||||
pre {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: none;
|
||||
border-right: 2px solid $alt-bg-color;
|
||||
padding-left: 0;
|
||||
padding-right: 1.6rem;
|
||||
}
|
||||
|
||||
table tr td:first-child,
|
||||
table tr th:first-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
table tr td:last-child,
|
||||
table tr th:last-child {
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
236
themes/hugo-coder/assets/scss/_content.scss
Normal file
236
themes/hugo-coder/assets/scss/_content.scss
Normal file
@ -0,0 +1,236 @@
|
||||
.content {
|
||||
flex: 1;
|
||||
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: 4rem;
|
||||
line-height: 4.4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
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: 0.75em;
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
i {
|
||||
text-align: center;
|
||||
width: 1.6rem;
|
||||
margin-left: 0;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.date {
|
||||
.posted-on {
|
||||
margin-left: 0;
|
||||
margin-right: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.tags {
|
||||
.tag {
|
||||
display: inline-block;
|
||||
padding: 0.3rem 0.6rem;
|
||||
background-color: $alt-bg-color;
|
||||
border-radius: 0.6rem;
|
||||
line-height: 1.4em;
|
||||
|
||||
a {
|
||||
color: $fg-color;
|
||||
}
|
||||
a:active {
|
||||
color: $fg-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
figcaption p {
|
||||
text-align: center;
|
||||
font-style: italic;
|
||||
font-size: 1.6rem;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.avatar img {
|
||||
width: 20rem;
|
||||
height: auto;
|
||||
border-radius: 50%;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
width: 10rem;
|
||||
}
|
||||
}
|
||||
|
||||
.list {
|
||||
ul {
|
||||
margin: 3.2rem 0 3.2rem 0;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
font-size: 1.8rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
margin: 1.6rem 0 1.6rem 0;
|
||||
}
|
||||
|
||||
.date {
|
||||
display: inline-block;
|
||||
flex: 1;
|
||||
width: 20rem;
|
||||
text-align: right;
|
||||
margin-right: 3rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
display: block;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 1.8rem;
|
||||
flex: 2;
|
||||
color: $fg-color;
|
||||
font-family: $font-family;
|
||||
font-weight: 700;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul:not(.pagination) {
|
||||
li {
|
||||
@media only screen and (min-width: 768.1px) {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.centered {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.about {
|
||||
text-align: center;
|
||||
|
||||
h1 {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 2.4rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 3rem 0 1rem 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
color: $fg-color;
|
||||
text-transform: uppercase;
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
font-size: 1.6rem;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.error {
|
||||
text-align: center;
|
||||
|
||||
h1 {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 4.6rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 3.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 3.2rem;
|
||||
font-size: 3.2rem;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
font-size: 2.8rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
59
themes/hugo-coder/assets/scss/_content_dark.scss
Normal file
59
themes/hugo-coder/assets/scss/_content_dark.scss
Normal file
@ -0,0 +1,59 @@
|
||||
@mixin content_dark {
|
||||
.content {
|
||||
.post {
|
||||
.tags {
|
||||
.tag {
|
||||
background-color: $alt-bg-color-dark;
|
||||
|
||||
a {
|
||||
color: $fg-color-dark;
|
||||
}
|
||||
a:active {
|
||||
color: $fg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.list {
|
||||
ul {
|
||||
li {
|
||||
.title {
|
||||
color: $fg-color-dark;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.centered {
|
||||
.about {
|
||||
ul {
|
||||
li {
|
||||
a {
|
||||
color: $fg-color-dark;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include content_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include content_dark();
|
||||
}
|
||||
}
|
36
themes/hugo-coder/assets/scss/_content_rtl.scss
Normal file
36
themes/hugo-coder/assets/scss/_content_rtl.scss
Normal file
@ -0,0 +1,36 @@
|
||||
body.rtl {
|
||||
.content {
|
||||
.post {
|
||||
.post-meta {
|
||||
.posted-on {
|
||||
margin-left: 1.5rem;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.tags,
|
||||
.categories {
|
||||
i {
|
||||
margin-left: 0.5rem;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list {
|
||||
ul {
|
||||
li {
|
||||
.date {
|
||||
text-align: left;
|
||||
margin-left: 3rem;
|
||||
margin-right: 0;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
38
themes/hugo-coder/assets/scss/_float.scss
Normal file
38
themes/hugo-coder/assets/scss/_float.scss
Normal file
@ -0,0 +1,38 @@
|
||||
.float-container {
|
||||
bottom: 2rem;
|
||||
right: 2rem;
|
||||
z-index: 100;
|
||||
position: fixed;
|
||||
font-size: 1.6em;
|
||||
|
||||
a {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
font-size: 2rem;
|
||||
color: $alt-fg-color;
|
||||
background-color: $alt-bg-color;
|
||||
border-radius: 0.2rem;
|
||||
opacity: 0.5;
|
||||
transition: all 0.25s ease-in;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color;
|
||||
opacity: 1;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
color: $alt-fg-color;
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
}
|
27
themes/hugo-coder/assets/scss/_float_dark.scss
Normal file
27
themes/hugo-coder/assets/scss/_float_dark.scss
Normal file
@ -0,0 +1,27 @@
|
||||
@mixin float_dark {
|
||||
.float-container {
|
||||
a {
|
||||
color: $alt-fg-color-dark;
|
||||
background-color: $alt-bg-color-dark;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
color: $alt-fg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include float_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include float_dark();
|
||||
}
|
||||
}
|
11
themes/hugo-coder/assets/scss/_footer.scss
Normal file
11
themes/hugo-coder/assets/scss/_footer.scss
Normal file
@ -0,0 +1,11 @@
|
||||
.footer {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 1.6rem;
|
||||
line-height: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
a {
|
||||
color: $link-color;
|
||||
}
|
||||
}
|
17
themes/hugo-coder/assets/scss/_footer_dark.scss
Normal file
17
themes/hugo-coder/assets/scss/_footer_dark.scss
Normal file
@ -0,0 +1,17 @@
|
||||
@mixin footer_dark {
|
||||
.footer {
|
||||
a {
|
||||
color: $link-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include footer_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include footer_dark();
|
||||
}
|
||||
}
|
143
themes/hugo-coder/assets/scss/_navigation.scss
Normal file
143
themes/hugo-coder/assets/scss/_navigation.scss
Normal file
@ -0,0 +1,143 @@
|
||||
.navigation {
|
||||
height: 6rem;
|
||||
width: 100%;
|
||||
|
||||
a,
|
||||
span {
|
||||
display: inline;
|
||||
font-size: 1.7rem;
|
||||
font-family: $font-family;
|
||||
font-weight: 600;
|
||||
color: $fg-color;
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
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) {
|
||||
position: relative;
|
||||
top: 2rem;
|
||||
right: 0;
|
||||
z-index: 5;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
padding: 0;
|
||||
max-height: 0;
|
||||
width: 100%;
|
||||
background-color: $bg-color;
|
||||
border-top: solid 2px $alt-bg-color;
|
||||
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) {
|
||||
float: none !important;
|
||||
text-align: center;
|
||||
|
||||
a,
|
||||
span {
|
||||
line-height: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
a,
|
||||
span {
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.separator {
|
||||
@media only screen and (max-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-separator {
|
||||
@media only screen and (max-width: 768px) {
|
||||
border-top: 2px solid $fg-color;
|
||||
margin: 0 8rem;
|
||||
|
||||
span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#dark-mode-toggle {
|
||||
margin: 1.7rem 0;
|
||||
font-size: 2.4rem;
|
||||
line-height: inherit;
|
||||
bottom: 2rem;
|
||||
left: 2rem;
|
||||
z-index: 100;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
#menu-toggle {
|
||||
display: none;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
&:checked+label>i {
|
||||
color: $alt-bg-color;
|
||||
}
|
||||
|
||||
&:checked+label+ul {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
max-height: 100rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-button {
|
||||
display: none;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
position: relative;
|
||||
display: block;
|
||||
font-size: 2.4rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
i {
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $alt-fg-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
color: $fg-color;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color;
|
||||
}
|
||||
}
|
||||
}
|
68
themes/hugo-coder/assets/scss/_navigation_dark.scss
Normal file
68
themes/hugo-coder/assets/scss/_navigation_dark.scss
Normal file
@ -0,0 +1,68 @@
|
||||
@mixin navigation_dark {
|
||||
.navigation {
|
||||
|
||||
a,
|
||||
span {
|
||||
color: $fg-color-dark;
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
}
|
||||
}
|
||||
|
||||
.navigation-list {
|
||||
@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) {
|
||||
border-top: 2px solid $fg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#menu-toggle {
|
||||
@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 {
|
||||
color: $alt-fg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include navigation_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include navigation_dark();
|
||||
}
|
||||
}
|
20
themes/hugo-coder/assets/scss/_navigation_rtl.scss
Normal file
20
themes/hugo-coder/assets/scss/_navigation_rtl.scss
Normal file
@ -0,0 +1,20 @@
|
||||
body.rtl {
|
||||
.navigation-list {
|
||||
float: left;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.navigation-item {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-button {
|
||||
@media only screen and (max-width: 768px) {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
}
|
111
themes/hugo-coder/assets/scss/_notices.scss
Normal file
111
themes/hugo-coder/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
themes/hugo-coder/assets/scss/_notices_dark.scss
Normal file
17
themes/hugo-coder/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();
|
||||
}
|
||||
}
|
27
themes/hugo-coder/assets/scss/_pagination.scss
Normal file
27
themes/hugo-coder/assets/scss/_pagination.scss
Normal file
@ -0,0 +1,27 @@
|
||||
.pagination {
|
||||
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;
|
||||
width: 3.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
77
themes/hugo-coder/assets/scss/_tabs.scss
Normal file
77
themes/hugo-coder/assets/scss/_tabs.scss
Normal file
@ -0,0 +1,77 @@
|
||||
.tabs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin: 2rem 0 2rem 0;
|
||||
position: relative;
|
||||
|
||||
&.tabs-left {
|
||||
justify-content: flex-start;
|
||||
|
||||
label.tab-label {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
border-radius: 0px 4px 4px 4px;
|
||||
}
|
||||
}
|
||||
|
||||
&.tabs-right {
|
||||
justify-content: flex-end;
|
||||
|
||||
label.tab-label {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
border-radius: 4px 0px 4px 4px;
|
||||
}
|
||||
}
|
||||
|
||||
input.tab-input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
label.tab-label {
|
||||
background-color: $alt-bg-color;
|
||||
border-color: $darker-alt-bg-color;
|
||||
border-radius: 4px 4px 0px 0px;
|
||||
|
||||
border-style: solid;
|
||||
border-bottom-style: hidden;
|
||||
|
||||
border-width: 1px;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
order: 1;
|
||||
padding: 0.3rem 0.6rem;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
input.tab-input:checked + label.tab-label {
|
||||
background-color: $bg-color;
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
background-color: $bg-color;
|
||||
border-color: $darker-alt-bg-color;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
display: none;
|
||||
order: 2;
|
||||
padding: 1rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.tabs-code {
|
||||
.tab-content {
|
||||
padding: 0.5rem;
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
27
themes/hugo-coder/assets/scss/_tabs_dark.scss
Normal file
27
themes/hugo-coder/assets/scss/_tabs_dark.scss
Normal file
@ -0,0 +1,27 @@
|
||||
@mixin tabs_dark {
|
||||
.tabs {
|
||||
label.tab-label {
|
||||
background-color: $alt-bg-color-dark;
|
||||
border-color: $lighter-alt-bg-color-dark;
|
||||
}
|
||||
|
||||
input.tab-input:checked + label.tab-label {
|
||||
background-color: $bg-color-dark;
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
background-color: $bg-color-dark;
|
||||
border-color: $lighter-alt-bg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include tabs_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include tabs_dark();
|
||||
}
|
||||
}
|
20
themes/hugo-coder/assets/scss/_taxonomies.scss
Normal file
20
themes/hugo-coder/assets/scss/_taxonomies.scss
Normal file
@ -0,0 +1,20 @@
|
||||
.taxonomy {
|
||||
li {
|
||||
display: inline-block;
|
||||
margin: 0.9rem;
|
||||
}
|
||||
|
||||
.taxonomy-element {
|
||||
display: block;
|
||||
padding: 0.3rem 0.9rem;
|
||||
background-color: $alt-bg-color;
|
||||
border-radius: 0.6rem;
|
||||
|
||||
a {
|
||||
color: $fg-color;
|
||||
}
|
||||
a:active {
|
||||
color: $fg-color;
|
||||
}
|
||||
}
|
||||
}
|
22
themes/hugo-coder/assets/scss/_taxonomies_dark.scss
Normal file
22
themes/hugo-coder/assets/scss/_taxonomies_dark.scss
Normal file
@ -0,0 +1,22 @@
|
||||
@mixin taxonomy_dark {
|
||||
.taxonomy-element {
|
||||
background-color: $alt-bg-color-dark;
|
||||
|
||||
a {
|
||||
color: $fg-color-dark;
|
||||
}
|
||||
a:active {
|
||||
color: $fg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include taxonomy_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include taxonomy_dark();
|
||||
}
|
||||
}
|
60
themes/hugo-coder/assets/scss/_variables.scss
Normal file
60
themes/hugo-coder/assets/scss/_variables.scss
Normal file
@ -0,0 +1,60 @@
|
||||
// Fonts
|
||||
$font-family: -apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Roboto,
|
||||
Oxygen-Sans,
|
||||
Ubuntu,
|
||||
Cantarell,
|
||||
"Helvetica Neue",
|
||||
Helvetica,
|
||||
"PingFang SC",
|
||||
STXihei,"华文细黑",
|
||||
"Microsoft YaHei","微软雅黑",
|
||||
SimSun,"宋体",
|
||||
Heiti,"黑体",
|
||||
sans-serif;
|
||||
$code-font-family: SFMono-Regular,
|
||||
Consolas,
|
||||
Liberation Mono,
|
||||
Menlo,
|
||||
monospace;
|
||||
|
||||
// Colors
|
||||
$bg-color: #fafafa !default;
|
||||
$fg-color: #212121 !default;
|
||||
$alt-bg-color: #e0e0e0 !default;
|
||||
$alt-fg-color: #000 !default;
|
||||
$darker-alt-bg-color: #ccc !default;
|
||||
$link-color: #1565c0 !default;
|
||||
|
||||
// Dark colors
|
||||
$bg-color-dark: #212121 !default;
|
||||
$fg-color-dark: #dadada !default;
|
||||
$alt-bg-color-dark: #424242 !default;
|
||||
$alt-fg-color-dark: #dadada !default;
|
||||
$lighter-alt-bg-color-dark: #4f4f4f !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;
|
435
themes/hugo-coder/assets/scss/coder-dark.scss
Normal file
435
themes/hugo-coder/assets/scss/coder-dark.scss
Normal file
@ -0,0 +1,435 @@
|
||||
body.colorscheme-dark {
|
||||
color: #fff;
|
||||
background-image: url(/images/bgs/tehb.webp);
|
||||
background-color: #121212;
|
||||
min-height: 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
background-position: 50%;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
body.colorscheme-dark a {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
body.colorscheme-dark a:hover, a:focus, a:active{
|
||||
color: #7289DA;
|
||||
}
|
||||
body.colorscheme-dark h1,body.colorscheme-dark h2,body.colorscheme-dark h3,body.colorscheme-dark h4,body.colorscheme-dark h5,body.colorscheme-dark h6 {
|
||||
color: #fff;
|
||||
}
|
||||
li.navigation-item a{
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
section.title-container a{
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
.title-container {
|
||||
margin: 1rem auto;
|
||||
max-width: 90rem;
|
||||
width: 100%;
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem; }
|
||||
body.colorscheme-dark h1:hover .heading-link,body.colorscheme-dark h2:hover .heading-link,body.colorscheme-dark h3:hover .heading-link,body.colorscheme-dark h4:hover .heading-link,body.colorscheme-dark h5:hover .heading-link,body.colorscheme-dark h6:hover .heading-link {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
body.colorscheme-dark h1 .heading-link,body.colorscheme-dark h2 .heading-link,body.colorscheme-dark h3 .heading-link,body.colorscheme-dark h4 .heading-link,body.colorscheme-dark h5 .heading-link,body.colorscheme-dark h6 .heading-link {
|
||||
color: #7289da;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
font-size: 80%;
|
||||
visibility: hidden;
|
||||
}
|
||||
body.colorscheme-dark h1 .title-link,body.colorscheme-dark h2 .title-link,body.colorscheme-dark h3 .title-link,body.colorscheme-dark h4 .title-link,body.colorscheme-dark h5 .title-link,body.colorscheme-dark h6 .title-link {
|
||||
color: inherit;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
body.colorscheme-dark code {
|
||||
background-color: #424242;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .highlight pre {
|
||||
background-color: #424242;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark :not(.highlight)>pre code {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
body.colorscheme-dark blockquote {
|
||||
border-left: 2px solid #424242;
|
||||
}
|
||||
|
||||
body.colorscheme-dark th,body.colorscheme-dark td {
|
||||
padding: 1.6rem;
|
||||
}
|
||||
|
||||
body.colorscheme-dark table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
body.colorscheme-dark table td,body.colorscheme-dark table th {
|
||||
border: 2px solid #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark table tr:first-child th {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
body.colorscheme-dark table tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
body.colorscheme-dark table tr td:first-child,body.colorscheme-dark table tr th:first-child {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
body.colorscheme-dark table tr td:last-child,body.colorscheme-dark table tr th:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
body.colorscheme-auto {
|
||||
color: #fff;
|
||||
background-color: #212121;
|
||||
}
|
||||
|
||||
body.colorscheme-auto a {
|
||||
color: #7289da;
|
||||
}
|
||||
|
||||
body.colorscheme-auto h1,body.colorscheme-auto h2,body.colorscheme-auto h3,body.colorscheme-auto h4,body.colorscheme-auto h5,body.colorscheme-auto h6 {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto h1:hover .heading-link,body.colorscheme-auto h2:hover .heading-link,body.colorscheme-auto h3:hover .heading-link,body.colorscheme-auto h4:hover .heading-link,body.colorscheme-auto h5:hover .heading-link,body.colorscheme-auto h6:hover .heading-link {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
body.colorscheme-auto h1 .heading-link,body.colorscheme-auto h2 .heading-link,body.colorscheme-auto h3 .heading-link,body.colorscheme-auto h4 .heading-link,body.colorscheme-auto h5 .heading-link,body.colorscheme-auto h6 .heading-link {
|
||||
color: #7289da;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
font-size: 80%;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
body.colorscheme-auto h1 .title-link,body.colorscheme-auto h2 .title-link,body.colorscheme-auto h3 .title-link,body.colorscheme-auto h4 .title-link,body.colorscheme-auto h5 .title-link,body.colorscheme-auto h6 .title-link {
|
||||
color: inherit;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
body.colorscheme-auto code {
|
||||
background-color: #424242;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .highlight pre {
|
||||
background-color: #424242;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto :not(.highlight)>pre code {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
body.colorscheme-auto blockquote {
|
||||
border-left: 2px solid #424242;
|
||||
}
|
||||
|
||||
body.colorscheme-auto th,body.colorscheme-auto td {
|
||||
padding: 1.6rem;
|
||||
}
|
||||
|
||||
body.colorscheme-auto table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
body.colorscheme-auto table td,body.colorscheme-auto table th {
|
||||
border: 2px solid #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto table tr:first-child th {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
body.colorscheme-auto table tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
body.colorscheme-auto table tr td:first-child,body.colorscheme-auto table tr th:first-child {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
body.colorscheme-auto table tr td:last-child,body.colorscheme-auto table tr th:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark .content .post .tags .tag {
|
||||
background-color: #424242;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .content .post .tags .tag a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .content .post .tags .tag a:active {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .content .list ul li .title {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .content .list ul li .title:hover,body.colorscheme-dark .content .list ul li .title:focus {
|
||||
color: #7289da;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .content .centered .about ul li a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .content .centered .about ul li a:hover,body.colorscheme-dark .content .centered .about ul li a:focus {
|
||||
color: #7289da;
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
body.colorscheme-auto .content .post .tags .tag {
|
||||
background-color: #424242;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .content .post .tags .tag a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .content .post .tags .tag a:active {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .content .list ul li .title {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .content .list ul li .title:hover,body.colorscheme-auto .content .list ul li .title:focus {
|
||||
color: #4e5d94;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .content .centered .about ul li a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .content .centered .about ul li a:hover,body.colorscheme-auto .content .centered .about ul li a:focus {
|
||||
color: #4e5d94;
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark .notice .notice-title {
|
||||
border-bottom: 1px solid #212121;
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
body.colorscheme-auto .notice .notice-title {
|
||||
border-bottom: 1px solid #212121;
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark .navigation a,body.colorscheme-dark .navigation span {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .navigation a:hover,body.colorscheme-dark .navigation a:focus {
|
||||
color: #7289da;
|
||||
}
|
||||
|
||||
@media only screen and (max-width:768px) {
|
||||
body.colorscheme-dark .navigation .navigation-list {
|
||||
background-color: #212121;
|
||||
border-top: solid 2px #424242;
|
||||
border-bottom: solid 2px #424242;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width:768px) {
|
||||
body.colorscheme-dark .navigation .navigation-list .menu-separator {
|
||||
border-top: 2px solid #fff;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width:768px) {
|
||||
body.colorscheme-dark .navigation #menu-toggle:checked+label>i {
|
||||
color: #424242;
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark .navigation i {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .navigation i:hover,body.colorscheme-dark .navigation i:focus {
|
||||
color: #7289da;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .navigation .menu-button i:hover,body.colorscheme-dark .navigation .menu-button i:focus {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
body.colorscheme-auto .navigation a,body.colorscheme-auto .navigation span {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .navigation a:hover,body.colorscheme-auto .navigation a:focus {
|
||||
color: #7289da;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (prefers-color-scheme:dark) and (max-width:768px) {
|
||||
body.colorscheme-auto .navigation .navigation-list {
|
||||
background-color: #212121;
|
||||
border-top: solid 2px #424242;
|
||||
border-bottom: solid 2px #424242;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (prefers-color-scheme:dark) and (max-width:768px) {
|
||||
body.colorscheme-auto .navigation .navigation-list .menu-separator {
|
||||
border-top: 2px solid #fff;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (prefers-color-scheme:dark) and (max-width:768px) {
|
||||
body.colorscheme-auto .navigation #menu-toggle:checked+label>i {
|
||||
color: #424242;
|
||||
}
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
body.colorscheme-auto .navigation i {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .navigation i:hover,body.colorscheme-auto .navigation i:focus {
|
||||
color: #7289da;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .navigation .menu-button i:hover,body.colorscheme-auto .navigation .menu-button i:focus {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark .tabs label.tab-label {
|
||||
background-color: #424242;
|
||||
border-color: #4f4f4f;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .tabs input.tab-input:checked+label.tab-label {
|
||||
background-color: #212121;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .tabs .tab-content {
|
||||
background-color: #212121;
|
||||
border-color: #4f4f4f;
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
body.colorscheme-auto .tabs label.tab-label {
|
||||
background-color: #424242;
|
||||
border-color: #4f4f4f;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .tabs input.tab-input:checked+label.tab-label {
|
||||
background-color: #212121;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .tabs .tab-content {
|
||||
background-color: #212121;
|
||||
border-color: #4f4f4f;
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark .taxonomy-element {
|
||||
background-color: #424242;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .taxonomy-element a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .taxonomy-element a:active {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
body.colorscheme-auto .taxonomy-element {
|
||||
background-color: #424242;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .taxonomy-element a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .taxonomy-element a:active {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark .footer a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
body.colorscheme-dark .footer a:hover, a:focus, a:active {
|
||||
color: #7289da;
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
body.colorscheme-auto .footer a {
|
||||
color: #7289da;
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-adark .float-container a {
|
||||
color: #fff;
|
||||
background-color: #424242;
|
||||
}
|
||||
|
||||
body.colorscheme-dark .float-container a:hover,body.colorscheme-dark .float-container a:focus {
|
||||
color: #7289da;
|
||||
}
|
||||
|
||||
@media only screen and (max-width:768px) {
|
||||
body.colorscheme-dark .float-container a:hover,body.colorscheme-dark .float-container a:focus {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
body.colorscheme-auto .float-container a {
|
||||
color: #fff;
|
||||
background-color: #424242;
|
||||
}
|
||||
|
||||
body.colorscheme-auto .float-container a:hover,body.colorscheme-auto .float-container a:focus {
|
||||
color: #7289da;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (prefers-color-scheme:dark) and (max-width:768px) {
|
||||
body.colorscheme-auto .float-container a:hover,body.colorscheme-auto .float-container a:focus {
|
||||
color: #4e5d94;
|
||||
}
|
||||
}
|
4
themes/hugo-coder/assets/scss/coder-rtl.scss
Normal file
4
themes/hugo-coder/assets/scss/coder-rtl.scss
Normal file
@ -0,0 +1,4 @@
|
||||
@import "_variables";
|
||||
@import "_base_rtl";
|
||||
@import "_content_rtl";
|
||||
@import "_navigation_rtl";
|
11
themes/hugo-coder/assets/scss/coder.scss
Normal file
11
themes/hugo-coder/assets/scss/coder.scss
Normal file
@ -0,0 +1,11 @@
|
||||
@import "css/normalize";
|
||||
@import "variables";
|
||||
@import "base";
|
||||
@import "content";
|
||||
@import "notices";
|
||||
@import "navigation";
|
||||
@import "pagination";
|
||||
@import "tabs";
|
||||
@import "taxonomies";
|
||||
@import "footer";
|
||||
@import "float";
|
350
themes/hugo-coder/assets/scss/css/normalize.css
vendored
Normal file
350
themes/hugo-coder/assets/scss/css/normalize.css
vendored
Normal file
@ -0,0 +1,350 @@
|
||||
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
||||
|
||||
/* Document
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Correct the line height in all browsers.
|
||||
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
*/
|
||||
|
||||
html {
|
||||
line-height: 1.15; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/* Sections
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the margin in all browsers.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the `main` element consistently in IE.
|
||||
*/
|
||||
|
||||
main {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the font size and margin on `h1` elements within `section` and
|
||||
* `article` contexts in Chrome, Firefox, and Safari.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in Firefox.
|
||||
* 2. Show the overflow in Edge and IE.
|
||||
*/
|
||||
|
||||
hr {
|
||||
box-sizing: content-box; /* 1 */
|
||||
height: 0; /* 1 */
|
||||
overflow: visible; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background on active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove the bottom border in Chrome 57-
|
||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: none; /* 1 */
|
||||
text-decoration: underline; /* 2 */
|
||||
text-decoration: underline dotted; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||
* all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the border on images inside links in IE 10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Change the font styles in all browsers.
|
||||
* 2. Remove the margin in Firefox and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 1 */
|
||||
line-height: 1.15; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the overflow in IE.
|
||||
* 1. Show the overflow in Edge.
|
||||
*/
|
||||
|
||||
button,
|
||||
input { /* 1 */
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||
* 1. Remove the inheritance of text transform in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select { /* 1 */
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the inability to style clickable types in iOS and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
[type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner border and padding in Firefox.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore the focus styles unset by the previous rule.
|
||||
*/
|
||||
|
||||
button:-moz-focusring,
|
||||
[type="button"]:-moz-focusring,
|
||||
[type="reset"]:-moz-focusring,
|
||||
[type="submit"]:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the padding in Firefox.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
padding: 0.35em 0.75em 0.625em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the text wrapping in Edge and IE.
|
||||
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||
* 3. Remove the padding so developers are not caught out when they zero out
|
||||
* `fieldset` elements in all browsers.
|
||||
*/
|
||||
|
||||
legend {
|
||||
box-sizing: border-box; /* 1 */
|
||||
color: inherit; /* 2 */
|
||||
display: table; /* 1 */
|
||||
max-width: 100%; /* 1 */
|
||||
padding: 0; /* 3 */
|
||||
white-space: normal; /* 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the default vertical scrollbar in IE 10+.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in IE 10.
|
||||
* 2. Remove the padding in IE 10.
|
||||
*/
|
||||
|
||||
[type="checkbox"],
|
||||
[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||
*/
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the odd appearance in Chrome and Safari.
|
||||
* 2. Correct the outline style in Safari.
|
||||
*/
|
||||
|
||||
[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
outline-offset: -2px; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||
* 2. Change font properties to `inherit` in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/* Interactive
|
||||
========================================================================== */
|
||||
|
||||
/*
|
||||
* Add the correct display in Edge, IE 10+, and Firefox.
|
||||
*/
|
||||
|
||||
details {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the correct display in all browsers.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/* Misc
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10+.
|
||||
*/
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10.
|
||||
*/
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
Reference in New Issue
Block a user