Kumi
25a07d797b
Revamped the article template to enhance visual appeal and user engagement. Introduced a modern, centered layout for article headers, enriched steps display, and standardized multimedia elements with rounded corners and shadows for a cohesive look. Adjustments ensure content is more engaging and accessible, encouraging longer visitor sessions and interaction. This change aligns with the goal of providing a more immersive user experience while maintaining the site's aesthetic consistency. Refactored CSS to support these changes, defining variables for easier future theme adjustments and promoting code reuse across similar elements. The update signifies a pivotal shift towards a refined and flexible presentation of articles, potentially increasing visitor retention and satisfaction.
323 lines
No EOL
4.7 KiB
CSS
323 lines
No EOL
4.7 KiB
CSS
:root {
|
|
--main-font: "DejaVu Sans Mono", monospace;
|
|
--main-color: #bbc2cf;
|
|
--link-color: #ff6c6b;
|
|
--heading-color: #51afef;
|
|
--code-bg: #20232a;
|
|
--code-color: #969ba6;
|
|
--border-color: lightgrey;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--main-font);
|
|
margin: 20px auto;
|
|
line-height: 1.5;
|
|
font-size: 1.1em;
|
|
max-width: 100vw;
|
|
color: var(--main-color);
|
|
padding: 0 10px;
|
|
hyphens: auto;
|
|
}
|
|
|
|
a {
|
|
color: var(--link-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
line-height: 1.2;
|
|
color: var(--heading-color);
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
pre,
|
|
code {
|
|
background: var(--code-bg);
|
|
color: var(--code-color);
|
|
border: 1px solid var(--border-color);
|
|
padding: 5px;
|
|
tab-size: 4;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 10px solid var(--code-color);
|
|
padding-left: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.navbar-logo {
|
|
height: 64px;
|
|
}
|
|
|
|
.card {
|
|
background-color: #fff;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.card-body {
|
|
flex: 1;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.card-footer {
|
|
padding: 1rem;
|
|
background-color: #f8f9fa;
|
|
border-top: 1px solid #ddd;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.card-img-top {
|
|
max-width: 100%;
|
|
height: auto;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.navbar-collapse {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.navbar-nav {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.nav-item {
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.navbar-nav {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-item {
|
|
margin-left: 0;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.navbar-collapse {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.ibles {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.ible-small {
|
|
font-size: 0.7em;
|
|
font-weight: thin;
|
|
line-height: 1em;
|
|
}
|
|
|
|
.step-section {
|
|
background-color: var(--primary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px var(--shadow-color);
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.step-header h2 {
|
|
font-size: 2em;
|
|
color: var(--heading-color);
|
|
}
|
|
|
|
.step-images img,
|
|
.step-videos video,
|
|
.step-iframes iframe {
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px var(--shadow-color);
|
|
}
|
|
|
|
.step-text {
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.reply-button,
|
|
.replies {
|
|
display: none;
|
|
}
|
|
|
|
.reply-button+label {
|
|
position: relative;
|
|
display: block;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input.reply-button:checked+label+.replies {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.member-list {
|
|
display: inline-block;
|
|
max-width: 200px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.ible-list-item {
|
|
display: inline-block;
|
|
max-width: 350px;
|
|
vertical-align: top;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.contest-list-item {
|
|
display: inline-block;
|
|
max-width: 500px;
|
|
vertical-align: top;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.archive-month-wrapper {
|
|
display: inline-block;
|
|
width: 30vw;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.archive-month {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: -10px;
|
|
margin-bottom: 1rem;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.archive {
|
|
margin-bottom: -20px;
|
|
}
|
|
|
|
ul.pagination {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 0 33vw;
|
|
list-style-type: none;
|
|
align-items: center;
|
|
}
|
|
|
|
ul.pagination li.active a,
|
|
ul.pagination li.disabled a,
|
|
ul.pagination li.active a:hover,
|
|
ul.pagination li.disabled a:hover {
|
|
color: #bbc2cf;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.closed-contest-contest {
|
|
object-fit: cover;
|
|
width: 33vw;
|
|
height: 15vw;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.closed-contest-winner,
|
|
.closed-contest-winner-img {
|
|
width: 15vw;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
padding: 0 10px;
|
|
font-size: 0.8em;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sitemap-group {
|
|
margin-top: 2em;
|
|
display: inline-block;
|
|
width: 30vw;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.sitemap-group h2 {
|
|
text-align: center;
|
|
}
|
|
|
|
.container {
|
|
margin-top: 20px !important;
|
|
}
|
|
|
|
header {
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
.go_here_link {
|
|
background-color: #4caf50;
|
|
/* Green */
|
|
border: none;
|
|
color: white;
|
|
padding: 15px 32px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.go_here_link:hover {
|
|
color: black;
|
|
}
|
|
|
|
.wrap {
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.navbar-logo {
|
|
height: 64px;
|
|
}
|
|
|
|
.img-fluid {
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
video {
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
iframe {
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.text-muted {
|
|
color: #6c757d !important;
|
|
} |