Skip to content

Commit 8ef9cc4

Browse files
committed
homepage responsive commit 1
1 parent 2349b17 commit 8ef9cc4

File tree

14 files changed

+284
-113
lines changed

14 files changed

+284
-113
lines changed
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/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+
padding: 0.3rem 0;
17+
margin: 0;
18+
margin-bottom: 1rem;
19+
}
20+
21+
a {
22+
padding: 0.3rem;
23+
}
24+
}
25+
}

src/assets/scss/components/modal.scss

Lines changed: 1 addition & 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;

src/assets/scss/components/navigation.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
}
1313
}
1414

15-
@media only screen and (max-width: 768px) {
16-
.nav-header {
17-
flex-direction: column;
18-
}
15+
// @media only screen and (max-width: 768px) {
16+
// .nav-header {
17+
// flex-direction: column;
18+
// }
1919

20-
.navbar-content {
21-
margin-top: 20px;
22-
}
23-
}
20+
// .navbar-content {
21+
// margin-top: 20px;
22+
// }
23+
// }

src/assets/scss/components/roadmap.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,33 @@
6060
}
6161
}
6262
}
63+
64+
@media (max-width: 900px) {
65+
.roadmap-container{
66+
display: flex;
67+
// justify-content: center;
68+
}
69+
70+
.roadmap {
71+
display: flex;
72+
flex-direction: column;
73+
align-items: flex-start;
74+
// margin-bottom: 32px;
75+
position: relative;
76+
77+
&::before {
78+
border-left: 1px solid gray;
79+
border-top: none;
80+
content: '';
81+
position: absolute;
82+
left: 23px;
83+
width: 100%;
84+
height: 80%;
85+
z-index: 1;
86+
}
87+
88+
.btn-tabs {
89+
margin: 0.8rem 0;
90+
}
91+
}
92+
}

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+
outline: none;
83+
padding: 0.3rem;
84+
min-width: 2rem;
85+
max-width: 4rem;
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+
display: flex;
63+
align-items: center;
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+
display: flex;
95+
flex-direction: column;
96+
align-items: flex-start;
97+
justify-content: space-between;
98+
height: 9rem;
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+
width:100%;
117+
justify-content: flex-end;
57118
}
58119
}

src/assets/scss/components/vote.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
.vote-button {
2222
color: $eos-white;
2323
font-weight: bold;
24-
margin: 4px 4px;
24+
margin: 4px 8px;
2525

2626
&-clickable {
2727
cursor: pointer;
@@ -31,3 +31,11 @@
3131
margin: 0px 4px 0px 4px;
3232
}
3333
}
34+
35+
@media (max-width: 900px) {
36+
.vote-wrapper {
37+
flex-direction: row;
38+
align-items: center;
39+
justify-content: space-between;
40+
}
41+
}

src/assets/scss/layout/avatar.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@
77
width: 4em;
88
}
99
}
10+
11+
@media (max-width: 500px) {
12+
.avatar {
13+
height: 3.5em !important;
14+
width: 3em !important;
15+
}
16+
}

src/assets/scss/pages/home.scss

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,37 @@ $subheader-font-size: 18px;
1818
border-radius: 10px;
1919
justify-content: space-between;
2020
margin: 16px 0px 16px 0px;
21-
padding: 8px 20px;
21+
padding: 20px;
22+
}
23+
24+
.search-controls{
25+
align-items: center;
26+
justify-content: center;
2227
}
2328

2429
.options-bar {
2530
align-items: center;
2631
background-color: $eos-white;
2732
border-radius: 10px;
28-
padding: 8px 20px;
33+
padding: 8px;
2934
}
3035

31-
.link-default {
32-
padding-left: 0.5em;
36+
// .link-default {
37+
// padding-left: 0.5em;
38+
// }
39+
40+
@media (max-width: 900px) {
41+
.product-introduction {
42+
display: block;
43+
margin: 44px 0px;
44+
}
45+
46+
.img-wrap{
47+
display: flex;
48+
justify-content: center;
49+
}
50+
51+
.options-bar {
52+
padding: 8px 0;
53+
}
3354
}

0 commit comments

Comments
 (0)