More scss file splitting, now using font instead of direct SVG icons to optimize requests.

This commit is contained in:
Adsooi 2021-07-17 00:36:59 +02:00
parent 3c87cee9e7
commit 9ff214909b
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
24 changed files with 479 additions and 118 deletions

View file

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
a[role=button] {
[role=button] {
text-decoration: none;
color: black;
cursor: pointer;
@ -45,6 +45,6 @@ a[role=button] {
}
}
.text-white a[role=button]:not(.primary), a[role=button]:not(.primary).text-white {
.text-white [role=button]:not(.primary), [role=button]:not(.primary).text-white {
color: white;
}

View file

@ -0,0 +1,40 @@
/**
* Omegamma - Hugo theme for ad5001.eu and related websites.
* Copyright (C) 2021 Ad5001
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
.center {
margin-right: auto !important;
margin-left: auto !important;
}
img.center {
display: block;
max-width: 100%;
}
.vertical-center {
margin-top: auto !important;
margin-bottom: auto !important;
max-height: 100%;
}
/* workaround for sometimes images don't position correctly vertically */
.vertical-center-img {
margin: auto;
max-height: 100%;
}

View file

@ -0,0 +1,32 @@
/**
* Omegamma - Hugo theme for ad5001.eu and related websites.
* Copyright (C) 2021 Ad5001
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
h1 {
font-size: xx-large;
&.larger {
font-size: xxx-large;
}
}
h2 {
font-size: x-large;
}
h1, h2, h3 {
font-family: var(--light-font);
}

View file

@ -0,0 +1,122 @@
/**
* Omegamma - Hugo theme for ad5001.eu and related websites.
* Copyright (C) 2021 Ad5001
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
.icon-as-text {
width: 1em;
height: 1em;
margin-top: -0.05em;
margin-right: 0.5em;
vertical-align: middle;
}
.icon-larger-text {
width: 1em;
height: 1em;
font-size: 1.4em;
margin-right: 0.35em;
margin-top: -0.14em;
vertical-align: middle;
}
.icon-larger2-text {
width: 1em;
height: 1em;
font-size: 1.6em;
margin-right: 0.31em;
margin-top: -0.19em;
vertical-align: middle;
}
.icon-twice-text {
width: 1em;
height: 1em;
font-size: 2em;
margin-right: 0.25em;
margin-top: -0.25em;
vertical-align: middle;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'omegicons';
src: url('../font/omegicons.svg?71804627#omegicons') format('svg');
}
}
*/
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: "omegicons";
font-style: normal;
font-weight: normal;
speak: never;
display: inline-block;
text-decoration: inherit;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/ /* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
/* margin-left: .2em; */
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
/* Font smoothing. That was taken from TWBS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
.icon-about:before { content: '\e800'; } /* '' */
.icon-apps:before { content: '\e801'; } /* '' */
.icon-bug:before { content: '\e802'; } /* '' */
.icon-code:before { content: '\e803'; } /* '' */
.icon-documentation:before { content: '\e804'; } /* '' */
.icon-download:before { content: '\e805'; } /* '' */
.icon-frameworks:before { content: '\e806'; } /* '' */
.icon-free:before { content: '\e807'; } /* '' */
.icon-git:before { content: '\e808'; } /* '' */
.icon-keyboard:before { content: '\e809'; } /* '' */
.icon-lang:before { content: '\e80a'; } /* '' */
.icon-license:before { content: '\e80b'; } /* '' */
.icon-lookup:before { content: '\e80c'; } /* '' */
.icon-menu:before { content: '\e80d'; } /* '' */
.icon-open-external:before { content: '\e80e'; } /* '' */
.icon-person:before { content: '\e80f'; } /* '' */
.icon-platforms:before { content: '\e810'; } /* '' */
.icon-privacy:before { content: '\e811'; } /* '' */
.icon-touch:before { content: '\e812'; } /* '' */
.icon-wrench:before { content: '\e813'; } /* '' */
.icon-firefox:before { content: '\e814'; } /* '' */
.icon-linux:before { content: '\e815'; } /* '' */
.icon-macosx:before { content: '\e816'; } /* '' */
.icon-universal:before { content: '\e817'; } /* '' */
.icon-web:before { content: '\e818'; } /* '' */
.icon-windows:before { content: '\e819'; } /* '' */
.icon-github:before { content: '\e81b'; } /* '' */
.icon-mail:before { content: '\e81c'; } /* '' */
.icon-mastodon:before { content: '\e81d'; } /* '' */
.icon-twitter:before { content: '\e81e'; } /* '' */

View file

@ -0,0 +1,43 @@
/**
* Omegamma - Hugo theme for ad5001.eu and related websites.
* Copyright (C) 2021 Ad5001
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
.padding-container {
padding: 1em;
}
.padding-container-1 {
padding-left: 1em;
padding-right: 1em;
}
.padding-container-point3 {
padding-left: .3em;
padding-right: .3em;
}
.padding-container-3 {
padding-left: 3em;
padding-right: 3em;
}
@media screen and (max-width: 850px) {
.padding-container-1, .padding-container-3 {
padding-left: 0.5em;
padding-right: 0.5em;
}
}

View file

@ -0,0 +1,38 @@
/**
* Omegamma - Hugo theme for ad5001.eu and related websites.
* Copyright (C) 2021 Ad5001
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.text-white {
color: white;
}
p, .text-content {
line-height: 1.5em;
}