Skip to content

Commit f3312e2

Browse files
committed
fix: add extend style utilities, remove CSS redundancy and optimize for minification
1 parent 6e5fb31 commit f3312e2

File tree

3 files changed

+215
-297
lines changed

3 files changed

+215
-297
lines changed

docs/resources.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ A collection of resources that I have found useful while working on this project
1313
- [Google TypeScript Style Guide](https://google.github.io/styleguide/tsguide.html) - The TypeScript style guide used at Google.
1414
- [Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html) - The HTML/CSS style guide used at Google.
1515
- [How to Make Repeating Border Images](https://css-tricks.com/how-to-make-repeating-border-images/) - A guide on how to make repeating border images in CSS.
16+
- [CSS Flexbox Layout Guide](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) - A comprehensive guide to CSS flexbox layout.

src/lib/styles/extends.pcss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
%flex-column {
2+
display: flex;
3+
flex-flow: column nowrap;
4+
justify-content: flex-start;
5+
align-items: stretch;
6+
align-content: normal;
7+
}
8+
9+
%flex-row {
10+
display: flex;
11+
flex-flow: row nowrap;
12+
justify-content: flex-start;
13+
align-items: stretch;
14+
align-content: normal;
15+
}
16+
17+
%flex-center {
18+
display: flex;
19+
justify-content: center;
20+
align-items: center;
21+
}
22+
23+
%no-space {
24+
margin: 0;
25+
padding: 0;
26+
}

0 commit comments

Comments
 (0)