-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
122 lines (102 loc) · 2.19 KB
/
style.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
/* Remove all padding and margin from the browser */
* {
padding: 0;
margin: 0;
}
/* Lays out all page elements in a flex container */
body {
display: flex;
flex-direction: column;
justify-content: stretch;
height: 100vh;
}
/* Sets the initial height of the map container */
.map-container {
height: 90vh;
flex-shrink: 3;
min-height: 0 ;
}
/* The map will fill it's container */
#map {
height: 100%;
}
header {
background-color: gray;
color: whitesmoke;
}
h1 {
font-family: helvetica;
padding: 5px;
}
/* Styles the aside which is the expandable div. Position relative allows for the
double up arrow to stay in the same place once expanded */
aside {
background-color: orange;
flex-grow: 3;
position: relative;
padding: 10px;
}
/* Allows for the restaurant links to stack vertically as blocks */
a {
display: block;
text-decoration: none;
color: whitesmoke;
font-family: helvetica;
}
a:hover {
color: black;
}
/* Styles the collapsed version of the expandable element */
.expandable {
overflow: hidden; /*Makes the element 'collapsed' */
line-height: 1.5rem;
padding-bottom: 25px;
transition: all 0.5s ease-in-out; /*Allows for a smooth transition */
max-height: 25px; /* Sets the initial height of the collapsed element */
}
/* Styles the expanded element. Stops it from covering the whole map and allows
for scrolling down to see additional content */
.expandable:hover{
height: 60vh;
max-height: 75vh;
overflow: scroll;
}
/* Gives padding for the restaurant page information */
#content-container {
padding: 10px;
}
#content-container > h1 {
padding: 0px;
padding-bottom: 10px;
}
/* Makes the index.html restaurant name style match the restaurant page */
.shift-down{
padding-top: 10px;
}
#restaurant-list{
padding: 10px;
}
/* Allows for a variable number of notes */
#notes-container {
height: auto;
}
/* Styles the notes */
#notes-container p{
background-color: gray;
color: whitesmoke;
padding: 5px;
margin: 5px;
border-radius: 15px;
}
/* Styles the notes header */
.subheader {
padding: 10px;
}
/* Styles the double-up arrow */
aside > i {
position: absolute;
left: 50%;
top: 20px;
font-size: 1.5rem;
color: grey;
}