This repository was archived by the owner on Apr 18, 2025. It is now read-only.
generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathstyle.css
More file actions
159 lines (141 loc) · 3.41 KB
/
style.css
File metadata and controls
159 lines (141 loc) · 3.41 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
body,
h1,
h2,
p {
margin: 20;
padding: 0;
}
/* Apply a consistent color scheme for links and text */
body {
font-family: Arial, sans-serif;
color: #333;
background-color: #f5f5f5;
}
a {
text-decoration: none;
color: #007bff; /* Link color */
}
/* Header styles */
header {
background-color:var(--foreground-color);
text-align: center;
padding: 25px;
}
/* Add this CSS to style the article */
#git-article {
background-color: var(--foreground-color);
padding: 2rem;
border-radius: var(--radius);
box-shadow: 2px 2px 6px var(--shadow-color);
width: 80%; /* Adjust the width as needed */
max-width: 800px; /* Set a maximum width if necessary */
margin: 0 auto; /* Center the box horizontally */
text-align: center; /* Center the content within the box */
}
#git-article img {
max-width: 100%;
height: auto;
border-radius: var(--radius);
margin-bottom: 1rem; /* Add space below the image */
}
#git-article h2 {
font-size: var(--fs-subtitle);
margin-bottom: 1rem; /* Add space below the heading */
}
#git-article p {
font-size: var(--fs-paragraph);
text-align: justify;
margin-bottom: 1rem; /* Add space below the paragraph */
}
#git-article a.orange-btn {
background: #f77d24;
display: inline-block;
color: #fff;
text-decoration: none;
text-transform: none;
font-family: Sans-serif;
font-size: 16px;
padding: 10px;
text-align: center;
}
}
#git-article a.orange-btn:hover {
background-color: var(--focus-color-light-bg);
font-weight: bold;
transition: all 0.2s;
}
/* ......................... */
/* Main container styles */
.main-container {
display: flex;
justify-content: space-between;
align-items: flex-start; /* Align items to the top */
padding: 20px; /* Increased padding for better spacing */
}
/* Article styles */
/* the following two articles will be in one row, but two columns beside each other */
.articles-container {
display: flex; /* Use flexbox for layout */
justify-content: space-between;
align-items: flex-start; /* Align items to the top */
padding: 20px; /* Increased padding for better spacing */
margin-top: 10px; /* Add some space between the main content and articles */
}
.orange-btn {
background: #f77d24;
display: inline-block;
color: #fff;
text-decoration: none;
text-transform: none;
font-family: Sans-serif;
font-size: 16px;
padding: 10px;
text-align: center;
}
.article {
flex: 1; /* Equal width for both articles */
box-sizing: border-box;
border: 1px solid var(--grey-light);
border-radius: 4px;
padding: 20px; /* Increased padding for better spacing */
margin-bottom: 2rem;
background-color: #fff; /* Add a white background to articles */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin: 100px;
/* Add a subtle shadow for depth */
}
.article img {
max-width: 100%;
height: auto;
}
.article__title {
font-size: 1.5rem; /* Increased font size for article titles */
font-weight: 700;
margin-bottom: 1rem; /* Slightly increased margin for spacing */
}
.article__read-more a {
color: #007bff;
text-decoration: none;
font-weight: bold; /* Bold font for "Read More" link */
}
.article__read-more a:hover {
text-decoration: underline;
}
.article__summary {
margin: 0;
}
/* Footer styles */
footer {
display: block;
clear: both;
background-color: lightgrey;
text-align: center;
padding: 25px;
}
@media screen and (max-width: 600px) {
aside,
section,
article {
width: 100%;
}
}