mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-15 01:06:51 +00:00
🛠 Layout and content updates
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
line-height: 1.5;
|
||||
line-height: 1.45;
|
||||
font-family: var(--font-family-base);
|
||||
font-size: var(--font-size-base);
|
||||
scroll-behavior: smooth;
|
||||
@@ -29,6 +29,8 @@ body {
|
||||
height: 100%;
|
||||
color: var(--color-body-text);
|
||||
background-color: var(--color-body-bg);
|
||||
transition-property: color, background;
|
||||
transition-duration: var(--transition-duration-fast);
|
||||
}
|
||||
|
||||
h1,
|
||||
@@ -37,9 +39,8 @@ h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: var(--font-family-head);
|
||||
letter-spacing: -0.04em;
|
||||
line-height: 1.05;
|
||||
line-height: 1;
|
||||
color: var(--color-secondary);
|
||||
|
||||
& a {
|
||||
color: inherit;
|
||||
@@ -114,10 +115,28 @@ ul {
|
||||
}
|
||||
}
|
||||
|
||||
pre,
|
||||
button {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
img:-moz-loading {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
::-webkit-progress-value {
|
||||
background-color: var(--color-accent);
|
||||
}
|
||||
|
||||
::-ms-fill {
|
||||
background-color: var(--color-accent);
|
||||
}
|
||||
|
||||
::-moz-progress-bar {
|
||||
background-color: var(--color-accent);
|
||||
}
|
||||
|
||||
[aria-hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -1,19 +1,16 @@
|
||||
/* https://google-webfonts-helper.herokuapp.com/fonts/inconsolata?subsets=latin */
|
||||
@font-face {
|
||||
font-family: 'The Bold Font';
|
||||
src: url('../fonts/theboldfont.woff2') format('woff2');
|
||||
}
|
||||
|
||||
/* https://google-webfonts-helper.herokuapp.com/fonts/noto-sans?subsets=cyrillic,cyrillic-ext,latin */
|
||||
@font-face {
|
||||
font-family: 'Noto Sans';
|
||||
font-family: 'Inconsolata';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('../fonts/noto-sans-400.woff2') format('woff2');
|
||||
font-stretch: 100%;
|
||||
src: url('../fonts/inconsolata-400.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Noto Sans';
|
||||
font-family: 'Inconsolata';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url('../fonts/noto-sans-700.woff2') format('woff2');
|
||||
font-stretch: 100%;
|
||||
src: url('../fonts/inconsolata-700.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@@ -2,4 +2,20 @@
|
||||
text-align: center;
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--color-secondary);
|
||||
background-color: var(--color-card-bg);
|
||||
transition-property: background-color;
|
||||
transition-duration: var(--transition-duration-fast);
|
||||
padding: var(--space-m) 0;
|
||||
|
||||
& .wrap {
|
||||
@media (--M_and_up) {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
& p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,29 +1,32 @@
|
||||
.header {
|
||||
/* position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10; */
|
||||
color: var(--color-body-text);
|
||||
background-color: var(--color-body-bg);
|
||||
transition-property: color, background-color, box-shadow;
|
||||
transition-duration: var(--transition-duration-fast);
|
||||
|
||||
@media (--up_to_L) {
|
||||
@media (--up_to_M) {
|
||||
padding-top: var(--space-l);
|
||||
padding-bottom: var(--space-m);
|
||||
}
|
||||
@media (--M_to_L) {
|
||||
padding-top: var(--space-l);
|
||||
padding-bottom: var(--space-l);
|
||||
}
|
||||
@media (--L_and_up) {
|
||||
padding-top: var(--space-xl);
|
||||
padding-bottom: var(--space-xl);
|
||||
padding-bottom: var(--space-l);
|
||||
}
|
||||
|
||||
@nest body.topbar & {
|
||||
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
@media (--up_to_L) {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
|
||||
@nest body.topbar.topbar--appear & {
|
||||
opacity: 1;
|
||||
transition-property: opacity;
|
||||
transition-duration: var(--transition-duration-fast);
|
||||
@nest body.topbar & {
|
||||
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
& a {
|
||||
@@ -38,93 +41,94 @@
|
||||
}
|
||||
|
||||
& .wrap {
|
||||
@media (--L_and_up) {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
& .brand {
|
||||
display: inline-block;
|
||||
margin-right: var(--space-xl);
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
& .logo {
|
||||
display: block;
|
||||
|
||||
@media (--up_to_M) {
|
||||
height: 27px;
|
||||
width: 300px;
|
||||
}
|
||||
@media (--M_to_L) {
|
||||
height: 45px;
|
||||
width: 500px;
|
||||
}
|
||||
@media (--L_and_up) {
|
||||
height: 63px;
|
||||
width: 700px;
|
||||
}
|
||||
width: 100%;
|
||||
height: var(--logo-height);
|
||||
max-width: 840px;
|
||||
max-height: 76px;
|
||||
}
|
||||
|
||||
& .nav {
|
||||
position: relative;
|
||||
top: 3px;
|
||||
left: -1px;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-self: flex-start;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-right: 5.75%;
|
||||
line-height: 1;
|
||||
|
||||
@media (--up_to_L) {
|
||||
@media (--up_to_M) {
|
||||
margin-top: var(--space-m);
|
||||
font-size: var(--font-size-l);
|
||||
}
|
||||
@media (--M_to_L) {
|
||||
margin-top: var(--space-m);
|
||||
font-size: var(--font-size-xl);
|
||||
}
|
||||
@media (--L_and_up) {
|
||||
margin-top: var(--space-l);
|
||||
font-size: var(--font-size-xxl);
|
||||
}
|
||||
|
||||
& a {
|
||||
text-decoration: none;
|
||||
|
||||
&.navItem {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: -0.04em;
|
||||
font-weight: var(--font-weight-bold);
|
||||
margin-right: var(--space-l);
|
||||
line-height: 1;
|
||||
|
||||
@media (--up_to_L) {
|
||||
font-size: var(--font-size-l);
|
||||
}
|
||||
@media (--L_and_up) {
|
||||
font-size: var(--font-size-xl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& .social {
|
||||
& nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@media (--L_and_up) {
|
||||
margin-left: auto;
|
||||
& a {
|
||||
text-transform: uppercase;
|
||||
font-weight: var(--font-weight-bold);
|
||||
cursor: pointer;
|
||||
|
||||
&.current {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
}
|
||||
|
||||
& > a + a {
|
||||
margin-left: var(--space-l);
|
||||
}
|
||||
}
|
||||
|
||||
& .more {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: auto;
|
||||
|
||||
& a,
|
||||
& svg {
|
||||
& button{
|
||||
display: inline-block;
|
||||
|
||||
@media (--up_to_L) {
|
||||
height: calc(var(--font-size-l) - 0.2rem);
|
||||
width: calc(var(--font-size-l) - 0.2rem);
|
||||
}
|
||||
@media (--L_and_up) {
|
||||
height: calc(var(--font-size-xl) - 0.2rem);
|
||||
width: calc(var(--font-size-xl) - 0.2rem);
|
||||
& svg {
|
||||
height: .8em;
|
||||
width: .8em;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
& a + a {
|
||||
& > * + * {
|
||||
margin-left: var(--space-l);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.theme {
|
||||
display: inline-block;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
|
||||
&:hover {
|
||||
@media not all and (hover: none) {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,41 +1,31 @@
|
||||
.wrap {
|
||||
max-width: 1440px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
@media (--up_to_M) {
|
||||
padding-left: var(--space-l);
|
||||
padding-right: var(--space-l);
|
||||
}
|
||||
@media (--M_to_L) {
|
||||
padding-left: var(--space-xl);
|
||||
padding-right: var(--space-xl);
|
||||
}
|
||||
@media (--L_and_up) {
|
||||
padding-left: var(--space-xxl);
|
||||
padding-right: var(--space-xxl);
|
||||
}
|
||||
padding-left: var(--wrap-padding-horizontal);
|
||||
padding-right: var(--wrap-padding-horizontal);
|
||||
max-width: calc(840px + var(--wrap-padding-horizontal) * 2);
|
||||
}
|
||||
|
||||
.main {
|
||||
flex: 1;
|
||||
padding-top: var(--space-xxl);
|
||||
padding-bottom: var(--space-xxl);
|
||||
|
||||
& h1,
|
||||
@media (--up_to_L) {
|
||||
padding-top: calc(var(--logo-height) + var(--space-xxl) * 1.75);
|
||||
}
|
||||
@media (--L_and_up) {
|
||||
padding-top: var(--space-xl);
|
||||
}
|
||||
|
||||
& h1 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
& h2 {
|
||||
margin-bottom: var(--space-l);
|
||||
color: var(--color-secondary);
|
||||
max-width: 20em;
|
||||
}
|
||||
|
||||
& .centered {
|
||||
text-align: center;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
& .lead {
|
||||
& section {
|
||||
margin-bottom: var(--space-xxl);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
:root {
|
||||
--color-neutral-0: #fff;
|
||||
--color-neutral-10: #f6f6f6;
|
||||
--color-neutral-10: #f9f9f9;
|
||||
--color-neutral-50: #888;
|
||||
--color-neutral-90: #222;
|
||||
--color-neutral-95: #1B1B1B;
|
||||
@@ -24,15 +24,14 @@
|
||||
--space-s: .25rem;
|
||||
--space-m: .5rem;
|
||||
--space-l: 1rem;
|
||||
--space-xl: 2rem;
|
||||
--space-xl: 1.75rem;
|
||||
--space-xxl: 3rem;
|
||||
|
||||
--transition-duration-fast: 0.25s;
|
||||
--transition-duration-medium: 0.75s;
|
||||
--transition-duration-slow: 1.5s;
|
||||
|
||||
--font-family-base: 'Noto Sans', sans-serif;
|
||||
--font-family-head: var(--font-family-base);
|
||||
--font-family-base: 'Inconsolata', monospace;
|
||||
|
||||
--font-weight-normal: 400;
|
||||
--font-weight-bold: 700;
|
||||
@@ -45,6 +44,18 @@
|
||||
--font-size-xl: 1.75rem;
|
||||
--font-size-xxl: 2.5rem;
|
||||
--font-size-xxxl: 4rem;
|
||||
|
||||
@media (--up_to_M) {
|
||||
--wrap-padding-horizontal: var(--space-l);
|
||||
}
|
||||
@media (--M_to_L) {
|
||||
--wrap-padding-horizontal: var(--space-xl);
|
||||
}
|
||||
@media (--L_and_up) {
|
||||
--wrap-padding-horizontal: var(--space-xxl);
|
||||
}
|
||||
|
||||
--logo-height: calc((100vw - var(--wrap-padding-horizontal) * 2) / 134 * 12);
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
|
||||
Reference in New Issue
Block a user