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

update responsivnes #1000

Merged
merged 1 commit into from
Sep 19, 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
2 changes: 1 addition & 1 deletion components/toggle-panel/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
background: #b75400;
border-radius: 2px;
padding: 15px 10px;
height: 54px;
min-height: 54px;
display: flex;
align-items: center;
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions design-v2/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$breakpoint-sm: 46rem;
$breakpoint-md: 48rem;
$breakpoint-lg: 80rem;
$status-icon-font-color: var(--white);
$status-icon-background: #8bc34a;
Expand Down
46 changes: 45 additions & 1 deletion design-v2/components/membership-table/styles.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import 'design-v2/variables';
$table-border: 1px solid var(--gray-400);
$checkbox-success-color: #8bc34a;
$checkbox-danger-color: rgba(255, 95, 82, 1);
Expand Down Expand Up @@ -66,10 +67,17 @@ $card-header-color: #fef5ef;
padding: 0.5rem;
font-weight: 600;
background-color: var(--gray-100);
@media (max-width: $breakpoint-sm) {
font-size: 10px;
}
}
&-padding {
padding: 1rem;
font-weight: 400;
@media (max-width: $breakpoint-sm) {
padding: 6px;
width: 85px;
}
}
&-description {
padding: 1.5rem;
Expand All @@ -85,7 +93,9 @@ $card-header-color: #fef5ef;
font-weight: 400;
text-align: center;
background-color: var(--gray-100);

@media (max-width: $breakpoint-sm) {
padding: 2px;
}
&-active {
background-color: #fae2d2;
}
Expand All @@ -96,6 +106,9 @@ $card-header-color: #fef5ef;
color: var(--primary);
font-weight: 400;
font-size: 0.9rem;
@media (max-width: $breakpoint-sm) {
font-size: 10px;
}
}

&-status {
Expand All @@ -120,12 +133,18 @@ $card-header-color: #fef5ef;
}
&-title {
font-size: 1.2rem;
@media (max-width: $breakpoint-sm) {
font-size: 10px;
}
a {
color: var(--black);
text-decoration: underline;
}
&-details {
margin-bottom: 1rem;
@media (max-width: $breakpoint-sm) {
margin-bottom: 5px;
}
}
}
}
Expand All @@ -151,6 +170,16 @@ $card-header-color: #fef5ef;
border: solid var(--white);
border-width: 0 2px 2px 0;
transform: rotate(45deg);
@media (max-width: $breakpoint-sm) {
width: 6px;
height: 10px;
left: 6px;
top: 2px;
}
}
@media (max-width: $breakpoint-sm) {
width: 1rem;
height: 1rem;
}
}

Expand All @@ -174,18 +203,33 @@ $card-header-color: #fef5ef;
height: 2px;
background-color: white;
top: 11px;
@media (max-width: $breakpoint-sm) {
width: 10px;
height: 2px;
top: 7px;
}
}
&::before {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
left: 2px;
@media (max-width: $breakpoint-sm) {
left: 3px;
}
}
&::after {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
transform: rotate(-45deg);
right: 2px;
@media (max-width: $breakpoint-sm) {
left: 3px;
}
}
@media (max-width: $breakpoint-sm) {
width: 1rem;
height: 1rem;
}
}

Expand Down
26 changes: 25 additions & 1 deletion pages/about/about.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '~components/bootstrap/core';
@import 'design-v2/variables';

