Skip to content

Commit

Permalink
Used relative sizes for padding instead of px for FAQ and HeadingCard
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWearsHat committed Oct 18, 2024
1 parent e92e447 commit cc8bb7c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions apps/site/src/app/(home)/sections/FAQ/FAQ.module.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@use "zothacks-theme" as theme;
@use "bootstrap-utils" as utils;

$mobile-item-padding-y: 26px;
$mobile-item-padding-x: 32px;
$mobile-item-padding-y: 1.6rem;
$mobile-item-padding-x: 2rem;

$item-padding-y: 32px;
$item-padding-x: 48px;
$item-padding-y: 2rem;
$item-padding-x: 3rem;

.container {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@use "zothacks-theme" as theme;
@use "bootstrap-utils" as utils;

$mobile-item-padding-y: 26px;
$mobile-item-padding-x: 32px;
$mobile-item-padding-y: 1.6rem;
$mobile-item-padding-x: 2rem;

$item-padding-y: 32px;
$item-padding-x: 48px;
$item-padding-y: 2rem;
$item-padding-x: 3rem;

$heading-font-size: 28px;

Expand All @@ -22,7 +22,7 @@ $heading-font-size: 28px;
}

.bang {
margin-right: $item-padding-x - 7;
margin-right: $mobile-item-padding-x - 0.4375;
}

.title {
Expand All @@ -40,4 +40,8 @@ $heading-font-size: 28px;
.card {
padding: $item-padding-y $item-padding-x;
}

.bang {
margin-right: $item-padding-x - 0.4375;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ async function ApiResources() {
/>

<div className={styles["bottom-spacer"] + " row"}>
{/* Sticky Notes */}
{resources.map(
({ _id, title, description, link, logo, background }) => (
<div className={styles.column + " col"} key={_id}>
Expand Down

0 comments on commit cc8bb7c

Please sign in to comment.