-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
171 lines (147 loc) · 5.06 KB
/
style.css
File metadata and controls
171 lines (147 loc) · 5.06 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/* ========================================================================= */
/* General Styles */
/* ========================================================================= */
body {
font-family: 'MyFont', sans-serif; /* Set default font with fallback */
margin: 0; /* Remove default margin */
padding: 0; /* Remove default padding */
text-align: center; /* Center-align all text */
font-size: 14px; /* Base font size */
font-weight: bold; /* Bold text globally */
}
/* ========================================================================= */
/* Header Options Dropdown */
/* ========================================================================= */
header {
grid-column: 1 / -1; /* Span all columns */
grid-row: 1; /* First row */
background-color: #73c7e3; /* Light blue background */
color: #ffffff; /* White text color */
font-size: 1.5rem; /* Header font size */
text-align: center; /* Center-align text */
text-shadow: -1px 1px #000000; /* Text shadow for depth */
line-height: 1; /* Tight line spacing */
}
/* ========================================================================= */
/* Typography and Fonts */
/* ========================================================================= */
/* Font Section */
/* ========================================================================= */
/* Sidebar Styles */
.sidebar {
grid-column: 1; /* First column */
grid-row: 2; /* Second row */
text-align: left; /* Left-align text */
background-color: #f0f2f2; /* Light gray background */
color: #2e4a70; /* Dark blue text */
padding: 1rem; /* Internal padding */
font-size: 1rem; /* Font size */
flex: 1; /* Flexible growth */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
overflow-y: auto; /* Scroll if content overflows */
height: 100vh;
}
@media (max-width: 600px) {
.sidebar {
display: none;
}
}
/* ========================================================================= */
/* Main Layout and Grid */
/* ========================================================================= */
.grid-layout {
/*grid set up*/
display: grid; /* Enable grid layout */
grid-template-columns: 1fr 5fr; /* Two columns: 1 part sidebar, 4 parts main */
/* Two equal columns */
grid-template-rows: auto; /* Rows adjust to content */
}
/* ========================================================================= */
/* Blog Section */
.blog-display {
grid-column: 2; /* Second column */
grid-row: 2; /* Second row */
background-color: #fff9f0; /* Light peach background */
color: #2e4a70; /* Dark blue text */
height: auto; /* Fixed height */
padding: 0.5rem; /* Internal padding */
}
.blog-post {
text-align: left;
margin: 1rem;
padding: .5rem;
border: black solid;
border-radius: 5px;
display: grid;
grid-template-columns: 1fr 3fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
}
.blog-header{
grid-column: 1;
grid-row: 1;
}
.blog-author{
grid-column: 1;
grid-row: 2;
}
.blog-timestamp{
grid-column: 1;
grid-row: 3;
}
.blog-content{
grid-column: 2;
grid-row: 1;
}
.blog-weather{
grid-column: 3;
grid-row: 1;
}
.blog-button{
grid-column: 3;
grid-row: 3;
align-content: end;
justify-self: end;
}
/* make the time look pretty */
.timestamp {
font-size: 0.9em;
color: #666;
margin-top: -10px;
}
/* ========================================================================= */
/* Popup Styles */
/* ========================================================================= */
/* Popup */
#blog-form-popup{
position: fixed; /* Fixed over viewport */
top: 50%; /* Center vertically */
left: 50%; /* Center horizontally */
transform: translate(-50%, -50%); /* Adjust centering */
width: 80vw; /* Wide popup */
height: 80vh; /* Tall popup */
background-color: #ffffff; /* White background */
color: #001f3f; /* Dark navy text */
border-radius: 10px; /* Rounded corners */
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Shadow effect */
display: none; /* Hidden by default */
z-index: 1000; /* Above overlay */
padding: 2rem; /* Internal padding */
}
/* ========================================================================= */
/* Button Styles */
/* ========================================================================= */
/* Buttons */
/* Styles for add-task button*/
.add-blog {
font-family: 'MyFont', sans-serif; /* Custom font */
padding: 15px 30px; /* Large padding */
background-color: #73c7e3; /* Light blue background */
color: white; /* White text */
border: none; /* No border */
border-radius: 20px; /* Rounded corners */
border-color: red; /* Unused due to no border */
position: fixed; /* Fixed bottom-right */
right: 40px; /* Offset from right */
bottom: 40px; /* Offset from bottom */
cursor: pointer; /* Hand cursor */
}