Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp: Empati #9

Merged
merged 17 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 40 additions & 14 deletions empati-theme/css/scss/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,43 @@
@mixin font-size($sizeValue: 1.6) {
font-size: ($sizeValue * 10) + px;
font-size: $sizeValue + rem;
font-size: ($sizeValue * 10) + px;
font-size: $sizeValue + rem;
}

@mixin font-face($font-name, $file-name, $weight: normal, $style: normal) {
@font-face {
font-family: quote($font-name);
src: url($file-name + '.eot');
src: url($file-name + '.eot?#iefix') format('embedded-opentype'),
url($file-name + '.woff') format('woff'),
url($file-name + '.ttf') format('truetype'),
url($file-name + '.svg##{$font-name}') format('svg');
font-weight: $weight;
font-style: $style;
}
}
@mixin font-face($font-name, $file-name, $weight: normal, $style: normal) {
@font-face {
font-family: quote($font-name);
src: url($file-name + '.eot');
src: url($file-name + '.eot?#iefix') format('embedded-opentype'),
url($file-name + '.woff') format('woff'),
url($file-name + '.ttf') format('truetype'),
url($file-name + '.svg##{$font-name}') format('svg');
font-weight: $weight;
font-style: $style;
}
}

@mixin icon-style($icon-content, $bg-color, $text-color, $z-index) {
&::before {
font-family: "Line Awesome Free";
font-weight: 900;
font-size: 45px;
content: $icon-content;

position: absolute;
left: 0;
top: 0;

display: flex;
align-items: center;
justify-content: center;
flex-direction: column;

width: 100%;
height: 100%;

background: rgba($bg-color, 1);
color: rgba($text-color, 1);

z-index: $z-index;
}
}
7 changes: 7 additions & 0 deletions empati-theme/css/scss/component/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
background-color: rgba(var(--bg-card), 1);
color: rgba(var(--body-text), 1);

&.is-gradient {
mask-image: linear-gradient(to bottom, transparent 2%, black 25%);
mask-size: auto 100%;
mask-repeat: no-repeat;
padding-top: 6rem;
}

&.is-wave {
--mask:radial-gradient(17.61px at 50% 24.50px, #000 99%, #0000 101%) calc(50% - 20px) 0/40px 100%,
radial-gradient(17.61px at 50% -14.5px, #0000 99%, #000 101%) 50% 10px/40px 100% repeat-x;
Expand Down
Loading