-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
142 lines (120 loc) · 2.58 KB
/
index.css
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
body {
background-image: url('https://images.squarespace-cdn.com/content/v1/590be7fd15d5dbc6bf3e22d0/1494289044298-J7QBPEW233F6SR6HP2HX/ke17ZwdGBToddI8pDm48kLIHJMQ8C0Xv223jIdQPNVp7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z5QPOohDIaIeljMHgDF5CVlOqpeNLcJ80NK65_fV7S1US37MzVIBvWXggljItfsh6FARqcsDTeJPtzqIsgFInpeDz83YmSA7HB1mYBaOgQKFw/HIRES3-2c.jpg?format=2500w');
background-size: auto;
}
#newform {
text-align: center;
}
#header {
text-align: center;
color: whitesmoke;
}
#addrecipe {
color: white;
}
main {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
grid-gap: 20px;
padding-top: 10px;
padding-bottom: 30px;
}
div.card {
background-color: #eeeeee;
height: 250px;
width: 300px;
box-shadow: 10px 10px grey;
padding: 10px;
border-radius: 10px;
text-align: left;
}
li {
font-size: 1.05em;
list-style: none;
padding-right: 20px;
}
@media only screen and (min-width: 500px) {
main {
grid-template-columns: 1fr 1fr;
}
}
@media only screen and (min-width: 850px) {
main {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
}
*, *::after, *::before {
box-sizing: border-box;
}
.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0);
transition: 200ms ease-in-out;
border: 1px solid black;
border-radius: 10px;
z-index: 10;
background-color: white;
width: 500px;
max-width: 80%;
}
.modal.active {
transform: translate(-50%, -50%) scale(1);
}
.modal-header {
padding: 10px 15px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid black;
}
.modal-header .title {
font-size: 1.25rem;
font-weight: bold;
}
.modal-header .close-button {
cursor: pointer;
border: none;
outline: none;
background: none;
font-size: 1.25rem;
font-weight: bold;
}
.modal-body {
padding: 10px 15px;
line-height: 1.6;
}
.recipeheader {
font-weight: bold;
}
/* .commentform {
width: 100px;
height: 100px;
} */
/* #content{
width: 300px;
height: 60px;
} */
#recipeingredients {
text-indent: 2%;
}
#recipedirections {
text-indent: 10%;
}
#overlay {
position: fixed;
opacity: 0;
transition: 200ms ease-in-out;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, .5);
pointer-events: none;
}
#overlay.active {
opacity: 1;
pointer-events: all;
}