Skip to content

Commit 3bc9920

Browse files
author
kateryna.mishchenko
committed
Responsive updates for Maestro
1 parent 6647877 commit 3bc9920

File tree

13 files changed

+136
-41
lines changed

13 files changed

+136
-41
lines changed

client/src/components/Footer/Footer.module.css

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
11
.footerWithContent {
2-
min-height: 300px;
2+
padding: 1rem;
33
margin-top: auto;
44
margin-left: 5%;
55
width: 90%;
6-
height: 33.3%;
7-
86
display: flex;
97
flex-direction: column;
8+
gap: 2rem;
109
background: var(--black-main);
1110
color: var(--grey-main);
1211
border-radius: 20px 20px 0 0;
12+
13+
@media screen and (min-width: 992px) {
14+
min-height: 300px;
15+
height: 33.3%;
16+
padding: 0;
17+
gap: 0;
18+
}
1319
}
1420

1521
.footer {
16-
height: 3.25rem;
1722
margin-top: auto;
1823
margin-left: 5%;
1924
width: 90%;
2025

26+
@media screen and (min-width: 992px) {
27+
height: 3.25rem;
28+
}
29+
2130
display: flex;
2231
flex-direction: column;
2332
background: var(--black-main);
@@ -29,9 +38,13 @@
2938
.container {
3039
display: flex;
3140
flex-direction: column;
32-
margin-top: 64px;
41+
margin-top: 32px;
3342
height: 100%;
3443
width: 100%;
44+
45+
@media screen and (min-width: 992px) {
46+
margin-top: 64px;
47+
}
3548
}
3649

3750
.header {
@@ -63,8 +76,7 @@
6376
display: flex;
6477
align-self: center;
6578
line-height: 16px;
66-
margin-top: auto;
67-
margin-bottom: 1.5em;
79+
margin: 1em 0;
6880
text-align: center;
6981

7082
color: var(--grey-main);
@@ -74,12 +86,20 @@
7486

7587
.buttons {
7688
display: flex;
77-
justify-content: center;
89+
flex-direction: column;
90+
gap: 1rem;
7891
width: 100%;
79-
height: 40px;
80-
padding-top: 1.5%;
8192
margin-left: auto;
8293
margin-right: auto;
94+
padding-top: 1.5%;
95+
96+
@media screen and (min-width: 992px) {
97+
justify-content: center;
98+
flex-direction: row;
99+
gap: 0;
100+
height: 40px;
101+
102+
}
83103
}
84104

85105
.button {
@@ -100,10 +120,12 @@
100120
background: none !important;
101121
border: none;
102122
padding: 0 !important;
103-
margin-left: 16px;
104-
105123
color: var(--white-main);
106124
line-height: 16px;
107125
font-size: 16px;
108126
font-weight: 500;
127+
128+
@media screen and (min-width: 992px) {
129+
margin-left: 16px;
130+
}
109131
}

client/src/components/Header/Header.module.css

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@
55

66
.navBar {
77
display: flex;
8-
flex-direction: row;
9-
justify-content: space-between;
8+
flex-direction: column;
109
background: rgba(0, 0, 0, 0);
11-
padding-top: 1.5rem;
12-
min-height: 80px;
1310
margin-left: 0;
1411
margin-right: 0;
1512
width: 100%;
13+
padding:1.5rem 5%;
14+
15+
@media screen and (min-width: 992px) {
16+
padding-bottom: 0;
17+
min-height: 80px;
18+
flex-direction: row;
19+
align-items: flex-start;
20+
justify-content: space-between;
21+
}
1622
}
1723

1824
.navBar p {
@@ -34,6 +40,7 @@
3440
border: transparent !important;
3541
box-shadow: none !important;
3642
color: var(--black-main) !important;
43+
padding: 0;
3744
}
3845

3946
.dropDown {
@@ -70,7 +77,6 @@
7077

7178
.logo {
7279
display: flex;
73-
padding-left: 5%;
7480
justify-content: start;
7581
height: 28px;
7682
width: 140px;
@@ -79,8 +85,17 @@
7985

8086
.headerEnd {
8187
display: flex;
82-
flex-direction: row;
83-
padding-right: 5%;
88+
flex-direction: column;
89+
align-items: flex-end;
90+
gap: .5rem;
91+
margin-top: -24px;
92+
93+
@media screen and (min-width: 992px) {
94+
flex-direction: row;
95+
gap: 0;
96+
padding-right: 5%;
97+
margin-top: 0;
98+
}
8499
}
85100

86101
.navLink {

client/src/components/Loader/Loader.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
max-width: 504px;
2323
width: 100%;
24+
padding: 0 1rem;
2425
line-height: 24px;
2526
margin-left: auto;
2627
margin-right: auto;

client/src/components/LoginForm/LoginForm.module.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,42 @@ input[type=radio] {
4848
line-height: 16px;
4949
font-size: 12px;
5050
font-weight: 400;
51-
width: 100%;
52-
margin-left: 6.25rem;
51+
margin-left: 3.25rem;
5352
padding-right: 2rem;
5453
margin-top: -0.25rem;
5554

5655
display: inline-block;
5756
color: var(--black-extralight);
5857
text-align: left;
58+
59+
@media screen and (min-width: 992px) {
60+
width: 100%;
61+
margin-left: 6.25rem;
62+
}
5963
}
6064

6165
.authVariants {
6266
gap: 24px;
6367
width: 100%;
6468
display: flex;
65-
flex-direction: row;
69+
padding: 0 1rem;
70+
flex-direction: column;
6671
justify-content: center;
72+
73+
@media screen and (min-width: 992px) {
74+
flex-direction: row;
75+
padding: 0;
76+
}
6777
}
6878

6979
.formButtons {
70-
margin-top: 40px;
80+
margin: 40px 0;
7181
display: flex;
7282
gap: 8px;
7383
justify-content: center;
84+
@media screen and (min-width: 992px) {
85+
margin-bottom: 0;
86+
}
7487
}
7588

7689
.formButtons button {

client/src/components/Popups/WorkflowTriggerResult/WorkflowTriggerResult.module.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
.popupContainer {
2-
padding-top: 3rem;
2+
padding: 3rem;
33
display: flex;
44
flex-direction: column;
55
align-items: center;
66
}
77

88
.popupContainer h2 {
9-
height: 54px;
10-
width: 450px;
119
line-height: 28px !important;
1210
margin: 12px 0 0 0;
1311
text-align: center;
1412
font-size: 24px !important;
1513
font-weight: 700 !important;
14+
15+
@media screen and (min-width: 992px) {
16+
height: 54px;
17+
width: 450px;
18+
}
1619
}
1720

1821
.popupContainer p {

client/src/components/TriggerForm/TriggerForm.module.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
.formContainer {
2-
margin: 6rem 10rem 0 0;
32
padding: 0 0 1rem 3rem;
4-
width: 50%;
5-
min-width: 500px;
3+
width: 100%;
64
background-color: var(--white-main);
75
border-radius: 8px;
86
box-shadow: 0 4px 16px 0 #0800143d !important;
97
display: flex;
108
flex-direction: column;
9+
10+
@media screen and (min-width: 992px) {
11+
min-width: 500px;
12+
margin: 6rem 10rem 0 0;
13+
width: 50%;
14+
}
1115
}
1216

1317
.formContainer h2 {

client/src/components/WorkflowDescription/WorkflowDescription.module.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@
1717
display: flex;
1818
flex-direction: column;
1919
gap: 32px;
20-
min-width: 394px;
21-
width: 30%;
20+
padding-bottom: 2rem;
21+
22+
@media screen and (min-width: 992px) {
23+
min-width: 394px;
24+
padding-bottom: 0;
25+
width: 30%;
26+
}
2227
}
2328

2429
.descriptionContainer h2 {
@@ -53,6 +58,13 @@
5358
max-height: 62vh;
5459
min-width: 380px;
5560
overflow-y: auto;
61+
62+
@media screen and (max-width: 991.98px) {
63+
position: static !important;
64+
max-height: 100%;
65+
min-width: 100%;
66+
transform: none !important;
67+
}
5668
}
5769

5870
.dropDownMenu h4 {

client/src/components/WorkflowList/WorkflowList.module.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
.listGroup {
22
width: 100%;
3-
margin-left: 34px;
4-
max-height: 62vh;
3+
@media screen and (min-width: 992px) {
4+
margin-left: 34px;
5+
max-height: 62vh;
6+
}
57
}
68

79
.listContainer {
8-
padding-top: 6.25rem;
10+
padding-top: 1rem;
11+
12+
@media screen and (min-width: 992px) {
13+
padding-top: 6.25rem;
14+
}
915
}
1016

1117
.listGroup a {
@@ -196,6 +202,10 @@
196202
position: static;
197203
padding-top: 7.5rem;
198204
padding-right: 30rem;
205+
206+
@media screen and (max-width: 991.98px) {
207+
padding: 1rem;
208+
}
199209
}
200210

201211
.emptyListContainer h1 {

client/src/hocs/withPopup/withPopup.module.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
align-items: center;
1515
justify-content: center;
1616
background-color: var(--white-main);
17-
min-height: 342px;
18-
min-width: 660px;
1917
position: absolute;
2018
left: 50%;
2119
top: 50%;
@@ -24,6 +22,11 @@
2422
box-shadow: 0 0 10px 0 var(--black-main);
2523
max-width: 100%;
2624
max-height: 100%;
25+
26+
@media screen and (min-width: 992px) {
27+
min-height: 342px;
28+
min-width: 660px;
29+
}
2730
}
2831

2932
.inner h2 {

client/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ body {
4848
margin: 0;
4949
display: flex;
5050
place-items: center;
51-
background: url('assets/img/hero-background.png') center;
51+
background: #fff url('assets/img/hero-background.png') center;
5252
background-size: cover;
5353
}
5454

0 commit comments

Comments
 (0)