mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 09:18:12 +08:00
Update the website layout with narrower default width and better typography (#1753)
- Reduces the default width from 1600px to 1200px of the web page and reduce the size of various elements and text. This fixes the problem that I designed the website assuming everyone is viewing from the same 2560px wide screen as I used to design it, which is a bad assumption. Most websites are around the 1200px mark. - Removes the use of the EB Garamond font, replacing more headers with a bold Inter instead, leaving only Bona Nova for h1 headers at the tops of pages (except the home page, which might have further revamp soon). - Adds nice flavor graphics to a redesigned volunteer page. - Cleans up and organizes the Zola templating code and CSS style sheets. - Improves image carousel to fade out images when dragged past the start or end.
This commit is contained in:
+12
-11
@@ -16,31 +16,32 @@
|
||||
background-color: var(--color-parchment);
|
||||
background-blend-mode: color-burn;
|
||||
|
||||
h2,
|
||||
h2 + p,
|
||||
h3,
|
||||
h3 + p {
|
||||
width: 100%;
|
||||
h2 {
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h2 + p {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
margin-top: 4px;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
h3 + p {
|
||||
margin-top: 0;
|
||||
h2 + p + p {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 .flag {
|
||||
.flag {
|
||||
font-family: "Noto Color Emoji", sans-serif;
|
||||
font-size: 0.8em;
|
||||
margin-left: 0.2em;
|
||||
vertical-align: middle;
|
||||
font-size: 1.5em;
|
||||
margin-left: 0.25em;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.section {
|
||||
.block {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.reading-material {
|
||||
max-width: 800px;
|
||||
width: 100%;
|
||||
flex: 0 1 auto;
|
||||
|
||||
.details {
|
||||
@@ -19,6 +19,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
article {
|
||||
margin-top: calc(80 * var(--variable-px));
|
||||
}
|
||||
|
||||
.social {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
||||
+736
-719
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
#intro {
|
||||
.section {
|
||||
.block {
|
||||
flex: 1 1 100%;
|
||||
width: 100%;
|
||||
|
||||
@@ -60,6 +60,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
~ section {
|
||||
margin-top: calc(120 * var(--variable-px));
|
||||
}
|
||||
|
||||
.banner {
|
||||
width: 400px;
|
||||
flex: 0 0 auto;
|
||||
@@ -79,8 +83,9 @@
|
||||
|
||||
.headline {
|
||||
margin-top: -0.5em;
|
||||
|
||||
|
||||
a {
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
color: var(--color-navy);
|
||||
}
|
||||
@@ -103,7 +108,7 @@
|
||||
-webkit-line-clamp: 3;
|
||||
|
||||
// Safari workaround: https://stackoverflow.com/a/72170897/775283
|
||||
// There is still an issue where the ellipsis is rendered inside the text but there doesn't appear to be a fix, or even a way to disable the ellipsis in Safari
|
||||
// But there remains an issue where the ellipsis is rendered inside the text. There doesn't appear to be a fix, or even a way to disable the ellipsis in Safari.
|
||||
p {
|
||||
display: inline;
|
||||
|
||||
|
||||
+78
-62
@@ -1,13 +1,22 @@
|
||||
.three-column-layout {
|
||||
--aside-gap: 40px;
|
||||
--aside-width: 300px;
|
||||
--align-with-article-title-letter-cap-heights: 0.4em;
|
||||
position: relative;
|
||||
display: flex;
|
||||
gap: 40px;
|
||||
justify-content: space-between;
|
||||
gap: var(--aside-gap);
|
||||
// Creates a stacking context for the left popout sidebar's sticky positioning
|
||||
transform: translate(0);
|
||||
|
||||
&.three-column-layout {
|
||||
max-width: var(--max-extended-width);
|
||||
}
|
||||
|
||||
.close-chapter-selection,
|
||||
.open-chapter-selection {
|
||||
display: none;
|
||||
flex: 0 0 auto;
|
||||
fill: var(--color-navy);
|
||||
background: none;
|
||||
border: none;
|
||||
@@ -23,7 +32,6 @@
|
||||
}
|
||||
|
||||
.reading-material {
|
||||
width: 800px;
|
||||
flex: 1 2 100%;
|
||||
|
||||
article {
|
||||
@@ -102,8 +110,8 @@
|
||||
border-right: var(--border-thickness) solid var(--color-walnut);
|
||||
box-sizing: border-box;
|
||||
transition: left 0.25s ease-in-out;
|
||||
left: calc(-1 * (300px + 10px));
|
||||
width: 300px;
|
||||
left: calc(-1 * (var(--aside-width) + 10px));
|
||||
width: var(--aside-width);
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
@@ -120,10 +128,9 @@
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
padding-right: var(--page-edge-padding);
|
||||
padding-bottom: calc(-120 * var(--variable-px));
|
||||
|
||||
ul:first-of-type {
|
||||
margin-top: calc(120 * var(--variable-px));
|
||||
margin-top: calc(120 * var(--variable-px) + var(--align-with-article-title-letter-cap-heights));
|
||||
}
|
||||
|
||||
.close-chapter-selection {
|
||||
@@ -145,54 +152,91 @@
|
||||
display: flex;
|
||||
white-space: nowrap;
|
||||
|
||||
.open-chapter-selection {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
height: calc(var(--font-size-heading-h1) * 1.25);
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
margin-left: -6px;
|
||||
margin-right: calc(20px - 6px);
|
||||
}
|
||||
|
||||
h1 {
|
||||
white-space: normal;
|
||||
display: flex;
|
||||
|
||||
.open-chapter-selection {
|
||||
display: inline-block;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
margin-left: -6px;
|
||||
margin-right: calc(20px - 6px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
aside {
|
||||
position: sticky;
|
||||
align-self: flex-start;
|
||||
overflow-y: auto;
|
||||
top: 0;
|
||||
width: 300px;
|
||||
width: var(--aside-width);
|
||||
max-height: 100vh;
|
||||
margin-top: -40px;
|
||||
flex: 0 1 auto;
|
||||
|
||||
li {
|
||||
margin-top: 0.5em;
|
||||
|
||||
a {
|
||||
color: var(--color-walnut);
|
||||
|
||||
&:hover {
|
||||
color: var(--color-crimson);
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.title) a {
|
||||
text-decoration: none;
|
||||
&.contents > ul,
|
||||
.wrapper-inner > ul {
|
||||
&:first-of-type {
|
||||
margin-top: calc(40px + var(--align-with-article-title-letter-cap-heights));
|
||||
}
|
||||
|
||||
&.title,
|
||||
&.chapter {
|
||||
font-weight: bold;
|
||||
&:last-of-type {
|
||||
margin-bottom: calc(40 * var(--variable-px));
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
margin-top: 40px;
|
||||
|
||||
ul {
|
||||
margin-top: 0;
|
||||
margin-left: 1em;
|
||||
|
||||
ul {
|
||||
margin-left: 2em;
|
||||
|
||||
ul {
|
||||
margin-left: 3em;
|
||||
|
||||
ul {
|
||||
margin-left: 4em;
|
||||
|
||||
ul {
|
||||
margin-left: 5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 0.5em;
|
||||
|
||||
a {
|
||||
color: var(--color-walnut);
|
||||
|
||||
&:hover {
|
||||
color: var(--color-crimson);
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.title) a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.title,
|
||||
&.chapter {
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.chapters {
|
||||
li.active,
|
||||
@@ -227,33 +271,5 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
margin-top: 40px;
|
||||
|
||||
ul {
|
||||
margin-top: 0;
|
||||
margin-left: 1em;
|
||||
|
||||
ul {
|
||||
margin-left: 2em;
|
||||
|
||||
ul {
|
||||
margin-left: 3em;
|
||||
|
||||
ul {
|
||||
margin-left: 4em;
|
||||
|
||||
ul {
|
||||
margin-left: 5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,51 @@
|
||||
#fundraising {
|
||||
background-color: var(--color-seaside);
|
||||
color: rgba(0, 0, 0, 0.9);
|
||||
// #fundraising {
|
||||
// background-color: var(--color-seaside);
|
||||
// color: rgba(0, 0, 0, 0.9);
|
||||
|
||||
.graphic {
|
||||
max-width: 400px;
|
||||
}
|
||||
}
|
||||
// .graphic {
|
||||
// max-width: 400px;
|
||||
// }
|
||||
|
||||
// .fundraising {
|
||||
// margin-top: 20px;
|
||||
// width: 100%;
|
||||
|
||||
// .fundraising-bar {
|
||||
// width: 100%;
|
||||
// height: 32px;
|
||||
// border-radius: 10000px;
|
||||
// background: var(--color-fog);
|
||||
// overflow: hidden;
|
||||
|
||||
// .fundraising-bar-progress {
|
||||
// width: calc(var(--fundraising-percent) - (4px * 2) - (32px - 4px * 2));
|
||||
// padding-left: calc(32px - 4px * 2);
|
||||
// height: calc(100% - 4px * 2);
|
||||
// margin: 4px;
|
||||
// border-radius: 10000px;
|
||||
// background: linear-gradient(to right, var(--color-navy), var(--color-crimson));
|
||||
// transition: opacity 1s, width 2s;
|
||||
// }
|
||||
// }
|
||||
|
||||
// .goal-metrics {
|
||||
// display: flex;
|
||||
// justify-content: space-between;
|
||||
// font-weight: 800;
|
||||
// margin-top: 8px;
|
||||
// margin-left: 20px;
|
||||
// width: calc(100% - 40px);
|
||||
|
||||
// > span {
|
||||
// transition: opacity 1s;
|
||||
// }
|
||||
// }
|
||||
|
||||
// &.fundraising.loading {
|
||||
// .goal-metrics > span,
|
||||
// .fundraising-bar .fundraising-bar-progress {
|
||||
// opacity: 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -8,12 +8,13 @@
|
||||
margin-top: 20px;
|
||||
padding: 0 16px;
|
||||
|
||||
.informational-group {
|
||||
.feature-icons {
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
width: 100%;
|
||||
margin-bottom: 0;
|
||||
|
||||
.informational {
|
||||
.feature-icon {
|
||||
position: relative;
|
||||
padding-left: calc(16px + 8px);
|
||||
|
||||
|
||||
+277
-205
@@ -4,69 +4,6 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
// ▛ LOGO ▜
|
||||
#logo {
|
||||
display: flex;
|
||||
|
||||
img {
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
max-height: 240px;
|
||||
}
|
||||
}
|
||||
// ▙ LOGO ▟
|
||||
|
||||
.pencil-texture {
|
||||
position: absolute;
|
||||
--remaining-width-to-full: calc(var(--max-width-plus-padding) - min(calc(100vw - 100px), var(--max-width-plus-padding)));
|
||||
left: Max(calc(-1 * var(--remaining-width-to-full)), -50px);
|
||||
width: 100px;
|
||||
mix-blend-mode: multiply;
|
||||
|
||||
@media screen and (max-width: 1000px) {
|
||||
width: 40px;
|
||||
top: 400px;
|
||||
left: -10px;
|
||||
}
|
||||
}
|
||||
|
||||
// ▛ QUICK LINKS ▜
|
||||
#quick-links {
|
||||
margin-top: calc(80 * var(--variable-px));
|
||||
display: flex;
|
||||
gap: calc(var(--font-size-link) * 0.8);
|
||||
flex-wrap: wrap;
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
gap: calc(var(--font-size-link) * 0.8);
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
|
||||
img {
|
||||
width: calc(var(--font-size-link) * 2);
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
// ▙ QUICK LINKS ▟
|
||||
|
||||
// ▛ TAGLINE ▜
|
||||
#tagline {
|
||||
h1 {
|
||||
font-size: var(--font-size-intro-heading);
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: var(--font-size-intro-body);
|
||||
|
||||
@media screen and (max-width: 1400px) {
|
||||
max-width: unset !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
// ▙ TAGLINE ▟
|
||||
|
||||
.hexagons {
|
||||
max-width: var(--max-width);
|
||||
margin: auto;
|
||||
@@ -87,18 +24,109 @@
|
||||
left: 0;
|
||||
transform: translate(-50%) rotate(347deg);
|
||||
opacity: 0.25;
|
||||
width: Max(1000px, Min(1400px, calc(100vw * 1400 / 1920)));
|
||||
--hexagon-max-size: 1100;
|
||||
--mexagon-min-size: 900;
|
||||
--hexagon-shrink-start-viewport-width: 1640;
|
||||
width: Max(
|
||||
Min(
|
||||
calc(var(--hexagon-max-size) * 1px),
|
||||
calc(var(--hexagon-max-size) / var(--hexagon-shrink-start-viewport-width) * 100vw)
|
||||
),
|
||||
calc(var(--mexagon-min-size) * 1px)
|
||||
);
|
||||
height: auto;
|
||||
|
||||
polygon {
|
||||
fill: none;
|
||||
stroke: gray;
|
||||
stroke: #aaa;
|
||||
stroke-width: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ▛ LOGO ▜
|
||||
#logo {
|
||||
img {
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
max-height: 160px;
|
||||
}
|
||||
}
|
||||
// ▙ LOGO ▟
|
||||
|
||||
// ▛ TAGLINE ▜
|
||||
#tagline {
|
||||
p {
|
||||
font-size: calc(1rem * 10 / 9);
|
||||
|
||||
@media screen and (max-width: 1400px) {
|
||||
max-width: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
// ▙ TAGLINE ▟
|
||||
|
||||
// ▛ QUICK LINKS ▜
|
||||
#quick-links {
|
||||
margin-top: calc(40 * var(--variable-px));
|
||||
gap: calc(var(--font-size-link) * 0.8) calc(var(--font-size-link) * 0.8 * 2);
|
||||
|
||||
&,
|
||||
.social-media-buttons,
|
||||
.call-to-action-buttons {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.social-media-buttons,
|
||||
.call-to-action-buttons {
|
||||
gap: calc(var(--font-size-link) * 0.8);
|
||||
}
|
||||
|
||||
.social-media-buttons img {
|
||||
width: calc(var(--font-size-link) * 2);
|
||||
display: block;
|
||||
}
|
||||
|
||||
.call-to-action-buttons .github-stars {
|
||||
display: inline-flex;
|
||||
padding-left: calc(var(--font-size-link) / 2);
|
||||
padding-right: 0;
|
||||
|
||||
img {
|
||||
margin: auto;
|
||||
width: calc(var(--font-size-link) * 4 / 3);
|
||||
height: calc(var(--font-size-link) * 4 / 3);
|
||||
}
|
||||
|
||||
span {
|
||||
margin: auto calc(var(--font-size-link) / 2);
|
||||
}
|
||||
|
||||
div {
|
||||
display: inline-flex;
|
||||
background: var(--color-fog);
|
||||
padding: 0 calc(var(--font-size-link) / 2);
|
||||
border-left: var(--border-thickness) solid var(--color-crimson);
|
||||
align-items: center;
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Hide all these buttons while waiting for the number of stars to be fetched.
|
||||
// Otherwise the width of the star count will cause a jump upon loading with the layout of all subsequent buttons changing.
|
||||
// If it fails to load, the div will be removed, allowing the buttons to be displayed (with the star count omitted).
|
||||
&:has(.github-stars div:empty) {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
// ▙ QUICK LINKS ▟
|
||||
|
||||
// ▛ SCREENSHOTS ▜
|
||||
// ▙ SCREENSHOTS ▟
|
||||
|
||||
@@ -106,144 +134,152 @@
|
||||
// ▙ TODAY AND TOMORROW ▟
|
||||
|
||||
// ▛ DISCIPLINES ▜
|
||||
#disciplines .section {
|
||||
#disciplines .block {
|
||||
align-items: center;
|
||||
|
||||
.informational-group .informational {
|
||||
.feature-icons .feature-icon {
|
||||
margin-top: 40px;
|
||||
}
|
||||
}
|
||||
// ▙ DISCIPLINES ▟
|
||||
|
||||
// ▛ COMMUNITY ▜
|
||||
#community {
|
||||
// ▛ NEWSLETTER ▜
|
||||
#newsletter {
|
||||
background-color: var(--color-mustard);
|
||||
position: relative;
|
||||
|
||||
#newsletter {
|
||||
#newsletter-success {
|
||||
background: var(--color-crimson);
|
||||
margin-top: 40px;
|
||||
padding: 40px;
|
||||
width: 100%;
|
||||
color: var(--color-fog);
|
||||
box-sizing: border-box;
|
||||
#newsletter-success {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
&:not(:target) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#newsletter-success:target ~ form {
|
||||
&:not(:target) ~ .feature-box-inner .diptych .newsletter-success,
|
||||
&:target ~ .feature-box-inner .diptych form {
|
||||
display: none;
|
||||
}
|
||||
|
||||
form {
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.same-line {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
flex: 100000 1 0;
|
||||
flex-wrap: wrap;
|
||||
min-width: Min(100%, calc(240px + 20px + 240px));
|
||||
|
||||
div {
|
||||
min-height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
--input-focus-color: var(--color-ale);
|
||||
|
||||
&.name {
|
||||
flex: 1 0 0;
|
||||
min-width: 240px;
|
||||
}
|
||||
|
||||
&.phone {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.email {
|
||||
flex: 1 0 0;
|
||||
min-width: 240px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
&.name,
|
||||
&.email {
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.submit {
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
|
||||
label,
|
||||
input {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: var(--font-size-link);
|
||||
font-weight: 800;
|
||||
margin-bottom: 10px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
input:not([type="submit"]) {
|
||||
flex: 0 0 auto;
|
||||
width: 100%;
|
||||
height: calc(var(--font-size-link) * 2);
|
||||
font-size: calc(var(--font-size-link) * 0.9);
|
||||
color: inherit;
|
||||
border: var(--border-thickness) solid currentColor;
|
||||
border-radius: 0; // Required for iOS Safari
|
||||
outline: none;
|
||||
margin: 0;
|
||||
padding: 0 var(--font-size-link);
|
||||
font-family: inherit;
|
||||
font-weight: inherit;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:focus {
|
||||
border-color: var(--input-focus-color);
|
||||
}
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
background: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
border-radius: 0; // Required for iOS Safari
|
||||
|
||||
&:focus {
|
||||
border-color: var(--input-focus-color);
|
||||
color: var(--input-focus-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#social .social-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 20px 80px;
|
||||
margin-top: 40px;
|
||||
.diptych {
|
||||
justify-content: center;
|
||||
|
||||
.column {
|
||||
.newsletter-signup {
|
||||
.newsletter-success {
|
||||
margin-top: 40px;
|
||||
padding: 40px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
background: var(--color-ale);
|
||||
border: 2px solid var(--color-navy);
|
||||
}
|
||||
|
||||
form {
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.same-line {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
flex: 100000 1 0;
|
||||
flex-wrap: wrap;
|
||||
min-width: Min(100%, 700px);
|
||||
|
||||
div {
|
||||
min-height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.input-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
--input-focus-color: var(--color-ale);
|
||||
|
||||
&.name {
|
||||
flex: 1 0 0;
|
||||
min-width: 240px;
|
||||
}
|
||||
|
||||
&.phone {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.email {
|
||||
flex: 1 0 0;
|
||||
min-width: 240px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
&.name,
|
||||
&.email {
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.submit {
|
||||
flex: 1 0 auto;
|
||||
|
||||
.button {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
label,
|
||||
input {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: var(--font-size-link);
|
||||
font-weight: 800;
|
||||
margin-bottom: 10px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
input:not([type="submit"]) {
|
||||
flex: 0 0 auto;
|
||||
width: 100%;
|
||||
height: calc(var(--font-size-link) * 2);
|
||||
font-size: calc(var(--font-size-link) * 0.9);
|
||||
color: inherit;
|
||||
border: var(--border-thickness) solid currentColor;
|
||||
border-radius: 0; // Required for iOS Safari
|
||||
outline: none;
|
||||
margin: 0;
|
||||
padding: 0 var(--font-size-link);
|
||||
font-family: inherit;
|
||||
font-weight: inherit;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:focus {
|
||||
border-color: var(--input-focus-color);
|
||||
}
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
background: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
border-radius: 0; // Required for iOS Safari
|
||||
|
||||
&:focus {
|
||||
border-color: var(--input-focus-color);
|
||||
color: var(--input-focus-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.social-media-links {
|
||||
display: flex;
|
||||
flex: 0 1 fit-content;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 20px 80px;
|
||||
min-width: 0;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
@@ -263,39 +299,39 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// ▙ COMMUNITY ▟
|
||||
// ▙ NEWSLETTER ▟
|
||||
|
||||
// ▛ JUMP RIGHT IN ▜
|
||||
// #jump-right-in {
|
||||
// max-width: 1000px;
|
||||
|
||||
// .section {
|
||||
// .block {
|
||||
// align-items: center;
|
||||
// }
|
||||
// }
|
||||
// ▙ JUMP RIGHT IN ▟
|
||||
|
||||
// ▛ PROCEDURALISM ▜
|
||||
#proceduralism .section,
|
||||
#proceduralism-demo .section,
|
||||
#proceduralism-features .section {
|
||||
#proceduralism .block,
|
||||
#proceduralism-demo .block,
|
||||
#proceduralism-features .block {
|
||||
align-items: center;
|
||||
}
|
||||
// ▙ PROCEDURALISM ▟
|
||||
|
||||
// ▛ FUNDRAISING ▜
|
||||
#fundraising {
|
||||
background-color: var(--color-cove);
|
||||
// ▛ DONATE ▜
|
||||
#donate {
|
||||
background-color: var(--color-lilac);
|
||||
|
||||
.graphic {
|
||||
max-width: 400px;
|
||||
}
|
||||
}
|
||||
// ▙ FUNDRAISING ▟
|
||||
// ▙ DONATE ▟
|
||||
|
||||
// ▛ VECTOR ART ▜
|
||||
#vector-art {
|
||||
.section {
|
||||
.block {
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
@@ -303,7 +339,7 @@
|
||||
|
||||
// ▛ IMAGINATE ▜
|
||||
// #imaginate {
|
||||
// > .section {
|
||||
// > .block {
|
||||
// align-items: center;
|
||||
|
||||
// h1 {
|
||||
@@ -348,7 +384,7 @@
|
||||
// > .diptych {
|
||||
// margin-top: calc(80 * var(--variable-px));
|
||||
|
||||
// .section {
|
||||
// .block {
|
||||
// align-items: center;
|
||||
|
||||
// h2 {
|
||||
@@ -377,13 +413,49 @@
|
||||
}
|
||||
// ▙ DEMO VIDEO ▟
|
||||
|
||||
// ▛ GET INVOLVED ▜
|
||||
#get-involved-box {
|
||||
background-color: var(--color-sage);
|
||||
// ▛ RECENT NEWS ▜
|
||||
#recent-news {
|
||||
background-color: var(--color-walnut);
|
||||
color: var(--color-white);
|
||||
|
||||
a {
|
||||
color: var(--color-mustard);
|
||||
}
|
||||
|
||||
.graphic img {
|
||||
mix-blend-mode: hard-light;
|
||||
.banner img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.headline a {
|
||||
text-decoration: none;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.summary {
|
||||
margin: 20px 0;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
text-align: justify;
|
||||
-webkit-hyphens: auto;
|
||||
hyphens: auto;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 6;
|
||||
|
||||
// Safari workaround: https://stackoverflow.com/a/72170897/775283
|
||||
// But there remains an issue where the ellipsis is rendered inside the text. There doesn't appear to be a fix, or even a way to disable the ellipsis in Safari.
|
||||
p {
|
||||
display: inline;
|
||||
|
||||
&::after {
|
||||
content: "\A\A"; // Double new line
|
||||
white-space: pre;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// ▙ GET INVOLVED ▟
|
||||
|
||||
// ▙ RECENT NEWS ▟
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
.feature-box-inner {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 80px 160px;
|
||||
|
||||
+18
-21
@@ -1,28 +1,25 @@
|
||||
.creative-contributions .info-box {
|
||||
&:nth-of-type(1) {
|
||||
background-color: var(--color-seaside);
|
||||
}
|
||||
|
||||
&:nth-of-type(2) {
|
||||
background-color: var(--color-cove);
|
||||
}
|
||||
.code-contributions,
|
||||
.creative-contributions {
|
||||
gap: 0 calc(80* var(--variable-px));
|
||||
}
|
||||
|
||||
.code-contributions .info-box {
|
||||
&:nth-of-type(1) {
|
||||
background-color: var(--color-mustard);
|
||||
}
|
||||
|
||||
&:nth-of-type(2) {
|
||||
background-color: var(--color-ale);
|
||||
}
|
||||
background-color: var(--color-seaside);
|
||||
}
|
||||
|
||||
.creative-contributions,
|
||||
.code-contributions {
|
||||
.button.button.button {
|
||||
height: auto;
|
||||
text-align: left;
|
||||
white-space: normal;
|
||||
.creative-contributions .info-box {
|
||||
background-color: var(--color-lemon);
|
||||
}
|
||||
|
||||
.info-box {
|
||||
margin-top: calc(40 * var(--variable-px));
|
||||
|
||||
> img:first-child,
|
||||
> a:first-child > img:only-child {
|
||||
width: calc(100% + 2 * 80 * var(--variable-px));
|
||||
margin-left: calc(-80 * var(--variable-px));
|
||||
margin-top: calc(-80 * var(--variable-px));
|
||||
margin-bottom: calc(40 * var(--variable-px));
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user