.related {
@include section-skew-left($gray-100);
Expand All @@ -18,8 +19,14 @@
display: flex;
justify-content: center;
align-items: center;
@media (max-width: $breakpoint-sm) {
width: 320px;
}
.governance-image {
margin: 42px 0 32px 0;
@media (max-width: $breakpoint-sm) {
width: 100%;
}
}
}
}
Expand Down Expand Up @@ -199,12 +206,18 @@
.researchSection {
padding: 0 0 44px 0;
grid-template-columns: 1fr 100% 1fr;
.research-item {
width: 100%;
max-width: unset;
}
.always-open {
margin-top: 24px;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
@media (max-width: $breakpoint-sm) {
flex-wrap: wrap;
}
}
.toggle-panel-title {
font-style: normal;
Expand Down Expand Up @@ -290,6 +303,9 @@

.toggle-item-small {
width: 48%;
@media (max-width: $breakpoint-sm) {
width: 100%;
}
}

.footer-wrapper {
Expand All @@ -299,7 +315,15 @@
background: #f5f5f5;
padding: 24px;
margin-top: 24px;
width: 100%;
max-width: unset;
@media (max-width: $breakpoint-sm) {
flex-wrap: wrap;
}
.footer-text {
margin-bottom: 0;
@media (max-width: $breakpoint-sm) {
margin-bottom: 0.5rem;
}
}
}
2 changes: 1 addition & 1 deletion pages/about/research-outputs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const ResearchOutputsSection = ({
...restProps
}) => (
<Section id={id} {...restProps} className={styles.researchSection}>
<Content>
<Content className={styles.researchItem}>
<TogglePanel
id={title}
title={title}
Expand Down
7 changes: 7 additions & 0 deletions pages/governance/community.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
display: flex;
align-items: center;
justify-content: center;
@media (max-width: $breakpoint-sm) {
width: 100%;
flex: unset;
}
}

.header {
Expand All @@ -44,5 +48,8 @@
margin-bottom: 5px;
}
}
@media (max-width: $breakpoint-lg) {
margin-left: 1.5rem;
}
}
}
14 changes: 14 additions & 0 deletions templates/governance/advisory/advisory.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import 'design-v2/variables';
.organisation-wrapper {
display: flex;
align-items: center;
Expand All @@ -11,3 +12,16 @@
justify-content: center;
}
}

.supporters {
@media (max-width: $breakpoint-sm) {
td {
font-size: 10px;
}
th {
button {
font-size: 10px;
}
}
}
}
18 changes: 18 additions & 0 deletions templates/governance/supporters/supporters.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import 'design-v2/variables';
$grid-responsive-for-sections: repeat(auto-fit, minmax(300px, 1fr));
$grid-responsive-for-items: repeat(auto-fit, minmax(500px, 1fr));

Expand Down Expand Up @@ -46,6 +47,9 @@ $grid-responsive-for-items: repeat(auto-fit, minmax(500px, 1fr));
grid-gap: 3rem;
grid-template-columns: $grid-responsive-for-items;
margin-top: 48px;
@media (max-width: $breakpoint-sm) {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.how-it-works-description {
background: #f5f5f5;
padding: 16px;
Expand Down Expand Up @@ -122,6 +126,20 @@ $grid-responsive-for-items: repeat(auto-fit, minmax(500px, 1fr));
box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.1),
inset 0px 1px 2px rgba(0, 0, 0, 0.05);
}
@media (max-width: $breakpoint-sm) {
width: 40px;
height: 40px;
}
}
td {
@media (max-width: $breakpoint-sm) {
padding: 8px;
}
}
}
td {
@media (max-width: $breakpoint-sm) {
padding: 8px;
}
}
&:hover {
Expand Down
2 changes: 1 addition & 1 deletion templates/sponsorships/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const renderDiscountsRows = () =>
))

const SponsorshipPageTemplate = ({ data }) => (
<Layout>
<Layout className={styles.sponsorshipMainWrapper}>
<Section id="metadata" className={styles.header}>
<div>
<h2 className={styles.title}>{data.header.title}</h2>
Expand Down
17 changes: 16 additions & 1 deletion templates/sponsorships/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ $grid-responsive-for-cards: repeat(auto-fit, minmax(200px, 1fr));

.itemGroup {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
.groupItem {
flex: 1;
Expand All @@ -122,6 +121,10 @@ $grid-responsive-for-cards: repeat(auto-fit, minmax(200px, 1fr));
flex: auto;
}
}
@media (max-width: $breakpoint-md) {
flex-wrap: wrap;
margin-top: 1rem;
}
}

.table {
Expand All @@ -140,3 +143,15 @@ $grid-responsive-for-cards: repeat(auto-fit, minmax(200px, 1fr));
.discount-section {
padding: 6px 0 54px 0;
}

.sponsorship-main-wrapper {
.logo-container,
.image-wrapper {
@media (max-width: $breakpoint-sm) {
width: 320px;
img {
width: 100%;
}
}
}
}
Loading