gitlin/public/css/global.css
Odyssey 7eb43d9c97 Syntax Highlighting CSS fix.
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-01 01:10:16 +01:00

269 行
4.2 KiB
CSS

/* god bless you */
@font-face {
font-family: 'Lato';
src: url('/fonts/Lato-Regular.ttf');
font-display: swap;
}
:root {
--text: #fff;
--background: #252525;
--secondary-background: #353535;
--background-darker: #151515;
--accent: #00b7c3;
}
body {
font-family: 'Lato', sans-serif;
color: #FFF;
background-color: #151515;
}
::-webkit-scrollbar {
width: 8px;
height: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 8px;
background: #252525;
}
main {
margin: 0 24vw;
}
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row;
padding: 8px;
}
.navbarImg {
height: 30px;
}
.indexGitHub {
background: #252525;
color: #fff;
padding: 4px;
border-radius: 8px;
}
.brand {
display: flex;
align-items: center;
gap: 8px;
transition: opactiy .25s;
color: var(--text);
}
.navbarSlogan:hover {
color: var(--accent);
}
.brand:hover {
opacity: .95;
}
.error {
background-color: #252525;
padding: 8px;
border-radius: 8px;
font-family: 'Lato', sans-serif;
color: #fff;
}
.center {
text-align: center;
}
a {
color: white;
text-decoration: underline;
text-underline-offset: 5px;
}
a:hover {
color: #00b7c3;
}
/* URI: /explore */
.exploreIDontKnowWhatToNameThisDiv {
background-color: #252525;
padding: 8px;
border-radius: 8px;
margin: 8px 0 8px 0;
text-overflow: ellipsis;
white-space: wrap;
}
/* URI: /:user */
.userProfile {
background-color: var(--background);
padding: 8px;
border-radius: 8px;
margin: 8px;
display: flex;
flex-direction: column;
align-items: center;
}
.userProfile h1 {
color: #00b7c3;
margin: 4px;
word-wrap: nowrap;
text-overflow: ellipsis;
}
.userProfile h2 {
margin: 4px;
}
.userProfile p {
margin: 4px;
}
.userProfile img {
border: 4px solid #00b7c3;
border-radius: 50%;
}
.userBio, .userReadme {
background-color: var(--background);
padding: 8px;
border-radius: 8px;
margin: 8px;
}
.userBioText, .userReadmeText {
background-color: var(--background-darker);
padding: 8px;
border-radius: 8px;
margin-bottom: 0;
}
.userReadmeText {
margin-top: 0;
}
/* URI: /:user/:repo */
.button {
background-color: var(--background);
padding: 8px;
border-radius: 8px;
margin: 8px;
color: var(--text);
text-decoration: none;
text-align: center;
display: inline-block;
}
.button:hover {
background-color: var(--accent);
color: var(--text);
}
.buttonParent {
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
}
.filesList {
list-style-type: none;
padding: 0;
margin: 0;
}
.filesUList {
padding: 0;
margin: 0;
list-style-type: none;
}
/* URI: /file/:user/:repo/:file */
.userReadme pre {
padding: 8px;
border-radius: 8px;
/*white-space: pre-wrap;*/
overflow-x: auto;
}
.userContainer {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.secondary {
background-color: var(--secondary-background);
}
@media screen and (prefers-color-scheme: light) {
:root {
--text: #000;
--background: #f1f1f1;
--secondary-background: #e1e1e1;
--background-darker: #fff;
}
body {
background-color: #fff;
color: #000;
}
.navbarSlogan {
color: #00b7c3;
}
.brand:hover {
opacity: .75;
}
a {
color: black;
}
a:hover {
color: #00b7c3;
}
.exploreIDontKnowWhatToNameThisDiv {
background-color: #f1f1f1;
color: #000;
}
::-webkit-scrollbar {
width: 8px;
height: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 8px;
background: #f1f1f1;
}
}
@media screen and (max-width: 900px) {
main {
margin: 8px;
}
.navbarSlogan {
display: none;
}
.navbarImg {
height: 40px;
}
.exploreIDontKnowWhatToNameThisDiv {
margin-left: 0;
margin-bottom: 8px;
margin-right: 0;
}
}