-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
109 lines (94 loc) · 2.77 KB
/
Copy pathstyle.css
File metadata and controls
109 lines (94 loc) · 2.77 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
/* General and typography styles */
.p1 {
font-family: Arial, Helvetica, sans-serif;
}
body {
font-family: system-ui;
background-color: #000000;
color: #FFFAFA; /* Ensures text is readable on a dark background */
}
h3, h2, p, a {
color: #FFFAFA;
text-align: center;
}
h4 {
color: #FFFAFA;
text-align: center;
text-decoration: underline;
}
/* Link styling */
a {
text-decoration: none;
color: #FFFAFA; /* Maintain visibility against the dark background */
}
a:hover {
text-decoration: underline; /* Indicates clickable links */
color: #CCCCCC; /* Lighter color on hover */
}
/* Text alignment and centering */
.biotext, p {
text-align: justify; /* Keeps text justified */
width: 60%; /* Define a suitable width for your text block */
margin: 0 auto; /* This centers the block horizontally in its parent */
padding: 20px; /* Optional: adds some space inside the block */
}
/* Optional: Enhance the appearance */
.centertext {
text-align: center;
display: block; /* Ensures the element is treated as a block-level element */
}
/* Image styling */
img {
width: 60%; /* Default width for non-mobile devices */
display: block;
margin: 20px auto; /* Center images with top and bottom margin */
opacity: 0.5; /* Semi-transparent images by default */
transition: opacity 0.3s ease; /* Smooth transition for opacity */
}
img:hover {
opacity: 1; /* Full opacity on hover */
}
/* Modal styles for enlarged images */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place regardless of scrolling */
z-index: 1; /* Sit on top of other content */
padding-top: 100px; /* Push down from the top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgba(0,0,0,0.9); /* Black w/ opacity for overlay */
}
.modal-content {
margin: auto;
display: block;
width: 90%; /* Standard view */
max-width: 1200px; /* Maximum width for larger devices */
transition: transform 0.3s ease; /* Smooth transformation for scaling */
}
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
cursor: pointer;
transition: color 0.3s ease;
}
.close:hover,
.close:focus {
color: #bbb;
}
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
img {
width: 100%; /* Full width for mobile devices */
opacity: 0.8; /* Slightly more visible by default */
}
.modal-content {
width: 90%; /* Use more screen for the modal content */
}
}