style: refactor layout and replace fixed spacing with font-relative units
This commit is contained in:
@@ -11,7 +11,7 @@ a.button {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 8px 18px;
|
padding: calc(var(--font-theme-size) * 0.5) calc(var(--font-theme-size) * 1.125);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
@@ -26,7 +26,7 @@ button.outline,
|
|||||||
a.button.outline {
|
a.button.outline {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
padding: 8px 18px;
|
padding: calc(var(--font-theme-size) * 0.5) calc(var(--font-theme-size) * 1.125);
|
||||||
}
|
}
|
||||||
|
|
||||||
button.outline :hover,
|
button.outline :hover,
|
||||||
@@ -52,8 +52,8 @@ a.button.small {
|
|||||||
button.wide,
|
button.wide,
|
||||||
.button.wide,
|
.button.wide,
|
||||||
a.button.wide {
|
a.button.wide {
|
||||||
min-width: 200px;
|
min-width: calc(var(--font-theme-size) * 12.5);
|
||||||
padding: 14px 24px;
|
padding: calc(var(--font-theme-size) * 0.875) calc(var(--font-theme-size) * 1.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
a.button.inline {
|
a.button.inline {
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
comment-widget {
|
comment-widget {
|
||||||
--halo-comment-widget-base-font-family: var(--font-theme-default) !important;
|
--halo-comment-widget-base-font-family: var(--font-theme-default) !important;
|
||||||
--halo-comment-widget-base-border-radius: 0 !important;
|
--halo-comment-widget-base-border-radius: var(--radius-theme-default) !important;
|
||||||
|
--halo-comment-widget-base-font-size: var(--font-theme-size) !important;
|
||||||
|
--halo-comment-widget-base-line-height: var(--line-theme-height) !important;
|
||||||
--halo-comment-widget-base-color: var(--color-theme-foreground) !important;
|
--halo-comment-widget-base-color: var(--color-theme-foreground) !important;
|
||||||
--halo-comment-widget-base-info-color: var(--color-theme-foreground) !important;
|
--halo-comment-widget-base-info-color: var(--color-theme-foreground) !important;
|
||||||
--halo-comment-widget-component-form-input-bg-color: var(--color-theme-background) !important;
|
--halo-comment-widget-component-form-input-bg-color: var(--color-theme-background) !important;
|
||||||
@@ -30,5 +32,5 @@ comment-widget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
margin-top: 40px;
|
margin-top: calc(var(--font-theme-size) * 2.5);
|
||||||
}
|
}
|
||||||
+17
-16
@@ -1,10 +1,11 @@
|
|||||||
@import "variables";
|
@import "variables";
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
padding: 40px 0;
|
padding: calc(var(--font-theme-size) * 1.25) 0;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
opacity: 0.65;
|
opacity: 0.65;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-top: auto;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -13,10 +14,10 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 20px;
|
padding: calc(var(--font-theme-size) * 1.25);
|
||||||
max-width: 1200px;
|
max-width: calc(var(--font-theme-size) * 75);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
gap: 12px;
|
gap: calc(var(--font-theme-size) * 0.75);
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 0.9rem;
|
font-size: calc(var(--font-theme-size) * 0.9);
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,9 +43,9 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: calc(var(--font-theme-size) * 0.625);
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
font-size: 0.9rem;
|
font-size: calc(var(--font-theme-size) * 0.9);
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,42 +59,42 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: calc(var(--font-theme-size) * 0.625);
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.footer-inner {
|
.footer-inner {
|
||||||
padding: 15px 10px;
|
padding: calc(var(--font-theme-size) * 0.9375) calc(var(--font-theme-size) * 0.625);
|
||||||
gap: 10px;
|
gap: calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-copyright-engine {
|
.footer-copyright-engine {
|
||||||
font-size: 13px;
|
font-size: calc(var(--font-theme-size) * 0.8125);
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-copyright-site {
|
.footer-copyright-site {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: calc(var(--font-theme-size) * 0.5);
|
||||||
font-size: 13px;
|
font-size: calc(var(--font-theme-size) * 0.8125);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-icp p {
|
.footer-icp p {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 5px;
|
gap: calc(var(--font-theme-size) * 0.3125);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.footer-inner {
|
.footer-inner {
|
||||||
padding: 12px 8px;
|
padding: calc(var(--font-theme-size) * 0.75) calc(var(--font-theme-size) * 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-copyright-engine,
|
.footer-copyright-engine,
|
||||||
.footer-copyright-site {
|
.footer-copyright-site {
|
||||||
font-size: 12px;
|
font-size: calc(var(--font-theme-size) * 0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-copyright-engine span,
|
.footer-copyright-engine span,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: var(--color-theme-header);
|
color: var(--color-theme-header);
|
||||||
border-color: var(--color-theme-header);
|
border-color: var(--color-theme-header);
|
||||||
margin: 0 0 0 .5rem;
|
margin: 0 0 0 calc(var(--font-theme-size) * 0.5);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,10 +25,10 @@
|
|||||||
|
|
||||||
.header__logo::after {
|
.header__logo::after {
|
||||||
content: "";
|
content: "";
|
||||||
background: repeating-linear-gradient(90deg, var(--color-theme-header), var(--color-theme-header) 2px, transparent 0, transparent 10px);
|
background: repeating-linear-gradient(90deg, var(--color-theme-header), var(--color-theme-header) calc(var(--font-theme-size) * 0.125), transparent 0, transparent calc(var(--font-theme-size) * 0.625));
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
right: 10px;
|
right: calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
.header__logo a {
|
.header__logo a {
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
background: var(--color-theme-header);
|
background: var(--color-theme-header);
|
||||||
color: var(--color-theme-background);
|
color: var(--color-theme-background);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 5px 10px;
|
padding: calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
.icon-pixel,
|
.icon-pixel,
|
||||||
.icon-regular {
|
.icon-regular {
|
||||||
display: none;
|
display: none;
|
||||||
width: 1.5rem;
|
width: calc(var(--font-theme-size) * 1.5);
|
||||||
height: 1.5rem;
|
height: calc(var(--font-theme-size) * 1.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
html[pixel_style='false'] .icon-regular {
|
html[pixel_style='false'] .icon-regular {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.link-section {
|
.link-section {
|
||||||
margin-bottom: 2rem;
|
margin-bottom: calc(var(--font-theme-size) * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-table {
|
.link-table {
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
.link-item {
|
.link-item {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: calc(var(--font-theme-size) * 0.5);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
@@ -20,12 +20,12 @@
|
|||||||
|
|
||||||
.link-container {
|
.link-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 0.25rem;
|
padding: calc(var(--font-theme-size) * 0.25);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-logo {
|
.link-logo {
|
||||||
width: 4rem;
|
width: calc(var(--font-theme-size) * 4);
|
||||||
height: auto;
|
height: auto;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
min-height: 4rem;
|
min-height: calc(var(--font-theme-size) * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-title {
|
.link-title {
|
||||||
@@ -45,12 +45,12 @@
|
|||||||
|
|
||||||
.link-url {
|
.link-url {
|
||||||
color: var(--color-theme-accent);
|
color: var(--color-theme-accent);
|
||||||
font-size: 0.9em;
|
font-size: calc(var(--font-theme-size) * 0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-description {
|
.link-description {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--color-theme-foreground);
|
color: var(--color-theme-foreground);
|
||||||
font-size: 0.9em;
|
font-size: calc(var(--font-theme-size) * 0.9);
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
+96
-71
@@ -12,15 +12,11 @@
|
|||||||
--color-theme-header: ;
|
--color-theme-header: ;
|
||||||
--list-theme-marker: "►";
|
--list-theme-marker: "►";
|
||||||
--font-theme-size: 1rem;
|
--font-theme-size: 1rem;
|
||||||
--line-theme-height: 1.54em;
|
--line-theme-height: calc(var(--font-theme-size) * 1.54);
|
||||||
--radius-theme-default: 0;
|
--radius-theme-default: 0;
|
||||||
--font-theme-default: 'JetBrains Mono';
|
--font-theme-default: 'JetBrains Mono';
|
||||||
--font-theme-fallback: Monaco, Consolas, -apple-system, BlinkMacSystemFont, 'segoe ui',
|
--font-theme-fallback: Monaco, Consolas, -apple-system, BlinkMacSystemFont, 'segoe ui',
|
||||||
Roboto, Oxygen, Ubuntu, Cantarell, 'open sans', 'helvetica neue';
|
Roboto, Oxygen, Ubuntu, Cantarell, 'open sans', 'helvetica neue';
|
||||||
|
|
||||||
@media (max-width: $phone-max-width) {
|
|
||||||
--font-theme-size: 0.95rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@@ -57,6 +53,10 @@ body {
|
|||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
text-size-adjust: 100%;
|
text-size-adjust: 100%;
|
||||||
|
|
||||||
|
@media (max-width: $phone-max-width) {
|
||||||
|
font-size: calc(var(--font-theme-size) * 0.95);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@@ -94,7 +94,7 @@ img,
|
|||||||
figure,
|
figure,
|
||||||
video,
|
video,
|
||||||
table {
|
table {
|
||||||
margin: 25px 0;
|
margin: calc(var(--font-theme-size) * 1.5625) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -110,8 +110,8 @@ button {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--color-theme-accent);
|
color: var(--color-theme-accent);
|
||||||
padding: 5px 18px;
|
padding: calc(var(--font-theme-size) * 0.315) calc(var(--font-theme-size) * 1.125);
|
||||||
border: 4px solid var(--color-theme-accent);
|
border: calc(var(--font-theme-size) * 0.25) solid var(--color-theme-accent);
|
||||||
border-radius: var(--radius-theme-default);
|
border-radius: var(--radius-theme-default);
|
||||||
transition: background 0.15s linear;
|
transition: background 0.15s linear;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
@@ -131,9 +131,9 @@ a:focus-visible {
|
|||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border: 2px solid var(--color-theme-foreground);
|
border: calc(var(--font-theme-size) * 0.125) solid var(--color-theme-foreground);
|
||||||
border-radius: calc(var(--radius-theme-default) * 1.6);
|
border-radius: var(--radius-theme-default);
|
||||||
padding: 10px;
|
padding: calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset *:first-child {
|
fieldset *:first-child {
|
||||||
@@ -162,9 +162,9 @@ textarea,
|
|||||||
select {
|
select {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--color-theme-foreground);
|
color: var(--color-theme-foreground);
|
||||||
border: 1px solid var(--color-theme-foreground);
|
border: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground);
|
||||||
border-radius: var(--radius-theme-default);
|
border-radius: var(--radius-theme-default);
|
||||||
padding: 10px;
|
padding: calc(var(--font-theme-size) * 0.625);
|
||||||
font: inherit;
|
font: inherit;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
@@ -180,8 +180,8 @@ textarea:active,
|
|||||||
select:focus-visible,
|
select:focus-visible,
|
||||||
select:active {
|
select:active {
|
||||||
border-color: var(--color-theme-accent);
|
border-color: var(--color-theme-accent);
|
||||||
outline: 1px solid var(--color-theme-accent);
|
outline: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-accent);
|
||||||
outline-offset: 2px;
|
outline-offset: calc(var(--font-theme-size) * 0.125);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:active,
|
input:active,
|
||||||
@@ -197,10 +197,10 @@ select {
|
|||||||
var(--color-theme-foreground) 50%
|
var(--color-theme-foreground) 50%
|
||||||
),
|
),
|
||||||
linear-gradient(135deg, var(--color-theme-foreground) 50%, transparent 50%);
|
linear-gradient(135deg, var(--color-theme-foreground) 50%, transparent 50%);
|
||||||
background-position: calc(100% - 20px), calc(100% - 1em);
|
background-position: calc(100% - 1.25em), calc(100% - 1em);
|
||||||
background-size: 5px 5px, 5px 5px;
|
background-size: calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.3125), calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.3125);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
padding-right: 40px;
|
padding-right: calc(var(--font-theme-size) * 2.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
select option {
|
select option {
|
||||||
@@ -209,8 +209,7 @@ select option {
|
|||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding: 10px;
|
padding: calc(var(--font-theme-size) * 0.625);
|
||||||
box-shadow: inset 0 0 0 3px var(--color-theme-background);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="checkbox"]:checked {
|
input[type="checkbox"]:checked {
|
||||||
@@ -220,9 +219,9 @@ input[type="checkbox"]:checked {
|
|||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
border: 4px solid var(--color-theme-accent);
|
border: calc(var(--font-theme-size) * 0.25) solid var(--color-theme-accent);
|
||||||
border-radius: var(--radius-theme-default);
|
border-radius: var(--radius-theme-default);
|
||||||
padding: 4px;
|
padding: calc(var(--font-theme-size) * 0.25);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -267,8 +266,8 @@ figure figcaption {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: var(--font-theme-size);
|
font-size: var(--font-theme-size);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-top: -8px;
|
margin-top: calc(var(--font-theme-size) * -0.5);
|
||||||
padding: 0 8px;
|
padding: 0 calc(var(--font-theme-size) * 0.5);
|
||||||
border-radius: 0 0 var(--radius-theme-default) var(--radius-theme-default);
|
border-radius: 0 0 var(--radius-theme-default) var(--radius-theme-default);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,18 +302,18 @@ kbd {
|
|||||||
font-family: inherit !important;
|
font-family: inherit !important;
|
||||||
font-feature-settings: normal;
|
font-feature-settings: normal;
|
||||||
background: color-mix(in srgb, var(--color-theme-foreground) 5%, transparent);
|
background: color-mix(in srgb, var(--color-theme-foreground) 5%, transparent);
|
||||||
border: 1px solid var(--code-border);
|
border: calc(var(--font-theme-size) * 0.0625) solid var(--code-border);
|
||||||
padding: 1px 6px;
|
padding: calc(var(--font-theme-size) * 0.0625) calc(var(--font-theme-size) * 0.375);
|
||||||
margin: 0 2px;
|
margin: 0 calc(var(--font-theme-size) * 0.125);
|
||||||
font-size: calc(var(--font-theme-size) * 0.95);
|
font-size: calc(var(--font-theme-size) * 0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
kbd {
|
kbd {
|
||||||
border-top: 1px solid color-mix(in srgb, var(--color-theme-accent) 25%, transparent);
|
border-top: calc(var(--font-theme-size) * 0.0625) solid color-mix(in srgb, var(--color-theme-accent) 25%, transparent);
|
||||||
border-left: 1px solid var(--color-theme-accent);
|
border-left: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-accent);
|
||||||
border-right: 1px solid var(--color-theme-accent);
|
border-right: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-accent);
|
||||||
border-bottom: 4px solid var(--color-theme-accent);
|
border-bottom: calc(var(--font-theme-size) * 0.25) solid var(--color-theme-accent);
|
||||||
border-radius: 4px;
|
border-radius: calc(var(--font-theme-size) * 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
code code {
|
code code {
|
||||||
@@ -328,11 +327,11 @@ pre {
|
|||||||
tab-size: 4;
|
tab-size: 4;
|
||||||
background: color-mix(in srgb, var(--color-theme-foreground) 5%, transparent) !important;
|
background: color-mix(in srgb, var(--color-theme-foreground) 5%, transparent) !important;
|
||||||
color: var(--color-theme-foreground);
|
color: var(--color-theme-foreground);
|
||||||
padding: 10px 10px;
|
padding: calc(var(--font-theme-size) * 0.625) calc(var(--font-theme-size) * 0.625);
|
||||||
font-size: calc(var(--font-theme-size) * 0.95) !important;
|
font-size: calc(var(--font-theme-size) * 0.95) !important;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
border-radius: var(--radius-theme-default);
|
border-radius: var(--radius-theme-default);
|
||||||
border: 1px solid color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
|
border: calc(var(--font-theme-size) * 0.0625) solid color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
|
||||||
|
|
||||||
@media (max-width: $phone-max-width) {
|
@media (max-width: $phone-max-width) {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
@@ -359,11 +358,11 @@ abbr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub {
|
sub {
|
||||||
bottom: -0.25em;
|
bottom: calc(var(--font-theme-size) * -0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
sup {
|
sup {
|
||||||
top: -0.25em;
|
top: calc(var(--font-theme-size) * -0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
mark {
|
mark {
|
||||||
@@ -373,11 +372,11 @@ mark {
|
|||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
position: relative;
|
position: relative;
|
||||||
border-top: 1px solid var(--color-theme-foreground);
|
border-top: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground);
|
||||||
border-bottom: 1px solid var(--color-theme-foreground);
|
border-bottom: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground);
|
||||||
border-left: .4rem solid var(--color-theme-foreground);
|
border-left: calc(var(--font-theme-size) * 0.4) solid var(--color-theme-foreground);
|
||||||
margin: 10px 0 10px 0;
|
margin: calc(var(--font-theme-size) * 0.625) 0 calc(var(--font-theme-size) * 0.625) 0;
|
||||||
padding: 20px;
|
padding: calc(var(--font-theme-size) * 1.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote p:first-child {
|
blockquote p:first-child {
|
||||||
@@ -396,8 +395,8 @@ table {
|
|||||||
table,
|
table,
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
border: 2px solid var(--color-theme-foreground);
|
border: calc(var(--font-theme-size) * 0.125) solid var(--color-theme-foreground);
|
||||||
padding: 10px;
|
padding: calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
@@ -405,14 +404,14 @@ th {
|
|||||||
color: var(--color-theme-foreground);
|
color: var(--color-theme-foreground);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: calc(var(--font-theme-size) * 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
background: var(--color-theme-accent);
|
background: var(--color-theme-accent);
|
||||||
height: 2px;
|
height: calc(var(--font-theme-size) * 0.125);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* One Heading Size */
|
/* One Heading Size */
|
||||||
@@ -422,9 +421,9 @@ hr {
|
|||||||
.headings--one-size h4,
|
.headings--one-size h4,
|
||||||
.headings--one-size h5,
|
.headings--one-size h5,
|
||||||
.headings--one-size h6 {
|
.headings--one-size h6 {
|
||||||
font-size: 1.4rem;
|
font-size: calc(var(--font-theme-size) * 1.4);
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
margin: 20px 0;
|
margin: calc(var(--font-theme-size) * 1.25) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headings--one-size ~ h1:first-child,
|
.headings--one-size ~ h1:first-child,
|
||||||
@@ -433,7 +432,7 @@ hr {
|
|||||||
.headings--one-size ~ h4:first-child,
|
.headings--one-size ~ h4:first-child,
|
||||||
.headings--one-size ~ h5:first-child,
|
.headings--one-size ~ h5:first-child,
|
||||||
.headings--one-size ~ h6:first-child {
|
.headings--one-size ~ h6:first-child {
|
||||||
margin-top: 20px;
|
margin-top: calc(var(--font-theme-size) * 1.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote.twitter-tweet {
|
blockquote.twitter-tweet {
|
||||||
@@ -441,8 +440,8 @@ blockquote.twitter-tweet {
|
|||||||
background: var(--color-theme-background);
|
background: var(--color-theme-background);
|
||||||
font: inherit;
|
font: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
border: 1px solid var(--color-theme-accent);
|
border: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-accent);
|
||||||
padding-top: 60px;
|
padding-top: calc(var(--font-theme-size) * 3.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote.twitter-tweet a {
|
blockquote.twitter-tweet a {
|
||||||
@@ -453,39 +452,65 @@ blockquote.twitter-tweet a {
|
|||||||
blockquote.twitter-tweet::before {
|
blockquote.twitter-tweet::before {
|
||||||
content: "> From X:";
|
content: "> From X:";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 20px;
|
top: calc(var(--font-theme-size) * 1.25);
|
||||||
left: 20px;
|
left: calc(var(--font-theme-size) * 1.25);
|
||||||
color: var(--color-theme-accent);
|
color: var(--color-theme-accent);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.page {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 40px;
|
min-height: 100vh
|
||||||
max-width: 864px;
|
|
||||||
min-height: 80vh;
|
|
||||||
border-right: 1px solid color-mix(in srgb, var(--color-theme-accent) 10%, transparent);
|
|
||||||
|
|
||||||
@media (max-width: $phone-max-width) {
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.container.full, .container.center {
|
.main-wrapper {
|
||||||
border: none;
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-wrapper {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-left,
|
||||||
|
.sidebar-right {
|
||||||
|
width: 20%;
|
||||||
|
flex-shrink: 0;
|
||||||
|
padding: calc(var(--font-theme-size) * 1.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.center.container {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: calc(var(--font-theme-size) * 2.5);
|
||||||
|
width: 60%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container.full {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.sidebar-left,
|
||||||
|
.sidebar-right {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.center.container {
|
||||||
|
padding: calc(var(--font-theme-size) * 1.25);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -514,13 +539,13 @@ blockquote.twitter-tweet::before {
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
width: 60px;
|
width: calc(var(--font-theme-size) * 3.75);
|
||||||
height: 60px;
|
height: calc(var(--font-theme-size) * 3.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
iframe[src*="youtube.com"] {
|
iframe[src*="youtube.com"] {
|
||||||
border: 8px solid var(--color-theme-accent) !important;
|
border: calc(var(--font-theme-size) * 0.5) solid var(--color-theme-accent) !important;
|
||||||
padding: 8px !important;
|
padding: calc(var(--font-theme-size) * 0.5) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
|||||||
+15
-16
@@ -4,7 +4,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin: 20px 1px;
|
margin: calc(var(--font-theme-size) * 1.25) calc(var(--font-theme-size) * 0.0625);
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -33,29 +33,29 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
li:not(:last-of-type) {
|
li:not(:last-of-type) {
|
||||||
margin-bottom: 10px;
|
margin-bottom: calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation-menu__inner li {
|
.navigation-menu__inner li {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 5px;
|
padding: calc(var(--font-theme-size) * 0.3125);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation-menu__inner > li {
|
.navigation-menu__inner > li {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
margin-bottom: 10px;
|
margin-bottom: calc(var(--font-theme-size) * 0.625);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
@media (max-width: $phone-max-width) {
|
@media (max-width: $phone-max-width) {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 5px;
|
padding: calc(var(--font-theme-size) * 0.3125);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation-menu__inner > li:not(:last-of-type) {
|
.navigation-menu__inner > li:not(:last-of-type) {
|
||||||
margin-right: 20px;
|
margin-right: calc(var(--font-theme-size) * 1.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation-menu .spacer {
|
.navigation-menu .spacer {
|
||||||
@@ -75,16 +75,16 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: var(--color-theme-background) !important;
|
background-color: var(--color-theme-background) !important;
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
padding-left: 5px;
|
padding-left: calc(var(--font-theme-size) * 0.3125);
|
||||||
padding-right: 5px;
|
padding-right: calc(var(--font-theme-size) * 0.3125);
|
||||||
color: var(--color-theme-menu);
|
color: var(--color-theme-menu);
|
||||||
user-select: none;
|
user-select: none;
|
||||||
border: none;
|
border: none;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|
||||||
@media (max-width: $phone-max-width) {
|
@media (max-width: $phone-max-width) {
|
||||||
padding-left: 10px;
|
padding-left: calc(var(--font-theme-size) * 0.625);
|
||||||
padding-right: 10px;
|
padding-right: calc(var(--font-theme-size) * 0.625);
|
||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
outline: none;
|
outline: none;
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
@@ -96,12 +96,11 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: var(--color-theme-background);
|
background: var(--color-theme-background);
|
||||||
box-shadow: 0 10px var(--color-theme-background), -10px 10px var(--color-theme-background), 10px 10px var(--color-theme-background);
|
|
||||||
color: var(--color-theme-accent);
|
color: var(--color-theme-accent);
|
||||||
border: 2px solid var(--color-theme-menu);
|
border: calc(var(--font-theme-size) * 0.125) solid var(--color-theme-menu);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 5px;
|
padding: calc(var(--font-theme-size) * 0.3125);
|
||||||
top: 25px;
|
top: calc(var(--font-theme-size) * 1.5625);
|
||||||
list-style: none;
|
list-style: none;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
|
|
||||||
@@ -116,12 +115,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu__dropdown > li:not(:last-of-type) {
|
.menu__dropdown > li:not(:last-of-type) {
|
||||||
margin-bottom: 10px;
|
margin-bottom: calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu__dropdown > li a {
|
.menu__dropdown > li a {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 5px;
|
padding: calc(var(--font-theme-size) * 0.3125);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
.moment-media {
|
.moment-media {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.5rem;
|
gap: calc(var(--font-theme-size) * 0.5);
|
||||||
margin: 1rem 0;
|
margin: var(--font-theme-size) 0;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.moment-media video {
|
.moment-media video {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
height: calc(var(--font-theme-size) * 12.5);
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: 8px;
|
border-radius: var(--font-theme-size);
|
||||||
transition: transform 0.3s ease;
|
transition: transform 0.3s ease;
|
||||||
}
|
}
|
||||||
+10
-10
@@ -1,19 +1,19 @@
|
|||||||
@import "variables";
|
@import "variables";
|
||||||
|
|
||||||
.pagination {
|
.pagination {
|
||||||
margin-top: 10px;
|
margin-top: calc(var(--font-theme-size) * 0.625);
|
||||||
|
|
||||||
.pagination__title {
|
.pagination__title {
|
||||||
display: flex;
|
display: flex;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 10px 0 10px;
|
margin: calc(var(--font-theme-size) * 0.625) 0 calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination__title-h {
|
.pagination__title-h {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 5px 10px;
|
padding: calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.625);
|
||||||
background: var(--color-theme-background);
|
background: var(--color-theme-background);
|
||||||
color: color-mix(in srgb, var(--color-theme-foreground) 65%, transparent);
|
color: color-mix(in srgb, var(--color-theme-foreground) 65%, transparent);
|
||||||
font-size: calc(var(--font-theme-size) * 0.8);
|
font-size: calc(var(--font-theme-size) * 0.8);
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 15px;
|
margin-top: calc(var(--font-theme-size) * 0.9375);
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,21 +37,21 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 20px;
|
gap: calc(var(--font-theme-size) * 1.25);
|
||||||
|
|
||||||
@media (min-width: calc(#{$phone-max-width} + 1px)) {
|
@media (min-width: $phone-min-width) {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: $phone-max-width) {
|
@media (max-width: $phone-max-width) {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 15px;
|
gap: calc(var(--font-theme-size) * 0.9375);
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
@media (min-width: calc(#{$phone-max-width} + 1px)) {
|
@media (min-width: $phone-min-width) {
|
||||||
&:first-child {
|
&:first-child {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
@@ -98,11 +98,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.next .button__icon {
|
.next .button__icon {
|
||||||
margin-left: 8px;
|
margin-left: calc(var(--font-theme-size) * 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.prev .button__icon {
|
.prev .button__icon {
|
||||||
margin-right: 8px;
|
margin-right: calc(var(--font-theme-size) * 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination__buttons:has(span:only-child) {
|
.pagination__buttons:has(span:only-child) {
|
||||||
|
|||||||
+35
-25
@@ -1,12 +1,12 @@
|
|||||||
@import "variables";
|
@import "variables";
|
||||||
|
|
||||||
.index-content {
|
.index-content {
|
||||||
margin: 25px 0;
|
margin: calc(var(--font-theme-size) * 1.5625) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.framed {
|
.framed {
|
||||||
border: 1px solid var(--color-theme-framed);
|
border: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-framed);
|
||||||
padding: 20px;
|
padding: calc(var(--font-theme-size) * 1.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.framed *:first-child {
|
.framed *:first-child {
|
||||||
@@ -24,42 +24,42 @@
|
|||||||
.post {
|
.post {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 30px 0;
|
padding: calc(var(--font-theme-size) * 1.875) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post:not(:last-of-type) {
|
.post:not(:last-of-type) {
|
||||||
border-bottom: 1px solid color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
|
border-bottom: calc(var(--font-theme-size) * 0.0625) solid color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-meta {
|
.post-meta {
|
||||||
font-size: inherit;
|
font-size: calc(var(--font-theme-size) * 0.9);
|
||||||
margin-bottom: 10px;
|
margin-bottom: calc(var(--font-theme-size) * 0.625);
|
||||||
color: color-mix(in srgb, var(--color-theme-meta) 65%, transparent);
|
color: color-mix(in srgb, var(--color-theme-meta) 65%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-meta > *:not(:first-child)::before {
|
.post-meta > *:not(:first-child)::before {
|
||||||
content: "::";
|
content: "::";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0 8px;
|
margin: 0 calc(var(--font-theme-size) * 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-title {
|
.post-title {
|
||||||
position: relative;
|
position: relative;
|
||||||
color: var(--color-theme-title);
|
color: var(--color-theme-title);
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
margin-bottom: 15px !important;
|
margin-bottom: calc(var(--font-theme-size) * 0.9375) !important;
|
||||||
padding-bottom: 15px;
|
padding-bottom: calc(var(--font-theme-size) * 0.9375) !important;
|
||||||
border-bottom: 3px dotted var(--color-theme-accent);
|
border-bottom: calc(var(--font-theme-size) * 0.1875) dotted var(--color-theme-accent);
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-title::after {
|
.post-title::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 2px;
|
bottom: calc(var(--font-theme-size) * 0.125);
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-bottom: 3px dotted var(--color-theme-accent);
|
border-bottom: calc(var(--font-theme-size) * 0.1875) dotted var(--color-theme-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-title a {
|
.post-title a {
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
.post-tags {
|
.post-tags {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 20px;
|
margin-bottom: calc(var(--font-theme-size) * 0.625);
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,16 +81,26 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-meta.post-tags {
|
||||||
|
font-size: calc(var(--font-theme-size) * 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
.table-of-contents {
|
.table-of-contents {
|
||||||
margin: 40px 0;
|
margin: calc(var(--font-theme-size) * 0.5) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-excerpt {
|
||||||
|
font-size: calc(var(--font-theme-size) * 0.95);
|
||||||
|
margin-top: calc(var(--font-theme-size) * 0.625);
|
||||||
|
margin-bottom: calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content {
|
.post-content {
|
||||||
margin-top: 25px;
|
margin-top: calc(var(--font-theme-size) * 1.5625);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-cover {
|
.post-cover {
|
||||||
margin: 25px 0;
|
margin: calc(var(--font-theme-size) * 1.5625) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post ul {
|
.post ul {
|
||||||
@@ -100,7 +110,7 @@
|
|||||||
.post ul li:not(:empty)::before {
|
.post ul li:not(:empty)::before {
|
||||||
content: var(--list-theme-marker);
|
content: var(--list-theme-marker);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: -20px;
|
left: calc(var(--font-theme-size) * -1.25);
|
||||||
color: var(--color-theme-foreground);
|
color: var(--color-theme-foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,19 +120,19 @@
|
|||||||
|
|
||||||
.post--regulation h2 {
|
.post--regulation h2 {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 10px;
|
margin-bottom: calc(var(--font-theme-size) * -0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post--regulation h2 + h2 {
|
.post--regulation h2 + h2 {
|
||||||
margin-top: -10px;
|
margin-top: calc(var(--font-theme-size) * -0.625);
|
||||||
margin-bottom: 20px;
|
margin-bottom: calc(var(--font-theme-size) * 1.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hanchor {
|
.hanchor {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
color: var(--color-theme-accent);
|
color: var(--color-theme-accent);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin-left: 10px;
|
margin-left: calc(var(--font-theme-size) * 0.625);
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,7 +155,7 @@ h6:hover .hanchor {
|
|||||||
|
|
||||||
.post-list {
|
.post-list {
|
||||||
|
|
||||||
padding: .25rem 0;
|
padding: calc(var(--font-theme-size) * 0.25) 0;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -154,7 +164,7 @@ h6:hover .hanchor {
|
|||||||
|
|
||||||
@media (max-width: $phone-max-width) {
|
@media (max-width: $phone-max-width) {
|
||||||
.post-cover {
|
.post-cover {
|
||||||
padding: 10px;
|
padding: calc(var(--font-theme-size) * 0.625);
|
||||||
border-width: 10px;
|
border-width: calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
search-modal {
|
search-modal {
|
||||||
|
--halo-search-widget-base-font-size: var(--font-theme-size) !important;
|
||||||
--halo-search-widget-base-font-family: var(--font-theme-default) !important;
|
--halo-search-widget-base-font-family: var(--font-theme-default) !important;
|
||||||
--halo-search-widget-base-bg-color: var(--color-theme-background) !important;
|
--halo-search-widget-base-bg-color: var(--color-theme-background) !important;
|
||||||
--halo-search-widget-primary-color: var(--color-theme-accent) !important;
|
--halo-search-widget-primary-color: var(--color-theme-accent) !important;
|
||||||
|
|||||||
+51
-36
@@ -1,29 +1,30 @@
|
|||||||
.toc {
|
.toc {
|
||||||
margin-left: 12px;
|
margin-left: calc(var(--font-theme-size) * 0.75);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: block;
|
display: block;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
top: 20vh;
|
top: 20vh;
|
||||||
padding: 40px 12px 12px;
|
padding: calc(var(--font-theme-size) * 2.5) calc(var(--font-theme-size) * 0.75) calc(var(--font-theme-size) * 0.75);
|
||||||
|
|
||||||
.toc-content {
|
.toc-content {
|
||||||
overflow: auto;
|
overflow: hidden;
|
||||||
display: none;
|
display: none;
|
||||||
|
max-height: calc(100vh - 20vh - var(--font-theme-size) * 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.toc-visible .toc-content {
|
&.toc-visible .toc-content {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
.toc-content::-webkit-scrollbar {
|
||||||
width: 6px;
|
width: calc(var(--font-theme-size) * 0.375);
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-track {
|
.toc-content::-webkit-scrollbar-track {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb {
|
.toc-content::-webkit-scrollbar-thumb {
|
||||||
background: var(--color-theme-foreground);
|
background: var(--color-theme-foreground);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -35,25 +36,24 @@
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
max-height: calc(100vh - 120px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-list-item {
|
.toc-list-item {
|
||||||
margin: 4px 0;
|
margin: calc(var(--font-theme-size) * 0.25) 0;
|
||||||
|
|
||||||
.toc-list {
|
.toc-list {
|
||||||
margin-left: 16px;
|
margin-left: var(--font-theme-size);
|
||||||
border-left: 1px solid var(--color-theme-foreground);
|
border-left: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground);
|
||||||
padding-left: 8px;
|
padding-left: calc(var(--font-theme-size) * 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-link {
|
.toc-link {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 4px 8px;
|
padding: calc(var(--font-theme-size) * 0.25) calc(var(--font-theme-size) * 0.5);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--color-theme-foreground);
|
color: var(--color-theme-foreground);
|
||||||
font-size: 0.875rem;
|
font-size: calc(var(--font-theme-size) * 0.875);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -72,8 +72,8 @@
|
|||||||
|
|
||||||
@media (min-width: 1401px) {
|
@media (min-width: 1401px) {
|
||||||
.toc:not(.toc-visible) {
|
.toc:not(.toc-visible) {
|
||||||
width: 32px;
|
width: calc(var(--font-theme-size) * 2);
|
||||||
height: 32px;
|
height: calc(var(--font-theme-size) * 2);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
@@ -86,10 +86,10 @@
|
|||||||
|
|
||||||
.toc-toggle {
|
.toc-toggle {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -1px;
|
top: calc(var(--font-theme-size) * -0.0625);
|
||||||
left: -1px;
|
left: calc(var(--font-theme-size) * -0.0625);
|
||||||
width: 32px;
|
width: calc(var(--font-theme-size) * 2);
|
||||||
height: 32px;
|
height: calc(var(--font-theme-size) * 2);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
border: none;
|
border: none;
|
||||||
color: var(--color-theme-foreground);
|
color: var(--color-theme-foreground);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 16px;
|
font-size: var(--font-theme-size);
|
||||||
z-index: 1002;
|
z-index: 1002;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -110,59 +110,74 @@
|
|||||||
|
|
||||||
@media (max-width: 1400px) {
|
@media (max-width: 1400px) {
|
||||||
.toc {
|
.toc {
|
||||||
width: 32px;
|
width: calc(var(--font-theme-size) * 2);
|
||||||
height: 32px;
|
height: calc(var(--font-theme-size) * 2);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
left: calc(100vw - 52px);
|
left: calc(100vw - var(--font-theme-size) * 3.25);
|
||||||
|
|
||||||
.toc-content {
|
.toc-content {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.toc-visible {
|
&.toc-visible {
|
||||||
width: 280px;
|
width: calc(var(--font-theme-size) * 17.5);
|
||||||
max-width: calc(100vw - 20px);
|
max-width: calc(100vw - var(--font-theme-size) * 1.25);
|
||||||
height: auto;
|
height: auto;
|
||||||
max-height: calc(100vh - 80px);
|
max-height: calc(100vh - var(--font-theme-size) * 5);
|
||||||
padding: 40px 12px 12px;
|
padding: calc(var(--font-theme-size) * 2.5) calc(var(--font-theme-size) * 0.75) calc(var(--font-theme-size) * 0.75);
|
||||||
background: var(--color-theme-background);
|
background: var(--color-theme-background);
|
||||||
border: 1px solid var(--color-theme-foreground);
|
border: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground);
|
||||||
z-index: 1001;
|
z-index: 1001;
|
||||||
|
|
||||||
&.toc-overflow-right {
|
&.toc-overflow-right {
|
||||||
left: auto !important;
|
left: auto !important;
|
||||||
right: 10px;
|
right: calc(var(--font-theme-size) * 0.625);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-content {
|
.toc-content {
|
||||||
display: block;
|
display: block;
|
||||||
|
overflow-y: auto;
|
||||||
|
max-height: calc(100vh - var(--font-theme-size) * 8.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-list {
|
.toc-list {
|
||||||
max-height: calc(100vh - 120px);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-link {
|
.toc-link {
|
||||||
font-size: 0.85rem;
|
font-size: calc(var(--font-theme-size) * 0.85);
|
||||||
padding: 5px 8px;
|
padding: calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-list-item {
|
.toc-list-item {
|
||||||
margin: 3px 0;
|
margin: calc(var(--font-theme-size) * 0.1875) 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.toc.toc-visible {
|
.toc.toc-visible {
|
||||||
width: calc(100vw - 200px);
|
max-width: max(calc(100vw - (var(--font-theme-size) * 12.5)), 50vw);
|
||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
|
|
||||||
|
.toc-content {
|
||||||
|
max-height: calc(60vh - var(--font-theme-size) * 3.75);
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.toc-list {
|
.toc-list {
|
||||||
max-height: calc(60vh - 60px);
|
}
|
||||||
|
|
||||||
|
.toc-list-item {
|
||||||
|
margin: calc(var(--font-theme-size) * 0.125) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-link {
|
||||||
|
font-size: calc(var(--font-theme-size) * 0.70);
|
||||||
|
padding: calc(var(--font-theme-size) * 0.1) calc(var(--font-theme-size) * 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+12
-19
@@ -14,32 +14,25 @@
|
|||||||
<h1 class="post-title">
|
<h1 class="post-title">
|
||||||
<a data-pjax th:text="${post.spec.title}" th:href="@{${post.status.permalink}}">Post Title</a>
|
<a data-pjax th:text="${post.spec.title}" th:href="@{${post.status.permalink}}">Post Title</a>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="post-meta">
|
<section class="post-meta">
|
||||||
<span class="post-date" th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">
|
<span class="post-date"
|
||||||
Publish Time
|
th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">Publish Time</span>
|
||||||
</span>
|
<span class="post-author"
|
||||||
<span
|
|
||||||
class="post-author"
|
|
||||||
th:with="contributor = ${post.contributors[0]}"
|
th:with="contributor = ${post.contributors[0]}"
|
||||||
th:text="${contributor.displayName}"
|
th:text="${contributor.displayName}">Author</span>
|
||||||
>Author</span
|
</section>
|
||||||
>
|
<section class="post-tags">
|
||||||
</div>
|
|
||||||
<span class="post-tags">
|
|
||||||
<span class="post-tag" th:each="tag : ${post.tags}">
|
<span class="post-tag" th:each="tag : ${post.tags}">
|
||||||
<a data-pjax
|
<a data-pjax
|
||||||
th:href="@{${tag.status.permalink}}"
|
th:href="@{${tag.status.permalink}}"
|
||||||
th:title="${tag.spec.displayName}"
|
th:title="${tag.spec.displayName}"
|
||||||
th:text="'#'+${tag.spec.displayName}"
|
th:text="'#'+${tag.spec.displayName}">#Tag</a>
|
||||||
>#Tag
|
|
||||||
</a>
|
|
||||||
</span>
|
</span>
|
||||||
</span>
|
|
||||||
</header>
|
|
||||||
<section class="post-content">
|
|
||||||
<p th:text="${post.status.excerpt}">Post Excerpt...</p>
|
|
||||||
</section>
|
</section>
|
||||||
|
</header>
|
||||||
|
<section class="post-excerpt">
|
||||||
|
<span th:text="${post.status.excerpt}">Post Excerpt...</span>
|
||||||
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<a data-pjax class="read-more button inline" th:href="@{${post.status.permalink}}">[Read more]</a>
|
<a data-pjax class="read-more button inline" th:href="@{${post.status.permalink}}">[Read more]</a>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -53,18 +53,26 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<section class="center container">
|
<div class="page">
|
||||||
|
<div class="main-wrapper">
|
||||||
|
<div class="layout-wrapper">
|
||||||
|
<aside class="sidebar-left">
|
||||||
|
</aside>
|
||||||
|
<main class="center container">
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<th:block th:replace="~{modules/header :: header(isHome = true)}"/>
|
<th:block th:replace="~{modules/header :: header(isHome = true)}"/>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<th:block th:replace="${content}"/>
|
<th:block th:replace="${content}"/>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</section>
|
<aside class="sidebar-right">
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<th:block th:replace="~{modules/footer}"/>
|
<th:block th:replace="~{modules/footer}"/>
|
||||||
</footer>
|
</footer>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user