update css style (#4)

Fix: update extra.css
This commit is contained in:
Ethan Foo 2021-12-03 14:20:10 +08:00 committed by GitHub
parent 5125fe3eb4
commit c86baf1acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 321 additions and 327 deletions

View File

@ -1,16 +1,11 @@
:root { :root {
/* --md-primary-fg-color: rgb(53, 112, 227);
--md-primary-fg-color--light: rgb(109, 145, 219);
--md-primary-fg-color--dark: rgb(41, 99, 214); */
/* --md-primary-fg-color: #0056FF;
--md-primary-fg-color--light: #5586cf;
--md-primary-fg-color--dark: #3d71be; */
--md-primary-fg-color: #1a7dc9; --md-primary-fg-color: #1a7dc9;
--home-color: #0071c7; --home-color: #0071c7;
--nav-item-color: #4d4d4d; --nav-item-color: #4d4d4d;
--md-accent-fg-color: #0071c7;
} }
.md-header__button.md-logo img { .md-header__button.md-logo img {
width: 5.5rem; width: 5.5rem;
height: 1.5rem; height: 1.5rem;
@ -29,10 +24,9 @@
margin-top: 50px; margin-top: 50px;
} }
.md-tabs { /* .md-tabs {
/* background-image: linear-gradient(45deg, rgb(53, 112, 227) 0%, rgb(53, 112, 227) 24%, rgb(42, 125, 227) 53%, rgb(27, 141, 226) 78%, rgb(8, 162, 225) 100%); */
box-shadow: 0 0 0.2rem rgb(0 0 0 / 10%), 0 0.2rem 0.4rem rgb(0 0 0 / 20%); box-shadow: 0 0 0.2rem rgb(0 0 0 / 10%), 0 0.2rem 0.4rem rgb(0 0 0 / 20%);
} } */
.md-nav__item--nested>.md-nav__link, .md-nav__item a { .md-nav__item--nested>.md-nav__link, .md-nav__item a {
color: var(--nav-item-color); color: var(--nav-item-color);
@ -60,7 +54,6 @@
} }
.md-sidebar--primary .md-nav__item .md-nav__link--active { .md-sidebar--primary .md-nav__item .md-nav__link--active {
/* background-color: aliceblue; */
background: linear-gradient(295deg,#edf8ff,rgba(232,236,244,0)); background: linear-gradient(295deg,#edf8ff,rgba(232,236,244,0));
border-right: 2px solid #1a7dc9; border-right: 2px solid #1a7dc9;
} }
@ -76,11 +69,11 @@
max-width: 64rem; max-width: 64rem;
} }
@media screen and (min-width: 76.25em) { /* @media screen and (min-width: 76.25em) {
.md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{ .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{
margin-left: 1.6rem; margin-left: 1.6rem;
} }
} } */
.md-tabs__link { .md-tabs__link {
font-weight: 450; font-weight: 450;

View File

@ -1,6 +1,6 @@
INHERIT: nav.yml INHERIT: nav.yml
site_name: Loggie site_name: ' '
site_description: Loggie Documentation site_description: Loggie Documentation
extra_css: extra_css:
@ -30,13 +30,13 @@ theme:
# palette: # palette:
# - scheme: default # - scheme: default
# primary: white # primary: indigo
# accent: indigo # accent: indigo
# toggle: # toggle:
# icon: material/toggle-switch-off-outline # icon: material/toggle-switch-off-outline
# name: Switch to dark mode # name: Switch to dark mode
# - scheme: slate # - scheme: slate
# primary: red # primary: white
# accent: red # accent: red
# toggle: # toggle:
# icon: material/toggle-switch # icon: material/toggle-switch

View File

@ -9,6 +9,12 @@
padding: 0; padding: 0;
} }
@media screen and (min-width: 76.25em) {
[dir=ltr] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner {
margin-left: 0;
}
}
.md-main__inner .md-content__inner:before { .md-main__inner .md-content__inner:before {
display: none; display: none;
} }
@ -207,7 +213,7 @@
background: #fff; background: #fff;
} }
@media only screen and (max-width: 1440px) { /* @media only screen and (max-width: 1440px) {
.components-container, .components-container,
.whats-next-container, .whats-next-container,
.usedby-container, .usedby-container,
@ -228,12 +234,8 @@
margin:0 auto; margin:0 auto;
float: none; float: none;
} }
} } */
/*fixing issue in safari css */
.md-typeset .task-list-item {
margin-left: 25px;
}
/* No next/prev links on home page so make sure next/prev area of footer collapses nicely */ /* No next/prev links on home page so make sure next/prev area of footer collapses nicely */
footer nav.md-footer__inner { footer nav.md-footer__inner {

View File

@ -1,2 +1 @@
{% extends "base.html" %} {% extends "base.html" %}