Skip to content

Commit

Permalink
Refactor bigbang size strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Aug 1, 2024
1 parent 0acf323 commit ba946af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 35 deletions.
9 changes: 8 additions & 1 deletion src/scss/_bigbang.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@

.bigbang {
//position: absolute;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}

/* Set .bigbang to 100vh,
because body has height 0 by default and
gravity-spot has no size
*/
body > .bigbang {
height: 100vh;
}
4 changes: 0 additions & 4 deletions src/scss/_gravity-spot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@
justify-content: center;
border: none;
}

.bigbang>.gravity-spot {
height: var(--o-force) !important;
}
30 changes: 0 additions & 30 deletions src/scss/_utilities.scss
Original file line number Diff line number Diff line change
@@ -1,35 +1,5 @@
@use './variables' as *;

/* bigbang align utilities*/

.bigbang.at-center>.gravity-spot{
transform: translate(0%, 0%)
}
.bigbang.at-center-left>.gravity-spot{
transform: translate(-50%, 0%)
}
.bigbang.at-center-right>.gravity-spot{
transform: translate(50%, 0%)
}
.bigbang.at-bottom>.gravity-spot{
transform: translate(0%, 50%)
}
.bigbang.at-bottom-left>.gravity-spot{
transform: translate(-50%, 50%)
}
.bigbang.at-bottom-right>.gravity-spot{
transform: translate(50%, 50%)
}
.bigbang.at-top>.gravity-spot{
transform: translate(0%, -50%)
}
.bigbang.at-top-left>.gravity-spot{
transform: translate(-50%, -50%)
}
.bigbang.at-top-right>.gravity-spot{
transform: translate(50%, -50%)
}

/* radial elements aligment utilities */
.at-top-left {
align-items: flex-start !important;
Expand Down

0 comments on commit ba946af

Please sign in to comment.