Last active
July 22, 2025 17:48
-
-
Save ethanpil/6db7f182515106e79c630d0b9e2146ee to your computer and use it in GitHub Desktop.
Pico CSS Personal Theme Style Preferences
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Fix oversize fonts */ | |
@media (min-width: 576px) { | |
:root, | |
:host { | |
--pico-font-size: 97%; | |
} | |
} | |
@media (min-width: 768px) { | |
:root, | |
:host { | |
--pico-font-size: 100%; | |
} | |
} | |
@media (min-width: 1024px) { | |
:root, | |
:host { | |
--pico-font-size: 100%; | |
} | |
} | |
@media (min-width: 1280px) { | |
:root, | |
:host { | |
--pico-font-size: 100%; | |
} | |
} | |
@media (min-width: 1536px) { | |
:root, | |
:host { | |
--pico-font-size: 100%; | |
} | |
} | |
h1 { | |
--pico-font-size: 1.4rem; | |
} | |
h2 { | |
--pico-font-size: 1.3rem; | |
} | |
h3 { | |
--pico-font-size: 1.2rem; | |
} | |
h4 { | |
--pico-font-size: 1.15rem; | |
} | |
h5 { | |
--pico-font-size: 1.1rem; | |
} | |
h6 { | |
--pico-font-size: 1rem; | |
} | |
/* Add Simple Grid Layouts */ | |
.grid-2 { | |
grid-template-columns: repeat(2, 1fr); | |
} | |
.grid-3 { | |
grid-template-columns: repeat(3, 1fr); | |
} | |
.grid-4 { | |
grid-template-columns: repeat(4, 1fr); | |
} | |
.grid-5 { | |
grid-template-columns: repeat(5, 1fr); | |
} | |
.grid-6 { | |
grid-template-columns: repeat(6, 1fr); | |
} | |
.grid-8 { | |
grid-template-columns: repeat(8, 1fr); | |
} | |
@media only screen and (max-width: 768px) { | |
.grid-2, .grid-3, .grid-4, .grid-5, .grid-6, .grid-8 { | |
grid-template-columns: repeat(1, 1fr); | |
} | |
} | |
/* Utility Classes to Show/Hide on Breakpoints */ | |
@media screen and (max-width:728px){ | |
.hide-md { | |
display:none; | |
} | |
} | |
@media screen and (min-width:728px){ | |
.show-md { | |
display:block; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment