-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
144 lines (134 loc) · 2.27 KB
/
style.css
File metadata and controls
144 lines (134 loc) · 2.27 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*first some universal styling things for convenience */
* {
box-sizing: border-box;
font-family: 'Open Sans', sans-serif;
}
img, embed, object, video {
max-width: 100%;
}
body{
display: flex;
flex-wrap: wrap;
background-color: white;
font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
line-height: calc(1.3em + (1.5 - 1.2) * ((100vw - 300px)/(1600 - 300)));
margin: unset;
}
.content{
width: 100%;
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
p {
padding: 2%;
}
/*then some specific stuff */
#header {
float: top;
width: 100%;
background-color: lightgrey;
display: flex;
flex-wrap: wrap;
}
@media screen and (max-width: 450px)
{
#header > .button, #header > .button > .hyperlink {
display:none;
}
}
#name {align-self: center;}
#person{
background-color: darkgrey;
}
#reason {
background-color:lightgray;
}
.caption{
position: relative;
left: 20px;
top: -10px;
font-size: .5em;
width: 100%;
}
/* Stuff from the Udacity slacker card project to use as parts of my website cards. Modified. */
.card {
background-color: white;
width: 98%;
border-radius: 4px;
display: flex;
flex-direction: column;
padding: 2%;
margin-top: 1%;
margin-bottom:1%;
margin-left: 1%;
margin-right: 1%;
}
.siteimg{
height: auto;
max-width: 200px;
align-self: center;
}
/* Let's use some media queries! */
@media screen and (min-width: 450px)
{
.card {
width: 48%;
}
}
@media screen and (min-width: 750px)
{
.card {
width: 31%;
}
}
@media screen and (min-width: 1024px)
{
.card {
width: 23%;
}
}
/* */
.card:hover{
box-shadow: 0px 5px 15px 0px rgba(153,153,153,0.5);
}
.title{
color: black;
}
div {
display:flex;
flex-wrap: wrap;
}
.button {
width: 25%;
height: 32px;
font-size: 1em;
text-align: center;
border-radius: 4px;
font-family: 'Open Sans', sans-serif;
cursor: pointer;
border: 0px;
background-color: white;
margin-left: 1%;
margin-right: 1%;
margin-bottom: 1%;
padding: 5px;
min-width: 150px;
}
.button:hover {
background-color: darkgray;
color: white;
}
.spacer {
opacity:0;
width:100%;
}
#footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 25px;
width: 100%;
background-color: black;
}