-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.scss
More file actions
122 lines (100 loc) · 1.56 KB
/
test.scss
File metadata and controls
122 lines (100 loc) · 1.56 KB
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
$secondary_color : #70af85;
$primary_color : #c6ebc9;
$background : #f0e2d0;
$border : 5px solid $secondary_color;
body{
background-color: $background;
font-family: sans-serif;
}
header{
background-color: $primary_color;
font-size: 17px;
text-align: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
border-bottom: $border;
}
img {
width: 200px;
}
#all{
margin-top: 100px;
display: flex;
}
#list{
display: flex;
flex-wrap: wrap;
justify-content: center;
text-align: center;
}
#details{
flex-grow: 1;
}
#java{
right: 0px;
background-color: $primary_color;
top: 100px;
width: 200px;
border: $border;
border-radius: 10px;
height: 600px;
position: -webkit-sticky;
position: sticky;
font-size: 20px;
}
.food{
margin: 30px;
background-color: $primary_color;
border: $border;
border-radius: 10px;
}
.name{
font-size: 20px;
}
%button{
border: $border;
margin-top: 2px;
margin-bottom: 2px;
background-color: $primary_color;
}
.favourite{
@extend %button;
}
.recipe{
@extend %button;
}
%button_hover{
background-color: $secondary_color;
color: $primary_color;
cursor: pointer;
transition: all 0.4s ease-out;
}
.favourite:hover{
@extend %button_hover
}
.recipe:hover{
@extend %button_hover
}
.yellow{
border-color: yellow;
}
@media screen and (max-width: 550px) {
#all{
display: inline-block;
}
.food{
margin: 10px;
}
#java{
position: static;
height: fit-content;
width: 450px;
display: flex;
right: revert;
}
#list{
margin-right: 0;
}
}