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

Resize diagram per screen size #133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
26 changes: 18 additions & 8 deletions assets/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,10 @@ table td {
max-width: 1280px;
}

.max-w-full {
max-width: 100%;
}

.flex-none {
flex: none;
}
Expand Down Expand Up @@ -1122,6 +1126,12 @@ table td {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-75 {
--tw-scale-x: .75;
--tw-scale-y: .75;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-y-100 {
--tw-scale-y: 1;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
Expand Down Expand Up @@ -1496,10 +1506,6 @@ table td {
padding-top: 0.25rem;
}

.pt-16 {
padding-top: 4rem;
}

.pt-4 {
padding-top: 1rem;
}
Expand All @@ -1508,6 +1514,10 @@ table td {
padding-bottom: 3rem;
}

.pt-16 {
padding-top: 4rem;
}

.pt-10 {
padding-top: 2.5rem;
}
Expand Down Expand Up @@ -3191,10 +3201,6 @@ body {
padding-right: 3rem;
}

.lg\:pb-16 {
padding-bottom: 4rem;
}

.lg\:pt-12 {
padding-top: 3rem;
}
Expand All @@ -3207,6 +3213,10 @@ body {
padding-bottom: 0px;
}

.lg\:pb-16 {
padding-bottom: 4rem;
}

.lg\:text-left {
text-align: left;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/sections/section-how-it-works.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<h2 class="text-2xl lg:text-4xl text-[#222222]">How It Works</h2>
</header>
<div>
<div class="text-[#222222] md:hidden">
<div class="text-[#222222] md:hidden scale-auto max-w-full h-auto">
{{- partial "svg/diagram-mobile.svg" . }}
</div>
<div class="text-[#222222] hidden md:block">
<div class="text-[#222222] hidden md:block scale-75 max-w-full h-auto">
{{- partial "svg/diagram.svg" . }}
</div>
<div class="text-center text-[#222222] text-sm lg:text-lg leading-normal pt-12 px-8 lg:px-0">
Expand Down