Skip to content

Commit

Permalink
MOar
Browse files Browse the repository at this point in the history
  • Loading branch information
powerbuoy committed Feb 27, 2024
1 parent dd134cc commit d679068
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
2 changes: 2 additions & 0 deletions inc/module-class.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php function sleek_module_class ($styles) {
$classes[] = 'section';

\Sleek\Utils\log($styles);

return implode(' ', $classes);
}
4 changes: 0 additions & 4 deletions modules/invise-example-module/style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#invise-example-module {
> .bg {
display: none;
}

> div {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
Expand Down
44 changes: 44 additions & 0 deletions src/sass/components/bg.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.bg--dark {
--text-color: white;
--heading-color: white;
--link-color: white;

background-color: black;
color: var(--text-color);
}

// Media
.bg--media,
.bg--media-light {
position: relative;

> figure.bg {
position: absolute;
inset: 0;
z-index: -1;

img,
video {
object-fit: cover;
object-position: center center;
}
}
}

// Dark media
.bg--media {
--text-color: white;
--heading-color: white;
--link-color: white;

color: var(--text-color);
}

// Light media
.bg--media-light {
--text-color: black;
--heading-color: black;
--link-color: black;

color: var(--text-color);
}

0 comments on commit d679068

Please sign in to comment.