-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
143 lines (127 loc) · 3.01 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,700;1,300&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
letter-spacing: 0.5px;
font-family: 'Ubuntu',-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body{
display: flex;
justify-content: center;
flex-direction: column;
min-height: 100vh;
background: linear-gradient(to right,#0F2027, #203A43,#2C5364);
}
.searchBox{
display: flex;
justify-content: center;
align-items: center;
margin-top: 0.5rem;
z-index: 100;
input{
height: 2.8rem;
width: 60vw;
padding-left: 10px;
border-radius: 30px;
outline: none;
border: 2px solid rgba(0, 0, 0, 0.5);
&:hover{
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}
}
button{
height: 3rem;
width: 3rem;
border: 2px solid rgba(0, 0, 0, 0.5);
outline: none;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
background: white;
margin-left: 0.5rem;
&:hover{
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}
img{
height: 1rem;
width: 1rem;
}
}
}
.cards{
display: flex;
flex-wrap: wrap;
justify-content: center;
.card{
background: rgba(255,255,255,1);
padding: 1rem;
min-height: 40vh;
min-width: 30vw;
margin: 1rem;
h1{
color: #45B649;
margin-bottom: 0.5rem;
.category{
color: black;
font-size: smaller;
}
}
.innerCard{
background: linear-gradient(to right,#DCE35B,#45B649);
padding: 0.5rem;
h3{
margin: 0.5rem;
color: white;
.category{
color: black;
}
}
}
}
}
.opening{
display: flex;
justify-content: center;
img{
margin-top: 1rem;
width: 100vw;
}
h1{
position: absolute;
transform: translate(0,30px);
font-size: small;
}
}
@media(max-width: 500px){
.cards{
flex-wrap: nowrap;
overflow-x: auto;
justify-content: left;
&::before{
content: "Swipe for more";
position: fixed;
bottom: 1rem;
right: 0.5rem;
text-align: center;
color: white;
}
.card{
min-height: 50vh;
// max-height: 80vh;
min-width: 90vw;
margin: 1rem;
}
}
}
@media(min-width: 900px){
.opening{
img{
width: 70vw;
}
h1{
font-size: large;
}
}
}