Skip to content

Commit

Permalink
chore: add prettier
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Steiner <[email protected]>
  • Loading branch information
kosmoz committed Feb 28, 2024
1 parent ea9839a commit 7c847cc
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 16 deletions.
3 changes: 1 addition & 2 deletions index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// 4. Include any default map overrides here

$custom-colors: (
"accent": $accent
"accent": $accent,
);
$theme-colors: map-merge($theme-colors, $custom-colors);

Expand Down Expand Up @@ -70,7 +70,6 @@ $theme-colors: map-merge($theme-colors, $custom-colors);
@import "scss/components/scroll-container";
@import "scss/components/utilities";


// 9. Import fonts
@import "@fontsource/inter/latin-300.css";
@import "@fontsource/inter/latin-400.css";
Expand Down
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@
"bootstrap": "5.3.2"
},
"devDependencies": {
"release-it": "17.0.0",
"bootstrap-icons": "1.11.3",
"esbuild": "0.19.10",
"sass": "1.69.7",
"bootstrap-icons": "1.11.3"
"prettier": "3.2.5",
"release-it": "17.0.0",
"sass": "1.69.7"
},
"volta": {
"node": "20.10.0"
Expand Down
2 changes: 1 addition & 1 deletion scss/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Drop shadow to be used on cards and similar elements
@mixin card-shadow() {
box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
}
2 changes: 1 addition & 1 deletion scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ $navbar-dark-active-color: $gk-fg-dark;

$btn-font-weight: 700;
$btn-padding-x: 1.5rem;
$btn-padding-y: .75rem;
$btn-padding-y: 0.75rem;
$btn-padding-x-sm: 1.5rem;
$btn-padding-y-sm: 0.375rem;

Expand Down
2 changes: 1 addition & 1 deletion scss/components/_anminations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

.flipped-x {
transform: rotateX(180deg);
}
}
7 changes: 5 additions & 2 deletions scss/components/_card-elevated.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#card-elevated-base {
@extend .rounded-2;
transition: box-shadow 200ms ease-in-out, transform 200ms ease-in-out, background-color 200ms ease-in-out;
transition:
box-shadow 200ms ease-in-out,
transform 200ms ease-in-out,
background-color 200ms ease-in-out;
}

.card-elevated {
Expand Down Expand Up @@ -29,4 +32,4 @@

a.card-elevated {
text-decoration: none;
}
}
2 changes: 1 addition & 1 deletion scss/components/_cta.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
.cta-#{$size} {
@extend .btn-#{$size};
}
}
}
4 changes: 2 additions & 2 deletions scss/components/_list.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ul:not(.dropdown-menu, .navbar-nav, .list-unstyled, .list-inline, .nav) {
list-style: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzFfMikiPgo8Y2lyY2xlIGN4PSI2IiBjeT0iNiIgcj0iNiIgZmlsbD0iIzAwQjVFQiIgZmlsbC1vcGFjaXR5PSIwLjE1Ii8+CjxjaXJjbGUgY3g9IjYiIGN5PSI2IiByPSIzIiBmaWxsPSIjMDBCNUVCIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMV8yIj4KPHJlY3Qgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=');
list-style: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzFfMikiPgo8Y2lyY2xlIGN4PSI2IiBjeT0iNiIgcj0iNiIgZmlsbD0iIzAwQjVFQiIgZmlsbC1vcGFjaXR5PSIwLjE1Ii8+CjxjaXJjbGUgY3g9IjYiIGN5PSI2IiByPSIzIiBmaWxsPSIjMDBCNUVCIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMV8yIj4KPHJlY3Qgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=");

&,
ol {
padding-inline-start: 32px;

&>li {
& > li {
padding-inline-start: 8px;
}
}
Expand Down
2 changes: 1 addition & 1 deletion scss/components/_scroll-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
.row-scroll {
flex-wrap: nowrap !important;
}
}
}
15 changes: 13 additions & 2 deletions scss/components/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@
.text-justified {
text-align: justify;

h1, h2, h3, h4, h5, h6, li {
h1,
h2,
h3,
h4,
h5,
h6,
li {
text-align: initial;
}
}

h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
a {
padding-inline-start: 0.6rem;
display: none;
Expand Down

0 comments on commit 7c847cc

Please sign in to comment.