forked from LiamLuck/ProgrammingPractical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (115 loc) · 2.4 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
119
120
121
122
123
124
125
126
127
img.left{
position: relative;
top: 0;
left: 0;
/* border: 3px solid #212aad; */
}
img.right{
position: relative;
top: 0;
left: 0;
/* border: 3px solid #212aad; */
}
body {
width: 100vw;
height: 100vh;
padding: 1rem;
font-family: Avenir, sans-serif;
font-size: 112.5%;
color: #124;
background-image: radial-gradient(rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0) 40vw), radial-gradient(rgba(0, 128, 0, 0.3), rgba(0, 128, 0, 0) 40vw), radial-gradient(rgba(0, 0, 255, 0.3), rgba(0, 0, 255, 0) 40vw), radial-gradient(rgba(255, 255, 0, 0.3), rgba(255, 255, 0, 0) 40vw), radial-gradient(rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0) 40vw);
background-position: -40vw 14rem, 50% 10rem, 60vw 14rem, -10vw calc(14rem + 20vw), 30vw calc(14rem + 20vw);
/* background-size: 80vw 80vw; */
background-repeat: repeat-y;
}
main {
max-width: 1200px;
margin-right: auto;
margin-left: auto;
}
.cards
{
display: flex;
flex-direction: column;
margin: -1rem;
list-style: none;
}
@media (min-width: 600px) {
.cards {
flex-direction: row;
}
}
.card:hover {background-color: #463e8e}
.card:active {
background-color: #463e8e;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
.card {
flex: 1;
margin: 1rem;
padding: 1rem;
background-color: white;
border-radius: 0.5rem;
box-shadow: 0 0 6rem rgba(0, 0, 0, 0.1);
}
.card * {
margin-bottom: 1rem;
}
.card--image {
font-size: 6rem;
line-height: 1;
}
.card.-red .card--image {
color: #ff8080;
}
.card.-green .card--image {
color: #80c080;
}
.card.-blue .card--image {
color: #8080ff;
}
.column {
float: left;
width: 50%;
padding: 10px;
}
.basiccolumn {
float: left;
}
.row:after {
content: "";
display: table;
clear: both;
}
.topnav {
background-color: whitesmoke;
overflow:hidden;
margin-bottom: 1%;
}
.topnav a {
float: left;
color:black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: lightskyblue;
color:black;
}
.topnav a.active {
background-color: grey;
color:white;
}
figcaption {
font-style: italic;
font-size: 16px;
}
h1 {
margin-bottom: 1%;
padding: 0.5%;
text-align: center;
background-image: linear-gradient(to right, rgba(255,0,0,0), rgba(66, 148, 255, 0.349), rgba(255,0,0,0));
}