setup
This commit is contained in:
108
themes/hugo-theme-monochrome/assets/scss/base.scss
Normal file
108
themes/hugo-theme-monochrome/assets/scss/base.scss
Normal file
@@ -0,0 +1,108 @@
|
||||
html, button, input, select, textarea,
|
||||
.pure-g [class *= "pure-u"] {
|
||||
font-family: system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji;
|
||||
}
|
||||
|
||||
code, kbd, pre {
|
||||
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,liberation mono,courier new,monospace;
|
||||
}
|
||||
|
||||
main {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
@include font-bold;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@include text-3xl;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@include text-2xl;
|
||||
}
|
||||
|
||||
h3 {
|
||||
@include text-xl;
|
||||
}
|
||||
|
||||
h4 {
|
||||
@include text-lg;
|
||||
}
|
||||
|
||||
h5 {
|
||||
@include text-base;
|
||||
}
|
||||
|
||||
h6 {
|
||||
@include text-sm;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
input {
|
||||
background-color: var(--color-background);
|
||||
color: var(--color-text);
|
||||
border: none;
|
||||
}
|
||||
|
||||
mark {
|
||||
background-color: var(--color-background-mark);
|
||||
}
|
||||
|
||||
details > summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
details[open] > summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.content-margin {
|
||||
@include my-8;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: $sm_min_width) {
|
||||
main {
|
||||
width: $sm_main_width;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $md_min_width) {
|
||||
main {
|
||||
width: $md_main_width;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $lg_min_width) {
|
||||
main {
|
||||
width: $lg_main_width;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $xl_min_width) {
|
||||
main {
|
||||
width: $xl_main_width;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $xxl_min_width) {
|
||||
main {
|
||||
width: $xxl_main_width;
|
||||
}
|
||||
}
|
||||
69
themes/hugo-theme-monochrome/assets/scss/color.scss
Normal file
69
themes/hugo-theme-monochrome/assets/scss/color.scss
Normal file
@@ -0,0 +1,69 @@
|
||||
$gray-0: #fff;
|
||||
$gray-50: #f7f7f7;
|
||||
$gray-100: #f5f5f5;
|
||||
$gray-150: #ededed;
|
||||
$gray-200: #e5e5e5;
|
||||
$gray-250: #dddddd;
|
||||
$gray-300: #d4d4d4;
|
||||
$gray-350: #bcbcbc;
|
||||
$gray-400: #a3a3a3;
|
||||
$gray-450: #8b8b8b;
|
||||
$gray-500: #737373;
|
||||
$gray-550: #636363;
|
||||
$gray-600: #525252;
|
||||
$gray-650: #494949;
|
||||
$gray-700: #404040;
|
||||
$gray-750: #333333;
|
||||
$gray-800: #262626;
|
||||
$gray-850: #1f1f1f;
|
||||
$gray-900: #171717;
|
||||
$gray-1000: #000;
|
||||
|
||||
html[data-theme="light"] {
|
||||
--color-text: #{$gray-900};
|
||||
--color-text-secondary: #{$gray-500};
|
||||
--color-text-footer: #{$gray-500};
|
||||
--color-border: #{$gray-300};
|
||||
--color-border-collapsible-menu: #{$gray-200};
|
||||
--color-background: #{$gray-0};
|
||||
--color-background-hover: #{$gray-50};
|
||||
--color-background-overlay: #{$gray-150};
|
||||
--color-background-inline-code: #{$gray-100};
|
||||
--color-background-card: #{$gray-0};
|
||||
--color-background-mark: #fff1a7;
|
||||
--color-link: #2563eb;
|
||||
--color-navbar-item-inactive: #{$gray-400};
|
||||
--color-navbar-item-active: #{$gray-900};
|
||||
--color-navbar-item-in-section: #{$gray-600};
|
||||
}
|
||||
|
||||
html[data-theme="dark"] {
|
||||
--color-text: #{$gray-150};
|
||||
--color-text-secondary: #{$gray-450};
|
||||
--color-text-footer: #{$gray-400};
|
||||
--color-border: #{$gray-500};
|
||||
--color-border-collapsible-menu: #{$gray-550};
|
||||
--color-background: #{$gray-750};
|
||||
--color-background-hover: #{$gray-600};
|
||||
--color-background-overlay: #{$gray-700};
|
||||
--color-background-inline-code: #{$gray-600};
|
||||
--color-background-card: #{$gray-700};
|
||||
--color-background-mark: #fff1a7;
|
||||
--color-link: #93c5fd;
|
||||
--color-navbar-item-inactive: #{$gray-400};
|
||||
--color-navbar-item-active: #{$gray-100};
|
||||
--color-navbar-item-in-section: #{$gray-250};
|
||||
}
|
||||
|
||||
// Default color settings
|
||||
|
||||
html {
|
||||
color: var(--color-text);
|
||||
background: var(--color-background);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-link);
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
.breadcrumbs {
|
||||
@include font-bold;
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
a {
|
||||
color: var(--color-text);
|
||||
border-bottom: 2px solid transparent;
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: var(--color-text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
#TableOfContents {
|
||||
line-height: 1.5rem;
|
||||
|
||||
ul, li {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
ul ul {
|
||||
margin-left: .5rem;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: .375rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
article#collapsible_menu_changelogs {
|
||||
line-height: 1.75rem;
|
||||
display: grid;
|
||||
gap: .5rem;
|
||||
grid-template-columns: max-content 1fr;
|
||||
margin-top: .5rem;
|
||||
}
|
||||
|
||||
.collapsible-menu-wrapper {
|
||||
@include my-8;
|
||||
font-size: 0.875rem;
|
||||
padding: 1rem;
|
||||
border: 2px solid var(--color-border-collapsible-menu);
|
||||
border-radius: .25rem;
|
||||
|
||||
.collapsible-menu-type {
|
||||
span {
|
||||
@include font-bold;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
summary.collapsible-menu-type {
|
||||
span {
|
||||
margin-left: .3rem;
|
||||
}
|
||||
}
|
||||
|
||||
.collapsible-menu {
|
||||
margin-left: .5rem;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
.color-block {
|
||||
border-radius: 0.25rem;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
.emgithub-container {
|
||||
@include my-6;
|
||||
|
||||
.emgithub-code {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
.emgithub-loading {
|
||||
@include mx-auto;
|
||||
@include my-4;
|
||||
z-index: 10;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 2rem;
|
||||
|
||||
&.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
animation: spin 1s linear infinite;
|
||||
color: white;
|
||||
fill: #969696;
|
||||
@keyframes spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.emgithub-pre {
|
||||
@include my-0;
|
||||
border-bottom-right-radius: 0px;
|
||||
border-bottom-left-radius: 0px;
|
||||
|
||||
&.loading {
|
||||
min-height: 5rem;
|
||||
}
|
||||
|
||||
code {
|
||||
tab-size: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.emgithub-toolbar {
|
||||
@include text-xs;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding: 0.75rem 0.75rem 0.625rem 0.75rem;
|
||||
border-bottom-right-radius: 0.375rem;
|
||||
border-bottom-left-radius: 0.375rem;
|
||||
background-color: $gray-900;
|
||||
|
||||
a {
|
||||
@include font-semibold;
|
||||
color: white;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
footer {
|
||||
@include my-4;
|
||||
@include text-xs;
|
||||
text-align: center;
|
||||
color: var(--color-text-footer);
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
html[data-theme="dark"] {
|
||||
#dark_mode_btn {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme="light"] {
|
||||
#light_mode_btn {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 1rem 0;
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
a {
|
||||
@include text-3xl;
|
||||
@include font-bold;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
#sidebar_btn {
|
||||
display: flex;
|
||||
margin-right: 0.5rem;
|
||||
|
||||
@media screen and (min-width: $md_min_width) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.toolbox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
column-gap: 0.5rem;
|
||||
|
||||
.toolbox-btn {
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-wrapper {
|
||||
.dropdown-btn.pure-menu-link {
|
||||
color: unset;
|
||||
}
|
||||
|
||||
.dropdown-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
|
||||
&:hover {
|
||||
background-color: unset;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.dropdown-desc {
|
||||
@include text-sm;
|
||||
margin-left: 0.35rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
.icon-group {
|
||||
@include my-4;
|
||||
display: inline-grid;
|
||||
grid-auto-flow: column;
|
||||
gap: 0.375rem;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
.icon {
|
||||
display: inline-block;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
|
||||
a {
|
||||
color: var(--color-text);
|
||||
|
||||
&:hover {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
202
themes/hugo-theme-monochrome/assets/scss/components/menus.scss
Normal file
202
themes/hugo-theme-monochrome/assets/scss/components/menus.scss
Normal file
@@ -0,0 +1,202 @@
|
||||
/*!
|
||||
Pure v2.1.0
|
||||
Copyright 2013 Yahoo!
|
||||
Licensed under the BSD License.
|
||||
https://github.com/pure-css/pure/blob/master/LICENSE
|
||||
*/
|
||||
/*csslint adjoining-classes: false, box-model:false*/
|
||||
|
||||
.pure-menu {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.pure-menu-fixed {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.pure-menu-list, .pure-menu-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pure-menu-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.pure-menu-item {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
@include text-sm;
|
||||
}
|
||||
|
||||
.pure-menu-link, .pure-menu-heading {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* HORIZONTAL MENU */
|
||||
|
||||
.pure-menu-horizontal {
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
|
||||
.pure-menu-list {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.pure-menu-item, .pure-menu-heading, .pure-menu-separator {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
/* Initial menus should be inline-block so that they are horizontal */
|
||||
|
||||
/* Submenus should still be display: block; */
|
||||
|
||||
.pure-menu-item .pure-menu-item {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.pure-menu-children {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 100%;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
z-index: 3;
|
||||
|
||||
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.pure-menu-horizontal .pure-menu-children {
|
||||
left: 0;
|
||||
top: auto;
|
||||
width: inherit;
|
||||
}
|
||||
|
||||
.pure-menu-allow-hover:hover > .pure-menu-children, .pure-menu-active > .pure-menu-children {
|
||||
display: block;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
/* Vertical Menus - show the dropdown arrow */
|
||||
|
||||
.pure-menu-has-children > .pure-menu-link:after {
|
||||
padding-left: 0.35rem;
|
||||
font-family: sans-serif;
|
||||
content: "▸";
|
||||
}
|
||||
|
||||
/* Horizontal Menus - show the dropdown arrow */
|
||||
|
||||
.pure-menu-horizontal .pure-menu-has-children > .pure-menu-link:after {
|
||||
font-family: sans-serif;
|
||||
content: "▾";
|
||||
}
|
||||
|
||||
/* scrollable menus */
|
||||
|
||||
.pure-menu-scrollable {
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
|
||||
.pure-menu-list {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.pure-menu-horizontal.pure-menu-scrollable {
|
||||
.pure-menu-list {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
white-space: nowrap;
|
||||
overflow-y: hidden;
|
||||
overflow-x: auto;
|
||||
|
||||
/* a little extra padding for this style to allow for scrollbars */
|
||||
padding: .5em 0;
|
||||
}
|
||||
|
||||
/* misc default styling */
|
||||
|
||||
.pure-menu-separator {
|
||||
background-color: #ccc;
|
||||
height: 1px;
|
||||
margin: .3em 0;
|
||||
}
|
||||
|
||||
.pure-menu-horizontal {
|
||||
.pure-menu-children .pure-menu-separator {
|
||||
background-color: #ccc;
|
||||
height: 1px;
|
||||
margin: .3em 0;
|
||||
}
|
||||
|
||||
.pure-menu-separator {
|
||||
width: 1px;
|
||||
height: 1.3em;
|
||||
margin: 0 0.3em;
|
||||
}
|
||||
|
||||
.pure-menu-children .pure-menu-separator {
|
||||
display: block;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* Need to reset the separator since submenu is vertical */
|
||||
|
||||
.pure-menu-heading {
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.pure-menu-link {
|
||||
color: var(--color-text);
|
||||
@include text-sm;
|
||||
}
|
||||
|
||||
.pure-menu-children {
|
||||
background-color: var(--color-background);
|
||||
}
|
||||
|
||||
.pure-menu-link, .pure-menu-heading {
|
||||
padding: .5rem;
|
||||
}
|
||||
|
||||
.pure-menu-disabled {
|
||||
opacity: .5;
|
||||
|
||||
.pure-menu-link:hover {
|
||||
background-color: transparent;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
.pure-menu-active > .pure-menu-link {
|
||||
background-color: var(--color-background-hover);
|
||||
}
|
||||
|
||||
.pure-menu-link {
|
||||
&:hover, &:focus {
|
||||
background-color: var(--color-background-hover);
|
||||
}
|
||||
}
|
||||
|
||||
.pure-menu-selected > .pure-menu-link {
|
||||
color: var(--color-navbar-item-active);
|
||||
|
||||
&:visited {
|
||||
color: var(--color-navbar-item-active);
|
||||
}
|
||||
}
|
||||
62
themes/hugo-theme-monochrome/assets/scss/components/nav.scss
Normal file
62
themes/hugo-theme-monochrome/assets/scss/components/nav.scss
Normal file
@@ -0,0 +1,62 @@
|
||||
#navbar {
|
||||
margin: 1rem 0;
|
||||
|
||||
@media screen and (max-width: $md_min_width) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> ul.pure-menu-list {
|
||||
display: flex;
|
||||
|
||||
.navbar-dropdown {
|
||||
> a.pure-menu-link:after {
|
||||
content: "▾";
|
||||
}
|
||||
|
||||
> ul.pure-menu-children {
|
||||
left: 0;
|
||||
top: 27px;
|
||||
width: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-item {
|
||||
margin: 0 .5rem 0 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
|
||||
> a.pure-menu-link {
|
||||
@include font-medium;
|
||||
padding: 0 0 .3rem 0;
|
||||
color: var(--color-navbar-item-inactive);
|
||||
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: var(--color-navbar-item-active);
|
||||
|
||||
> a {
|
||||
color: var(--color-navbar-item-active);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-item.active {
|
||||
border-bottom-color: var(--color-navbar-item-active);
|
||||
|
||||
> a {
|
||||
color: var(--color-navbar-item-active);
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-item.insection {
|
||||
border-bottom-color: var(--color-navbar-item-in-section);
|
||||
|
||||
> a {
|
||||
color: var(--color-navbar-item-in-section);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
.pagination {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
margin: 0 .1rem;
|
||||
}
|
||||
|
||||
a, span {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
li.active a {
|
||||
@include font-semibold;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
li:not(.disabled) a:hover {
|
||||
color: var(--color-text);
|
||||
|
||||
span {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
.postcard-layout {
|
||||
.pagination {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
#search_menu_wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 40;
|
||||
background-color: rgba(0,0,0,.75);
|
||||
|
||||
mark {
|
||||
background-color: unset;
|
||||
color: unset;
|
||||
border-bottom: 2px solid var(--color-text);
|
||||
}
|
||||
|
||||
#search_menu {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 0;
|
||||
background-color: var(--color-background);
|
||||
|
||||
@media screen and (min-width: $sm_min_width) {
|
||||
height: auto;
|
||||
top: 6rem;
|
||||
bottom: 6rem;
|
||||
width: 30rem;
|
||||
z-index: 50;
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
#search_menu_toolbar {
|
||||
display: flex;
|
||||
min-height: 2.5rem;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
|
||||
#search_menu_input_wrapper {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
|
||||
input {
|
||||
@include px-4;
|
||||
flex-grow: 1;
|
||||
border-top-left-radius: 0.375rem;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
outline: 2px solid transparent;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
#search_menu_close_btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.5rem;
|
||||
border-top-right-radius: 0.375rem;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--color-background-overlay);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#search_menu_results {
|
||||
flex-grow: 1;
|
||||
overflow-y: auto;
|
||||
|
||||
.search-menu-result-item {
|
||||
@include px-4;
|
||||
padding-top: 0.875rem;
|
||||
padding-bottom: 0.875rem;
|
||||
min-height: 2.5rem;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--color-background-overlay);
|
||||
}
|
||||
|
||||
.search-menu-result-item-title {
|
||||
@include font-bold;
|
||||
line-height: 1.7rem;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.search-menu-result-item-content {
|
||||
@include text-xs;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
#sidebar_canvas_overlay {
|
||||
background-color: rgba(0,0,0,.75);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
z-index: 20;
|
||||
background-color: var(--color-background);
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
transform: translateX(0);
|
||||
transition: transform 0.2s;
|
||||
overflow-y: auto;
|
||||
width: 60%;
|
||||
|
||||
@media screen and (min-width: $sm_min_width) {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
summary span {
|
||||
margin-left: .2rem;
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 1.2rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
#sidebar.close {
|
||||
display: block;
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
.term-item {
|
||||
@include list-link-item;
|
||||
margin-right: 0.375rem;
|
||||
line-height: 1.7rem;
|
||||
}
|
||||
32
themes/hugo-theme-monochrome/assets/scss/core.scss
Normal file
32
themes/hugo-theme-monochrome/assets/scss/core.scss
Normal file
@@ -0,0 +1,32 @@
|
||||
@import 'purecss/base';
|
||||
|
||||
@import 'mixins/text';
|
||||
@import 'mixins/margin';
|
||||
@import 'mixins/padding';
|
||||
@import 'mixins/items';
|
||||
|
||||
@import 'color';
|
||||
@import 'vars';
|
||||
|
||||
@import 'base';
|
||||
@import 'layout/article';
|
||||
@import 'layout/bookcase';
|
||||
@import 'layout/gallery';
|
||||
@import 'layout/balloon';
|
||||
@import 'layout/list';
|
||||
@import 'layout/postcard';
|
||||
@import 'layout/term';
|
||||
@import 'components/header';
|
||||
@import 'components/footer';
|
||||
@import 'components/menus';
|
||||
@import 'components/nav';
|
||||
@import 'components/collapsible-menu';
|
||||
@import 'components/emgithub';
|
||||
@import 'components/terms-cloud';
|
||||
@import 'components/icon';
|
||||
@import 'components/breadcrumbs';
|
||||
@import 'components/color-block';
|
||||
@import 'components/icon-group';
|
||||
@import 'components/search-menu';
|
||||
@import 'components/sidebar';
|
||||
@import 'components/pagination';
|
||||
197
themes/hugo-theme-monochrome/assets/scss/layout/article.scss
Normal file
197
themes/hugo-theme-monochrome/assets/scss/layout/article.scss
Normal file
@@ -0,0 +1,197 @@
|
||||
article {
|
||||
line-height: 1.7;
|
||||
|
||||
> *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
@include my-8;
|
||||
}
|
||||
|
||||
p {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style-type: disc;
|
||||
@include my-2;
|
||||
|
||||
p {
|
||||
@include my-0;
|
||||
}
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
@include my-4;
|
||||
padding-left: 1.3rem;
|
||||
}
|
||||
|
||||
ol {
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
@include my-2;
|
||||
|
||||
li:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
li:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
blockquote {
|
||||
@include px-4;
|
||||
@include my-6;
|
||||
@include mx-0;
|
||||
border-left: 2px solid var(--color-border);
|
||||
|
||||
p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
@include my-0;
|
||||
}
|
||||
}
|
||||
|
||||
code { /* Inline code style */
|
||||
border-radius: .25rem;
|
||||
padding: .2rem .375rem .2rem .375rem;
|
||||
background-color: var(--color-background-inline-code);
|
||||
}
|
||||
|
||||
pre {
|
||||
@include my-6;
|
||||
padding: 1rem;
|
||||
overflow-x: auto;
|
||||
border-radius: .5rem;
|
||||
background-color: $gray-850;
|
||||
color: $gray-50;
|
||||
|
||||
code { /* Disable inline code style */
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
pre.mc-prism.hide code { /* Smooth transition for prism.js */
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
pre.mc-prism code { /* Smooth transition for prism.js */
|
||||
opacity: 1;
|
||||
transition: opacity 0.1s ease-in;
|
||||
}
|
||||
|
||||
.code-toolbar {
|
||||
.toolbar-item {
|
||||
@include mx-1;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight {
|
||||
@include my-6;
|
||||
position: relative;
|
||||
|
||||
.code-toolbar {
|
||||
padding: 0;
|
||||
|
||||
pre {
|
||||
padding: 1rem;
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
}
|
||||
|
||||
> div,
|
||||
> pre {
|
||||
padding: 0.75rem;
|
||||
border-radius: 0.375rem;
|
||||
overflow-x: auto;
|
||||
|
||||
pre {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
|
||||
code { /* Disable inline code style */
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.copy-code-button {
|
||||
@include text-xs;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
height: 1.5rem;
|
||||
top: -1.5rem;
|
||||
padding-left: 0.375rem;
|
||||
padding-right: 0.375rem;
|
||||
border-radius: .25rem;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--color-background-hover);
|
||||
}
|
||||
}
|
||||
|
||||
table.mc-table {
|
||||
@include my-6;
|
||||
table-layout: auto;
|
||||
border-collapse: collapse;
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
|
||||
td, th {
|
||||
@include px-3;
|
||||
@include py-2;
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
}
|
||||
|
||||
figure {
|
||||
@include my-4;
|
||||
text-align: center;
|
||||
|
||||
figcaption {
|
||||
@include my-2;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
@include mx-auto;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme='dark'] {
|
||||
.twitter-tweet {
|
||||
color: var(--color-text);
|
||||
|
||||
a {
|
||||
color: var(--color-link);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
152
themes/hugo-theme-monochrome/assets/scss/layout/balloon.scss
Normal file
152
themes/hugo-theme-monochrome/assets/scss/layout/balloon.scss
Normal file
@@ -0,0 +1,152 @@
|
||||
%balloon-item-base {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@media screen and (min-width: $md_min_width) {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
|
||||
%balloon-item-line-base {
|
||||
width: 7rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
|
||||
@media screen and (max-width: $md_min_width) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
%balloon-item-content-base {
|
||||
display: flex;
|
||||
flex: 1 1 0%;
|
||||
margin-left: -12px;
|
||||
|
||||
@media screen and (max-width: $md_min_width) {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.balloon-layout {
|
||||
@media screen and (min-width: $md_min_width) {
|
||||
margin-left: -1.75rem;
|
||||
}
|
||||
|
||||
.balloon-head-item {
|
||||
@extend %balloon-item-base;
|
||||
width: 100%;
|
||||
gap: 20px;
|
||||
|
||||
.balloon-head-item-desktop {
|
||||
@extend %balloon-item-line-base;
|
||||
}
|
||||
|
||||
.balloon-head-item-mobile {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
|
||||
@media screen and (min-width: $md_min_width) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.balloon-head-item-img-light, .balloon-head-item-img-dark {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.balloon-head-item-img {
|
||||
img {
|
||||
width: 6rem;
|
||||
height: 6rem;
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: 9999px;
|
||||
}
|
||||
}
|
||||
|
||||
.balloon-head-item-content {
|
||||
@extend %balloon-item-content-base;
|
||||
margin: 0;
|
||||
align-items: center;
|
||||
|
||||
@media screen and (max-width: $md_min_width) {
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.balloon-title-item {
|
||||
@extend %balloon-item-base;
|
||||
|
||||
.balloon-title-item-line {
|
||||
@extend %balloon-item-line-base;
|
||||
}
|
||||
|
||||
.balloon-title-item-content {
|
||||
@extend %balloon-item-content-base;
|
||||
|
||||
@media screen and (max-width: $md_min_width) {
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.balloon-card-item {
|
||||
@extend %balloon-item-base;
|
||||
|
||||
.balloon-card-item-line {
|
||||
@extend %balloon-item-line-base;
|
||||
}
|
||||
|
||||
.balloon-card-item-content {
|
||||
@extend %balloon-item-content-base;
|
||||
@include text-sm;
|
||||
overflow: auto;
|
||||
border-radius: 0.375rem;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
background-color: var(--color-background-card);
|
||||
padding: 1rem 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.balloon-dot {
|
||||
width: .8rem;
|
||||
height: .8rem;
|
||||
border-radius: 1rem;
|
||||
margin: 0.25rem 0;
|
||||
border: 2px solid var(--color-text);
|
||||
}
|
||||
|
||||
.balloon-line-container {
|
||||
display: flex;
|
||||
flex: 1 1 0%;
|
||||
justify-content: center;
|
||||
|
||||
.balloon-line {
|
||||
background-color: var(--color-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme="dark"] {
|
||||
.balloon-head-item {
|
||||
.balloon-head-item-img-light {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme="light"] {
|
||||
.balloon-head-item {
|
||||
.balloon-head-item-img-dark {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
.bookcase-layout {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
grid-template-columns: repeat(auto-fill, 8rem);
|
||||
|
||||
.bookcase-item {
|
||||
figure {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
@include text-sm;
|
||||
text-align: center;
|
||||
margin-top: .7rem;
|
||||
|
||||
a {
|
||||
color: var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
img, .bookcase-item-overlay {
|
||||
width: 8rem;
|
||||
height: 12rem;
|
||||
border-radius: 0.375rem;
|
||||
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.bookcase-item-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: transparent;
|
||||
opacity: 0.25;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--color-background-overlay);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme="light"] {
|
||||
.bookcase-item-img-dark {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme="dark"] {
|
||||
.bookcase-item-img-light {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
46
themes/hugo-theme-monochrome/assets/scss/layout/gallery.scss
Normal file
46
themes/hugo-theme-monochrome/assets/scss/layout/gallery.scss
Normal file
@@ -0,0 +1,46 @@
|
||||
.gallery-layout {
|
||||
figure {
|
||||
@media screen and (min-width: $md_min_width) {
|
||||
margin-left: -1.25rem;
|
||||
margin-right: -1.25rem;
|
||||
}
|
||||
|
||||
img {
|
||||
@include mx-auto;
|
||||
}
|
||||
}
|
||||
|
||||
figcaption {
|
||||
@include my-2;
|
||||
@include text-xs;
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.gallery-item {
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
.gallery-item-title {
|
||||
margin: 1rem 0;
|
||||
|
||||
a {
|
||||
@include list-link-item;
|
||||
}
|
||||
|
||||
span {
|
||||
@include text-3xl;
|
||||
@include font-bold;
|
||||
}
|
||||
}
|
||||
|
||||
.gallery-item-content {
|
||||
@include my-4;
|
||||
}
|
||||
|
||||
.gallery-item-statistic {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
grid-template-columns: max-content 1fr;
|
||||
}
|
||||
}
|
||||
21
themes/hugo-theme-monochrome/assets/scss/layout/list.scss
Normal file
21
themes/hugo-theme-monochrome/assets/scss/layout/list.scss
Normal file
@@ -0,0 +1,21 @@
|
||||
ul.list-layout {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
margin-bottom: .5rem;
|
||||
line-height: 1.625;
|
||||
display: list-item;
|
||||
list-style-type: none;
|
||||
|
||||
a {
|
||||
@include list-link-item;
|
||||
line-height: 1.7rem;
|
||||
}
|
||||
|
||||
span {
|
||||
@include text-xs;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
.postcard-layout {
|
||||
a {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.postcard-item {
|
||||
padding: 1rem;
|
||||
background-color: var(--color-background-card);
|
||||
border-radius: .375rem;
|
||||
margin: 2rem 0;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--color-background-hover);
|
||||
}
|
||||
|
||||
.postcard-title {
|
||||
@include text-xl;
|
||||
@include font-medium;
|
||||
}
|
||||
|
||||
.postcard-summary {
|
||||
@include text-xs;
|
||||
color: var(--color-text-secondary);
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
margin: .5rem 0;
|
||||
}
|
||||
|
||||
.postcard-metadata {
|
||||
@include text-xs;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
10
themes/hugo-theme-monochrome/assets/scss/layout/term.scss
Normal file
10
themes/hugo-theme-monochrome/assets/scss/layout/term.scss
Normal file
@@ -0,0 +1,10 @@
|
||||
.term-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 2rem 0;
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
@mixin list-link-item {
|
||||
color: var(--color-text);
|
||||
border-bottom: 2px solid var(--color-border);
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: var(--color-text-secondary);
|
||||
}
|
||||
}
|
||||
49
themes/hugo-theme-monochrome/assets/scss/mixins/margin.scss
Normal file
49
themes/hugo-theme-monochrome/assets/scss/mixins/margin.scss
Normal file
@@ -0,0 +1,49 @@
|
||||
@mixin my-0 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
@mixin my-2 {
|
||||
margin-top: .5rem;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
@mixin my-4 {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
@mixin my-6 {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
@mixin my-8 {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
@mixin mx-auto {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
@mixin mx-0 {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
@mixin mx-1 {
|
||||
margin-left: 0.25rem;
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
@mixin mx-2 {
|
||||
margin-left: .5rem;
|
||||
margin-right: .5rem;
|
||||
}
|
||||
@mixin mx-4 {
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
@mixin mx-6 {
|
||||
margin-left: 1.5rem;
|
||||
margin-right: 1.5rem;
|
||||
}
|
||||
@mixin mx-8 {
|
||||
margin-left: 2rem;
|
||||
margin-right: 2rem;
|
||||
}
|
||||
45
themes/hugo-theme-monochrome/assets/scss/mixins/padding.scss
Normal file
45
themes/hugo-theme-monochrome/assets/scss/mixins/padding.scss
Normal file
@@ -0,0 +1,45 @@
|
||||
@mixin py-0 {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
@mixin py-2 {
|
||||
padding-top: .5rem;
|
||||
padding-bottom: .5rem;
|
||||
}
|
||||
@mixin py-4 {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
@mixin py-6 {
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
@mixin py-8 {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
@mixin px-0 {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
@mixin px-2 {
|
||||
padding-left: .5rem;
|
||||
padding-right: .5rem;
|
||||
}
|
||||
@mixin px-3 {
|
||||
padding-left: .75rem;
|
||||
padding-right: .75rem;
|
||||
}
|
||||
@mixin px-4 {
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
@mixin px-6 {
|
||||
padding-left: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
@mixin px-8 {
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
56
themes/hugo-theme-monochrome/assets/scss/mixins/text.scss
Normal file
56
themes/hugo-theme-monochrome/assets/scss/mixins/text.scss
Normal file
@@ -0,0 +1,56 @@
|
||||
@mixin text-xs {
|
||||
font-size: 0.75rem; /* 12px */
|
||||
line-height: 1rem; /* 16px */
|
||||
}
|
||||
@mixin text-sm {
|
||||
font-size: 0.875rem; /* 14px */
|
||||
line-height: 1.25rem; /* 20px */
|
||||
}
|
||||
@mixin text-base {
|
||||
font-size: 1rem; /* 16px */
|
||||
line-height: 1.5rem; /* 24px */
|
||||
}
|
||||
@mixin text-lg {
|
||||
font-size: 1.125rem; /* 18px */
|
||||
line-height: 1.75rem; /* 28px */
|
||||
}
|
||||
@mixin text-xl {
|
||||
font-size: 1.25rem; /* 20px */
|
||||
line-height: 1.75rem; /* 28px */
|
||||
}
|
||||
@mixin text-2xl {
|
||||
font-size: 1.375rem; /* 22px */
|
||||
line-height: 1.875rem; /* 30px */
|
||||
}
|
||||
@mixin text-3xl {
|
||||
font-size: 1.5rem; /* 24px */
|
||||
line-height: 2rem; /* 32px */
|
||||
}
|
||||
|
||||
@mixin font-thin {
|
||||
font-weight: 100;
|
||||
}
|
||||
@mixin font-extralight {
|
||||
font-weight: 200;
|
||||
}
|
||||
@mixin font-light {
|
||||
font-weight: 300;
|
||||
}
|
||||
@mixin font-normal {
|
||||
font-weight: 400;
|
||||
}
|
||||
@mixin font-medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
@mixin font-semibold {
|
||||
font-weight: 600;
|
||||
}
|
||||
@mixin font-bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
@mixin font-extrabold {
|
||||
font-weight: 800;
|
||||
}
|
||||
@mixin font-black {
|
||||
font-weight: 900;
|
||||
}
|
||||
431
themes/hugo-theme-monochrome/assets/scss/purecss/_base.scss
Normal file
431
themes/hugo-theme-monochrome/assets/scss/purecss/_base.scss
Normal file
@@ -0,0 +1,431 @@
|
||||
/*!
|
||||
Pure v2.1.0
|
||||
Copyright 2013 Yahoo!
|
||||
Licensed under the BSD License.
|
||||
https://github.com/pure-css/pure/blob/master/LICENSE
|
||||
*/
|
||||
/*!
|
||||
normalize.css v | MIT License | git.io/normalize
|
||||
Copyright (c) Nicolas Gallagher and Jonathan Neal
|
||||
*/
|
||||
/*! 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 {
|
||||
-webkit-box-sizing: content-box;
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 */
|
||||
-webkit-text-decoration: underline dotted;
|
||||
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 {
|
||||
-webkit-box-sizing: border-box;
|
||||
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"] {
|
||||
-webkit-box-sizing: border-box;
|
||||
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, &::-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 */
|
||||
|
||||
&::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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, [hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10.
|
||||
*/
|
||||
|
||||
/*csslint important:false*/
|
||||
|
||||
/* ==========================================================================
|
||||
Pure Base Extras
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Extra rules that Pure adds on top of Normalize.css
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
/**
|
||||
* Always hide an element when it has the `hidden` HTML attribute.
|
||||
*/
|
||||
|
||||
.hidden, [hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add this class to an image to make it fit within it's fluid parent wrapper while maintaining
|
||||
* aspect ratio.
|
||||
*/
|
||||
|
||||
.pure-img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
12
themes/hugo-theme-monochrome/assets/scss/vars.scss
Normal file
12
themes/hugo-theme-monochrome/assets/scss/vars.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
$sm_min_width: 35.5rem;
|
||||
$md_min_width: 48rem;
|
||||
$lg_min_width: 64rem;
|
||||
$xl_min_width: 80rem;
|
||||
$xxl_min_width: 120rem;
|
||||
|
||||
$sm_main_width: 100%;
|
||||
$md_main_width: 80%;
|
||||
$lg_main_width: 55%;
|
||||
$xl_main_width: 55%;
|
||||
$xxl_main_width: 55%;
|
||||
|
||||
Reference in New Issue
Block a user