initial
This commit is contained in:
120
themes/next/source/css/_common/scaffolding/base.styl
Normal file
120
themes/next/source/css/_common/scaffolding/base.styl
Normal file
@ -0,0 +1,120 @@
|
||||
::selection {
|
||||
background: $selection-bg;
|
||||
color: $selection-color;
|
||||
}
|
||||
|
||||
body {
|
||||
position: relative; // Required by scrollspy
|
||||
font-family: $font-family-base;
|
||||
font-size: $font-size-base;
|
||||
line-height: $line-height-base;
|
||||
color: $text-color;
|
||||
background: $body-bg-color;
|
||||
|
||||
+tablet-mobile() { padding-right: 0 !important; }
|
||||
+desktop-large() { font-size: $font-size-large; }
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 20px 0 15px;
|
||||
padding: 0;
|
||||
font-weight: bold;
|
||||
line-height: 1.5;
|
||||
font-family: $font-family-headings;
|
||||
}
|
||||
|
||||
for headline in (1..6) {
|
||||
h{headline} {
|
||||
font-size: $font-size-headings-base - $font-size-headings-step * headline;
|
||||
code {
|
||||
font-size: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
+mobile() {
|
||||
h{headline} {
|
||||
font-size: $font-size-headings-base - $font-size-headings-step * headline - 4px;
|
||||
code {
|
||||
font-size: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p { margin: 0 0 20px 0; }
|
||||
|
||||
a, span.exturl {
|
||||
word-wrap();
|
||||
// Remove the gray background color from active links in IE 10.
|
||||
background-color: transparent;
|
||||
color: $link-color;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
border-bottom: 1px solid $link-decoration-color;
|
||||
|
||||
&:hover {
|
||||
color: $link-hover-color;
|
||||
border-bottom-color: $link-decoration-hover-color;
|
||||
}
|
||||
|
||||
// For spanned external links.
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
video {
|
||||
max-width: 100%;
|
||||
show();
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
img {
|
||||
show();
|
||||
margin: auto;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 40px 0;
|
||||
height: 3px;
|
||||
border: none;
|
||||
background-color: $gray-lighter;
|
||||
background-image: repeating-linear-gradient(
|
||||
-45deg,
|
||||
white,
|
||||
white 4px,
|
||||
transparent 4px,
|
||||
transparent 8px
|
||||
);
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0;
|
||||
padding: 0 15px;
|
||||
color: $grey-dim;
|
||||
border-left: 4px solid $gray-lighter;
|
||||
|
||||
cite::before {
|
||||
content: "-";
|
||||
padding: 0 5px;
|
||||
}
|
||||
}
|
||||
|
||||
dt { font-weight: $font-weight-bolder; }
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
kbd {
|
||||
border: 1px solid $grey-light;
|
||||
border-radius: 0.2em;
|
||||
box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.1);
|
||||
background-color: #f9f9f9;
|
||||
font-family: inherit;
|
||||
background-image: linear-gradient(top, #eee, white, #eee);
|
||||
padding: 0.1em 0.3em;
|
||||
white-space: nowrap;
|
||||
}
|
68
themes/next/source/css/_common/scaffolding/helpers.styl
Normal file
68
themes/next/source/css/_common/scaffolding/helpers.styl
Normal file
@ -0,0 +1,68 @@
|
||||
//
|
||||
// Helpers
|
||||
// =================================================
|
||||
|
||||
|
||||
// Alignment
|
||||
.text-left { text-align: left; }
|
||||
.text-center { text-align: center; }
|
||||
.text-right { text-align: right; }
|
||||
.text-justify { text-align: justify; }
|
||||
.text-nowrap { white-space: nowrap; }
|
||||
|
||||
|
||||
// Transformation
|
||||
.text-lowercase { text-transform: lowercase; }
|
||||
.text-uppercase { text-transform: uppercase; }
|
||||
.text-capitalize { text-transform: capitalize; }
|
||||
|
||||
|
||||
// Center-align a block level element.
|
||||
.center-block {
|
||||
show();
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
|
||||
// Clearfix. http://nicolasgallagher.com/micro-clearfix-hack/
|
||||
.clearfix {
|
||||
clearfix();
|
||||
}
|
||||
|
||||
.pullquote {
|
||||
width: 45%;
|
||||
|
||||
&.left {
|
||||
float: left;
|
||||
margin-left: 5px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
&.right {
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.affix {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.translation {
|
||||
margin-top: -20px;
|
||||
font-size: 14px;
|
||||
color: $grey-dark;
|
||||
}
|
||||
|
||||
// https://davidwalsh.name/detect-scrollbar-width
|
||||
.scrollbar-measure {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
overflow: scroll;
|
||||
position: absolute;
|
||||
top: -9999px;
|
||||
}
|
||||
|
||||
.use-motion .motion-element { opacity: 0; }
|
141
themes/next/source/css/_common/scaffolding/mobile.styl
Normal file
141
themes/next/source/css/_common/scaffolding/mobile.styl
Normal file
@ -0,0 +1,141 @@
|
||||
/*
|
||||
// > 1600px
|
||||
+desktop-large() {
|
||||
|
||||
}
|
||||
|
||||
// > 992px
|
||||
+desktop() {
|
||||
|
||||
}
|
||||
|
||||
// > 768px & < 991px
|
||||
+tablet() {
|
||||
|
||||
}
|
||||
|
||||
// < 767px
|
||||
+mobile() {
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
// < 567px
|
||||
+mobile-small() {
|
||||
|
||||
// For Muse & Mist schemes only vertical economy.
|
||||
.header-inner {
|
||||
margin-bottom: initial !important;
|
||||
}
|
||||
.main-inner {
|
||||
margin-top: initial !important;
|
||||
}
|
||||
|
||||
// For Pisces & Gemini schemes only wider width (remove main blocks in Gemini).
|
||||
.content-wrap {
|
||||
padding: initial !important;
|
||||
}
|
||||
|
||||
// For all schemes wider width.
|
||||
.posts-expand {
|
||||
padding-top: $content-mobile-padding !important;
|
||||
// For Muse & Mist & Pisces schemes only wider width.
|
||||
margin: initial !important;
|
||||
|
||||
.post-header {
|
||||
padding: 0 18px;
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
margin: 3px 0 10px 0 !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.post-block {
|
||||
// Inside posts blocks content padding (default 40px).
|
||||
padding: $content-mobile-padding 0 !important;
|
||||
margin-top: initial !important;
|
||||
}
|
||||
|
||||
.post-body {
|
||||
// For headers narrow width.
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 10px 18px 8px;
|
||||
}
|
||||
// Rewrite paddings & margins inside tags.
|
||||
.note, .tabs .tab-content .tab-pane {
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 0 5px;
|
||||
}
|
||||
}
|
||||
|
||||
// For paragraphs narrow width.
|
||||
> p {
|
||||
margin: 0 0 10px 0;
|
||||
padding: 0 18px;
|
||||
}
|
||||
|
||||
// For lists narrow width.
|
||||
> ul {
|
||||
margin-inline-end: 1em;
|
||||
}
|
||||
|
||||
// For blockquotes.
|
||||
> blockquote {
|
||||
margin: 0 18px;
|
||||
}
|
||||
|
||||
// For external links alignment.
|
||||
> span.exturl {
|
||||
margin-left: 18px;
|
||||
}
|
||||
|
||||
// For Mist more button alignment.
|
||||
> div.post-button a {
|
||||
margin-left: 18px;
|
||||
}
|
||||
|
||||
// Rewrite paddings & margins inside tags.
|
||||
.note > p, .tabs .tab-content .tab-pane > p {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.video-container .fluid-vids {
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
|
||||
.note {
|
||||
padding: 10px !important;
|
||||
margin-bottom: 10px !important;
|
||||
|
||||
if hexo-config('note.icons') {
|
||||
&:not(.no-icon) {
|
||||
padding-left: 35px !important;
|
||||
&:before {
|
||||
top: 8px !important;
|
||||
left: 12px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tabs .tab-content .tab-pane {
|
||||
padding: 10px 10px 0 10px !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Need to refactor into flex.
|
||||
.post-nav {
|
||||
padding-bottom: 2px;
|
||||
//padding: 2px 8px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
// < 413px
|
||||
+mobile-smallest() {
|
||||
|
||||
}
|
||||
*/
|
349
themes/next/source/css/_common/scaffolding/normalize.styl
vendored
Normal file
349
themes/next/source/css/_common/scaffolding/normalize.styl
vendored
Normal file
@ -0,0 +1,349 @@
|
||||
/*! 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
//
|
||||
// Scaffolding
|
||||
// =================================================
|
||||
|
||||
@import "normalize";
|
||||
@import "base";
|
||||
@import "helpers";
|
||||
@import "tables";
|
||||
@import "mobile" if hexo-config('mobile_layout_economy');
|
42
themes/next/source/css/_common/scaffolding/tables.styl
Normal file
42
themes/next/source/css/_common/scaffolding/tables.styl
Normal file
@ -0,0 +1,42 @@
|
||||
.table-container {
|
||||
margin: 20px 0;
|
||||
overflow: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.highlight .table-container {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: $table-width;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
font-size: $table-font-size;
|
||||
}
|
||||
|
||||
table > tbody > tr {
|
||||
&:nth-of-type(odd) { background-color: $table-row-odd-bg-color; }
|
||||
&:hover { background-color: $table-row-hover-bg-color; }
|
||||
}
|
||||
|
||||
caption, th, td {
|
||||
padding: $table-cell-padding;
|
||||
text-align: $table-content-alignment;
|
||||
vertical-align: $table-content-vertical;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
th, td {
|
||||
border: 1px solid $table-border-color;
|
||||
border-bottom: 3px solid $table-cell-border-bottom-color;
|
||||
}
|
||||
|
||||
th {
|
||||
padding-bottom: 10px;
|
||||
font-weight: $table-th-font-weight;
|
||||
}
|
||||
|
||||
td {
|
||||
border-bottom-width: 1px;
|
||||
}
|
Reference in New Issue
Block a user