Skip to content

Commit 2e8a480

Browse files
committed
Responsive: home,profile,myprofile,mystories,nav
1 parent 2349b17 commit 2e8a480

File tree

20 files changed

+347
-117
lines changed

20 files changed

+347
-117
lines changed

src/assets/scss/components/dropdown.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
opacity: 0.08;
9494
}
9595

96-
@media only screen and (max-width: 281px) {
96+
@media only screen and (max-width: 500px) {
9797
.dropdown-container {
98-
padding: 0px 6px;
98+
padding: 0px;
9999
}
100100
}
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
.dropdown-main {
2+
align-items: center;
3+
display: flex;
4+
margin: 0 0.5rem;
5+
}
6+
17
.filter-title {
28
font-weight: bold;
39

410
&:not(:first-of-type) {
511
margin-left: 48px;
612
}
7-
}
13+
}

src/assets/scss/components/editableLabel.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.editable-label {
22
align-items: center;
33
display: flex;
4+
justify-content: center;
45

56
button {
67
background-color: transparent;
@@ -18,4 +19,28 @@
1819
visibility: visible;
1920
}
2021
}
22+
23+
@media only screen and (max-width: 768px) {
24+
h2 {
25+
margin: 0.5rem 0;
26+
}
27+
28+
p {
29+
margin: 0.5rem 0;
30+
}
31+
32+
button.editable-label-edit-btn {
33+
display: none;
34+
}
35+
36+
&:hover {
37+
38+
button {
39+
cursor: pointer;
40+
display: block;
41+
}
42+
43+
}
44+
45+
}
2146
}

src/assets/scss/components/footer.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,19 @@
77
padding: 10px 25px;
88
}
99
}
10+
11+
@media only screen and (max-width: 600px) {
12+
.footer-main {
13+
flex-direction: column;
14+
15+
p {
16+
margin: 0;
17+
margin-bottom: 1rem;
18+
padding: 0.3rem 0;
19+
}
20+
21+
a {
22+
padding: 0.3rem;
23+
}
24+
}
25+
}

src/assets/scss/components/modal.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
font-size: $font-size-header;
3838
height: 25px;
3939
position: absolute;
40-
right: 0;
40+
right: 0.5em;
4141
text-align: center;
4242
top: 0.5em;
4343
width: 25px;
@@ -54,3 +54,4 @@
5454
transform: scale(1.2);
5555
}
5656
}
57+

src/assets/scss/components/navigation.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
@media only screen and (max-width: 768px) {
1616
.nav-header {
17-
flex-direction: column;
18-
}
19-
20-
.navbar-content {
21-
margin-top: 20px;
17+
padding: 22px 10px 0;
2218
}
2319
}

src/assets/scss/components/roadmap.scss

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
}
4242
}
4343

44+
.rdmap {
45+
margin: 10px 0;
46+
}
47+
4448
.roadmap-one {
4549
.btn-tabs {
4650

@@ -60,3 +64,55 @@
6064
}
6165
}
6266
}
67+
68+
@media (max-width: 900px) {
69+
.roadmap-container {
70+
display: flex;
71+
// justify-content: center;
72+
}
73+
74+
.roadmap {
75+
align-items: flex-start;
76+
display: flex;
77+
flex-direction: column;
78+
// margin-bottom: 32px;
79+
position: relative;
80+
81+
&::before {
82+
border-left: 1px solid gray;
83+
border-top: 0;
84+
content: '';
85+
height: 80%;
86+
left: 23px;
87+
position: absolute;
88+
width: 100%;
89+
z-index: 1;
90+
}
91+
92+
.btn-tabs {
93+
margin: 0.8rem 0;
94+
}
95+
}
96+
97+
// .roadmap-one {
98+
// flex-direction: column;
99+
100+
.btn-tabs {
101+
margin: 0.5rem;
102+
width: 200px;
103+
}
104+
105+
// }
106+
}
107+
108+
@media (max-width: 600px) {
109+
.roadmap-one {
110+
flex-direction: column;
111+
}
112+
113+
.btn-tabs {
114+
margin: 0.3rem 0;
115+
text-align: left;
116+
width: 100%;
117+
}
118+
}

