Skip to content

Commit f3cc970

Browse files
committed
improve rendering of information interface and introduction boxes
1 parent 1ddc2a7 commit f3cc970

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

src/containers/Interfaces/DyadCensus/DyadCensus.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ const fadeVariants = {
2626
};
2727

2828
const optionsVariants = {
29-
show: { opacity: 1, transition: { delay: 0.35, duration: 0.25 } },
30-
hide: { opacity: 0, transition: { delay: 0.35, duration: 0.25 } },
29+
show: { opacity: 1, transition: { delay: 0.25, duration: 0.25 } },
30+
hide: { opacity: 0, transition: { delay: 0.25, duration: 0.25 } },
3131
};
3232

3333
const choiceVariants = {
34-
show: { opacity: 1, translateY: '0%', transition: { delay: 0.25, type: 'spring' } },
34+
show: { opacity: 1, translateY: '0%', transition: { delay: 0.15, type: 'spring' } },
3535
hide: { opacity: 0, translateY: '120%' },
3636
};
3737

src/styles/components/_information-interface.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$asset-size-large: 64vh;
22
$asset-size-medium: 32vh;
3-
$asset-size-small: 16vh;
4-
$asset-size-default: 16vh;
3+
$asset-size-small: 17vh;
4+
$asset-size-default: 17vh;
55

66
.information-interface {
77
@include interface-centering;
@@ -12,8 +12,7 @@ $asset-size-default: 16vh;
1212
align-items: center;
1313

1414
&__frame {
15-
width: 80%;
16-
max-width: 50rem;
15+
max-width: 55rem;
1716
}
1817

1918
&__title {
@@ -22,7 +21,7 @@ $asset-size-default: 16vh;
2221

2322
&__items {
2423
margin-top: spacing('large');
25-
max-height: calc($asset-size-large + #{spacing('medium') * 4});
24+
max-height: calc(#{$asset-size-large} + #{spacing('medium') * 4});
2625
overflow: hidden;
2726
}
2827

@@ -63,6 +62,7 @@ $asset-size-default: 16vh;
6362
overflow-y: auto;
6463
height: auto;
6564
max-height: $asset-size-small;
65+
margin-top: 0; // Text paragraphs have their own margin
6666

6767
&.information-interface__item--size-SMALL {
6868
max-height: $asset-size-small;

src/styles/containers/_dyad-census.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@
6565
background: var(--light-background);
6666
border-radius: var(--border-radius);
6767
padding: unit(2) unit(4);
68-
min-width: 50vw;
69-
text-align: center;
68+
max-width: 55rem;
69+
70+
h1 {
71+
text-align: center;
72+
}
7073
}
7174

7275
&__layout {

src/styles/containers/_tie-strength-census.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@
5353
background: var(--light-background);
5454
border-radius: var(--border-radius);
5555
padding: unit(2) unit(4);
56-
min-width: 50vw;
57-
text-align: center;
56+
max-width: 55rem; // Same as ego form for readability
57+
58+
h1 {
59+
text-align: center;
60+
}
5861
}
5962

6063
&__layout {

0 commit comments

Comments
 (0)