Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor style.css #1786

Open
wants to merge 20 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
da2a426
refactor: move search styles to new file
bjohansebas Feb 11, 2025
10819f4
refactor: move navigation menu to new file
bjohansebas Feb 11, 2025
f09efda
refactor: move blog styles to new file
bjohansebas Feb 11, 2025
27b88e6
refactor: rename style.css to general.css
bjohansebas Feb 11, 2025
90ec0c1
refactor: move home style to new file
bjohansebas Feb 11, 2025
ff97ad6
refactor: move footer styles to new file
bjohansebas Feb 11, 2025
a5ff942
refactor: move api styles to new file
bjohansebas Feb 11, 2025
c782735
refactor: move side menu styles to menu.css
bjohansebas Feb 11, 2025
a0b2371
refactor: move middleware styles to new file
bjohansebas Feb 11, 2025
bb3d83e
refactor: move special api styles to api.css
bjohansebas Feb 11, 2025
85306c2
refactor: move resposive styles of search to search.css
bjohansebas Feb 11, 2025
ba2fe7d
refactor: move i18n section footer to footer.css
bjohansebas Feb 11, 2025
615d6ce
refactor: move home style to home.css
bjohansebas Feb 11, 2025
855be69
refactor: move logo table styles to community.css and strong styles t…
bjohansebas Feb 11, 2025
1652bed
refactor: reorganize general.css for improved structure
bjohansebas Feb 11, 2025
21d0f28
refactor: add support.css and community.css stylesheets to head.html
bjohansebas Feb 11, 2025
12cb8b8
rename general.css to style.css
bjohansebas Feb 11, 2025
e6291c7
merge files from the pages folder
bjohansebas Feb 11, 2025
6a7fff2
merge footer menu and search in one file
bjohansebas Feb 11, 2025
0e8e065
fix head
bjohansebas Feb 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
<script data-cfasync="false" src="/js/theme.js"></script>
<link rel="stylesheet" href="/css/variables.css?_={{ site.time | date: '%s' }}">
<link rel="stylesheet" href="/css/themes/dark-theme.css?_={{ site.time | date: '%s' }}">
<link rel="stylesheet" href="/css/themes/light-theme.css?_={{ site.time | date: '%s' }}">
<link rel="stylesheet" href="/css/style.css?_={{ site.time | date: '%s' }}">
<link rel="stylesheet" href="/css/sintax.css?_={{ site.time | date: '%s' }}">
<link rel="stylesheet" href="/css/globals.css?_={{ site.time | date: '%s' }}">
<link rel="stylesheet" href="/css/blog.css?_={{ site.time | date: '%s' }}">
<link rel="stylesheet" href="/css/pages.css?_={{ site.time | date: '%s' }}">

<link rel="stylesheet" href="/css/font-awesome.min.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;amp;subset=latin,latin-ext">
Expand Down
146 changes: 146 additions & 0 deletions css/blog.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
#blog-doc {
margin: 0 10px;
}

#blog-doc:has(> h1#express-blog),
#blog-doc:has(> h1#write-a-blog-post) {
min-height: 300px;
}

#blog-doc .blog-details~p>img {
width: 200px;
float: right;
}

#blog-doc p {
font-size: 1.1em;
}

.blog-posts {
display: flex;
flex-direction: column;
row-gap: 10px;
}

.blog-post {
width: 100%;
background-color: var(--card-bg);
display: flex;
padding: 10px;
flex-direction: column;
justify-content: space-between;
border-radius: 5px;
border: 1px solid var(--border);
box-shadow: 2px 3px var(--hover-fg);
transition: 0.3s;
}

.blog-post:hover {
background-color: var(--hover-bg);
border: 1px solid var(--hover-border);
box-shadow: 2px 3px var(--menu-grey);
}

.blog-post img {
max-width: 100%;
max-height: 100%;
object-fit: cover;
}

.blog-post .blog-details {
display: flex;
flex-direction: column;
}

.blog-details div:first-child {
margin-bottom: 5px;
}

.blog-tag {
font-size: 12px;
}

.blog-title {
font-size: 1.3rem;
line-height: 1.5rem;
font-weight: 500;
padding-right: .2em;
}

.blog-title a {
color: var(--card-fg)
}

.blog-excerpt {
font-size: .75rem;
}

.blog-img {
max-width: 100%;
margin: auto;
}

.blog-author {
font-style: italic;
}

.blog-date {
font-weight: bold;
font-size: 85%;
}


@media (min-width: 768px) {
.blog-post {
margin: auto;
}

.blog-tags {
margin-bottom: 20px;
}

.blog-title {
font-size: 1.3rem;
margin-bottom: 20px;
line-height: 1.5rem;
}

.blog-post .blog-details {
display: flex;
flex-direction: row;
margin-left: 1rem;
font-size: 90%;
}

.blog-post .blog-details div:first-child {
margin-right: 20px;
}

.blog-details {
font-size: 1rem;
}

.blog-excerpt {
line-height: initial;
font-size: .85rem;
font-weight: 300;
margin-top: auto;
margin-bottom: 10px;
max-width: 80%;
}
}

@media (max-width: 500px) {
#blog-doc {
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
margin-right: 0;
padding-right: 10px;
}

#blog-doc .blog-details+p>img {
margin-bottom: 15px;
}
}
Loading