src/assets/scss/components/search.scss

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
padding: 0px 10px;
88
padding-left: 0px;
99
position: relative;
10-
width: 290px;
10+
// width: 290px;
1111

1212
.dropdown-container {
1313
.btn {
@@ -26,11 +26,15 @@
2626
input {
2727
border: 0px;
2828
outline: none;
29-
padding: 0px;
30-
width: 147px;
29+
padding: 0.3rem;
30+
// width: 147px;
3131
}
3232
}
3333

34+
.search {
35+
margin: 0.5rem;
36+
}
37+
3438
.user-suggest-dropdown {
3539
background-color: $eos-white;
3640
border-radius: 10px 0px 10px 10px;
@@ -70,3 +74,16 @@
7074
.close-btn {
7175
cursor: pointer;
7276
}
77+
78+
@media (max-width: 400px) {
79+
.search-input {
80+
input {
81+
border: 0px;
82+
max-width: 4rem;
83+
min-width: 2rem;
84+
outline: none;
85+
padding: 0.3rem;
86+
// width: 147px;
87+
}
88+
}
89+
}

src/assets/scss/components/storiesList.scss

Lines changed: 68 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
display: flex;
3333
}
3434

35-
&-subcontent {
36-
margin: 0 16px;
37-
min-width: 105px;
38-
}
35+
// &-subcontent {
36+
// margin: 0 16px;
37+
// // min-width: 105px;
38+
// }
3939

4040
.category-text {
4141
color: $hyper-link-color;
@@ -48,11 +48,72 @@
4848
flex-grow: 2;
4949
margin: 0px 16px;
5050
width: 40%;
51+
52+
h3 {
53+
margin-bottom: 0.3rem;
54+
}
55+
56+
p {
57+
margin-top: 0.3rem;
58+
}
5159
}
5260

53-
@media only screen and (max-width: 768px) {
61+
.story-small-details {
62+
align-items: center;
63+
display: flex;
64+
justify-content: space-between;
65+
width: 40%;
66+
}
67+
68+
69+
@media (max-width: 900px) {
70+
.story {
71+
display: block;
72+
height: auto;
73+
}
74+
5475
.stories-content {
55-
max-width: 60%;
56-
width: 60%;
76+
margin: 0px;
77+
width: 100%;
78+
}
79+
80+
.story-small-details {
81+
width: 100%;
82+
}
83+
}
84+
85+
// @media only screen and (max-width: 768px) {
86+
// .stories-content {
87+
// max-width: 60%;
88+
// width: 60%;
89+
// }
90+
// }
91+
92+
@media only screen and (max-width: 450px) {
93+
.story-small-details {
94+
align-items: flex-start;
95+
display: flex;
96+
flex-direction: column;
97+
height: 9rem;
98+
justify-content: space-between;
99+
}
100+
101+
.story-subcontent {
102+
flex-direction: row;
103+
justify-content: space-between;
104+
105+
small {
106+
margin: 0 16px;
107+
}
108+
109+
a {
110+
margin: 0 16px;
111+
}
112+
}
113+
114+
.s-metas {
115+
flex-direction: row;
116+
justify-content: flex-end;
117+
width: 100%;
57118
}
58119
}

src/assets/scss/components/userProfile.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
.user-profile-wrapper {
2+
align-items: center;
3+
justify-content: center;
4+
}
5+
16
.user-profile {
27
align-items: center;
38
display: flex;
@@ -70,9 +75,9 @@
7075
}
7176

7277
&-details {
73-
align-items: center;
7478
display: flex;
7579
flex-direction: column;
80+
padding: 0;
7681
width: auto;
7782
}
7883
}
@@ -94,7 +99,6 @@
9499
list-style: none;
95100
padding: $eos-m;
96101

97-
98102
&:first-child {
99103
padding-left: 0;
100104
}
@@ -138,4 +142,11 @@
138142
}
139143
}
140144
}
145+
146+
@media only screen and (max-width: 768px) {
147+
ul {
148+
padding: 1rem;
149+
width: 100%;
150+
}
151+
}
141152
}

0 commit comments

Comments
 (0)