Skip to content

Commit 29d14c4

Browse files
authored
Merge pull request #43 from Hyper-Unearthing/lint/add-stylelint-and-configure-zed
lint: add stytleint and configure zed
2 parents 14d622b + 8f490b6 commit 29d14c4

10 files changed

Lines changed: 1622 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ _site
33
.jekyll-cache
44
.jekyll-metadata
55
vendor
6+
node_modules/

.stylelintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["stylelint-config-standard"],
3+
"rules": {
4+
"selector-class-pattern": null
5+
}
6+
}

.zed/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"languages": {
3+
"CSS": {
4+
"tab_size": 2,
5+
"formatter": {
6+
"external": {
7+
"command": "npx",
8+
"arguments": ["prettier", "--stdin-filepath", "{buffer_path}"]
9+
}
10+
},
11+
"format_on_save": "on"
12+
}
13+
}
14+
}

assets/components/default-layout.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
gap: 37px;
1313
}
1414

15-
@media (max-width: 980px) {
15+
@media (width <= 980px) {
1616
.navigation {
1717
--navigation-horizontal-padding: 16px;
18+
1819
gap: 16px;
1920
}
2021
}

assets/components/full-width-layout.css

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.full-width-layout {
22
display: flex;
33
align-items: var(--full-page-section-content-aligment, center);
4+
text-align: center;
45
background-color: var(--section-background-color);
56
padding: var(--full-page-section-padding);
67
flex-direction: column;
@@ -13,14 +14,25 @@
1314
max-width: var(--section-content-max-width, 1130px);
1415
}
1516

16-
.old-way .full-width-layout__content p {
17-
max-width: var(--old-way-copy-max-width, 60%);
17+
.old-way {
18+
background: -webkit-linear-gradient(#090622, #171336);
19+
padding-bottom: 0;
20+
}
21+
22+
.text-gradient {
23+
background: -webkit-linear-gradient(0deg, #feba01, #f22089);
24+
-webkit-background-clip: text;
25+
-webkit-text-fill-color: transparent;
1826
}
1927

2028
.new-way h2 {
2129
margin-bottom: var(--new-way-heading-margin, 48px);
2230
}
2331

32+
.new-way {
33+
background-color: #171336;
34+
}
35+
2436
.new-way img {
2537
margin-bottom: var(--old-way-image-margin, 64px);
2638
width: 100%;
@@ -31,7 +43,7 @@
3143
}
3244

3345
.old-way img {
34-
margin-top: var(--old-way-image-margin, 64px);
46+
margin-top: var(--old-way-image-margin, 30px);
3547
width: 100%;
3648
}
3749

assets/components/marketing-hero.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@media (max-width: 980px) {
1+
@media (width <= 980px) {
22
:root {
33
--hero-content-align: left;
44
--integration-icon-size: 50px;
@@ -19,7 +19,9 @@
1919

2020
.hero {
2121
display: flex;
22+
2223
--section-background-color: var(--royal-900);
24+
2325
padding: var(
2426
--hero-padding,
2527
100px var(--hero-gutter) 100px var(--hero-gutter)

assets/components/posts.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@
2929
.post h4,
3030
.post h5,
3131
.post h6 {
32-
font-family: "Outfit", sans-serif;
32+
font-family: Outfit, sans-serif;
3333
}
3434

3535
.post strong {
3636
font-weight: 600;
3737
}
38+
3839
.post p,
3940
.post ul,
4041
.post ol {
@@ -61,8 +62,9 @@
6162
.post h3 {
6263
font-size: var(--h2-font-size);
6364
text-transform: none;
64-
margin: 50px 0 15px 0;
65+
margin: 50px 0 15px;
6566
}
67+
6668
.post .highlight,
6769
.post blockquote {
6870
background-color: #1e2e5b;

assets/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
--button-secondary-background: #0a0524;
77
--cta-button-font-size: 1.25rem;
88
--cta-button-padding: 16px 24px;
9+
910
/* new variables */
1011
--hero-gutter: 220px;
1112
--full-page-content-gutter: 140px;
1213
--full-page-content-vertical-spacing: 100px;
1314
--full-page-section-padding: var(--full-page-content-vertical-spacing)
1415
var(--full-page-content-gutter) var(--full-page-content-vertical-spacing)
1516
var(--full-page-content-gutter);
16-
1717
--h2-font: var(--bold-font-weight) 14px var(--font-family);
1818
--p-font: var(--light-font-weight) 20px / var(--body-line-height)
1919
var(--font-family);
@@ -69,7 +69,7 @@ p {
6969
color: var(--footer-font-color);
7070
}
7171

72-
@media (max-width: 980px) {
72+
@media (width <= 980px) {
7373
:root {
7474
--hero-gutter: 32px;
7575
--full-page-content-gutter: 32px;

0 commit comments

Comments
 (0)