-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportfolio.css
84 lines (75 loc) · 1.42 KB
/
portfolio.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
.container1 {
display:flex;
flex-wrap: wrap;
justify-content: center;
}
h1 {
font-family: fantasy;
font-size: 3em;
font-style: italic;
color: rgba(171, 221, 147, 1);
padding-bottom: 7.5px;
text-align: center;
border-bottom: solid 2px rgba(48, 110, 18, 0.6);
}
img {
width: 450px;
height: 300px;
margin: 10px;
opacity: 0.85;
cursor: pointer;
}
.imgsz {
border-radius: 5px;
cursor: pointer;
transition: 0.3s;
}
.imgsz:hover {opacity: 1;}
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
.modal-content {
margin:auto;
display:block;
height: 75vh;
width: 75%;
max-width: 125vh;
}
.modal-content {
animation-name: zoom;
animation-duration: 0.6s;
}
@keyframes zoom {
from {transform:scale(0);}
to {transform: scale(1);}
}
.close {
position:absolute;
top: 75px;
right: 350px;
color: #FFE2AA;
font-size: 100px;
transition: 0.3s;
}
.close:hover, .close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
@media only screen and (max-width: 700px) {
.modal-content {
padding-top: 30px;
width: 100%;
height: 100%;
}
}