owlcode.tech/public/css/styles.scss

305 lines
5.4 KiB
SCSS
Raw Normal View History

2023-05-04 00:07:13 +02:00
$background: url(../img/parque_patos.webp);
$background-page: #FEFEFA;
2022-11-09 13:31:58 +01:00
$color: #2f4f4f;
$color-page: #666362;
2022-11-09 22:35:48 +01:00
$background_div: blueviolet;
$color_div: #f2eb8c;
2022-11-09 13:31:58 +01:00
$background-secondary: #635283;
$color-secondary: #8eea6d;
$accent-secondary: #fde68f;
$primary-secondary: #590e11;
2022-11-11 01:09:16 +01:00
2022-11-09 13:31:58 +01:00
html {
height: 100%;
}
body {
2022-11-11 01:09:16 +01:00
p,h1,h2,h3,h4,a {
font-family: 'arial';
2022-11-11 01:09:16 +01:00
}
2022-11-09 13:31:58 +01:00
margin: 0;
padding: 0;
overflow: hidden;
min-height: 100%;
width: 100%;
height: 100%;
div.site-wrapper {
display: table;
width: 100%;
height: 100%; /* For at least Firefox */
min-height: 100%;
color: $color;
background: $background;
filter: blur(10px);
background-size: cover;
overflow: hidden;
}
div.page-contents {
position: absolute;
position: fixed;
overflow-y: scroll;
z-index: 2;
background: $background-page;
color: $color-page;
2022-11-09 13:31:58 +01:00
top: 0%;
left: 0%;
height: 100%;
2023-05-03 00:07:43 +02:00
div.child-categories-mobile a {
padding-left: 2.5rem;
}
2022-11-09 13:31:58 +01:00
width: 100%;
2022-11-12 23:52:18 +01:00
img {
max-width: 100%;
margin-left: auto;
margin-right: auto;
display: block;
2022-11-12 23:52:18 +01:00
}
2022-11-09 16:56:51 +01:00
table {
2022-11-10 18:57:22 +01:00
color: $background_div;
background: $color_div;
border: 3px solid $background_div;
border-collapse: collapse;
2023-05-05 16:42:46 +02:00
width: 100%;
td,th {
font-size: 9px;
}
table-layout: fixed;
2022-11-09 16:56:51 +01:00
}
th,td {
border: 3px solid $background_div;
border-collapse: collapse;
2022-11-09 16:56:51 +01:00
padding-right: 10px;
margin: 0;
}
2022-11-09 13:31:58 +01:00
div.description {
2022-11-17 00:44:20 +01:00
input {
display: block;
}
word-wrap: break-word;
2022-11-11 03:36:50 +01:00
div.suscribirse-rss {
img {
max-height: 300px;
}
}
2022-11-09 13:31:58 +01:00
padding: 1%;
2022-11-09 16:56:51 +01:00
margin-left: 3%;
margin-right: 3%;
2022-11-09 13:31:58 +01:00
margin-bottom: 1%;
margin-top: 10%;
div.articles {
display: flex;
flex-direction: row;
flex-wrap: wrap;
img {
border: solid 1px black;
}
2022-11-09 13:31:58 +01:00
a {
width: 100%;
display:block;
text-decoration: none;
text-overflow: ellipsis;
margin-bottom: 10px;
article {
word-wrap: break-word;
2022-11-09 13:31:58 +01:00
width: 90%;
p,h4,h3,h2 {
margin: 0px;
}
padding: 5%;;
padding-top: 1%;
2022-11-10 19:00:42 +01:00
background: $color_div;
color: $background_div;
2022-11-16 13:15:45 +01:00
box-shadow: 8px 8px 1px 0px #8ddfd6;
border: 3px solid black;
2022-11-09 13:31:58 +01:00
&:hover {
2022-11-10 19:00:42 +01:00
background: $background_div;
color: $color_div;
2022-11-09 13:31:58 +01:00
}
p.date {
text-align: right;
}
2022-11-09 13:31:58 +01:00
p.author {
text-align: right;
}
}
}
}
2022-11-10 10:49:53 +01:00
a.suscribe-category-rss {
background: $background_div;
width: 40px;
height: 40px;
padding: 10px;
border-radius: 5px;
display: inline-block;
img {
width: 40px;
height: 40px;
}
}
2022-11-09 13:31:58 +01:00
}
nav > a.menu-expand > img {
2022-11-10 21:52:11 +01:00
width: 30px;
height: 30px;
padding-top: 15px;
2022-11-10 21:52:11 +01:00
}
nav > a > img.index-image-menu {
2022-11-09 13:31:58 +01:00
vertical-align: middle;
width: 50px;
height: 50px;
padding-bottom: 10px;
2022-11-09 13:31:58 +01:00
}
nav.desktop {
display: none;
a {
2022-11-16 13:20:47 +01:00
vertical-align: middle;
background: $background_div;
}
}
2022-11-09 13:31:58 +01:00
nav {
overflow: auto;
display: block;
2023-05-05 16:32:41 +02:00
font-size: 25px;
2022-11-09 13:31:58 +01:00
margin: 0px;
a.go-to-index img {
margin-top: 5%;
}
a {
padding-left: 10px;
padding-right: 10px;
2022-11-09 13:31:58 +01:00
height: 100%;
text-decoration: none;
color: $color_div;
margin: 0;
&:hover {
2022-11-09 13:31:58 +01:00
background: $color_div;
color: $background_div;
}
&.selected {
2022-11-09 13:31:58 +01:00
background: $color_div;
color: $background_div;
}
}
a.menu-expand {
2022-11-14 03:56:36 +01:00
padding-bottom: 9px;
.open-menu-icon-hover {
display: none;
}
&:hover {
.open-menu-icon-hover {
display: block;
}
.open-menu-icon {
display: none;
}
}
2022-11-09 13:31:58 +01:00
}
}
nav.mobile-shortcuts {
position: fixed;
2022-11-14 03:56:36 +01:00
display: flex;
2022-11-09 13:31:58 +01:00
width: 100%;
background: $background_div;
height: 60px;
a {
height: 100%;
width: (100% / 6);
}
2022-11-14 03:56:36 +01:00
div {
width: (100% * 4 / 6);
2022-11-14 03:56:36 +01:00
}
2022-11-09 13:31:58 +01:00
}
nav.mobile-foldable {
display: none;
background: $background_div;
color: $color_div;
2022-11-09 13:31:58 +01:00
a {
//background: $color_div;
//color: $background_div;
2022-11-09 13:31:58 +01:00
display: block;
}
}
nav.mobile-foldable.show {
display: block;
}
h1 {
text-align: center;
}
div.footer {
p,h1,h2,h3,h4,a {
font-size: initial;
}
a.suscribe-category-rss {
padding: 7px;
}
a.suscribe-category-rss,a.suscribe-category-rss > img {
width: 20px;
height: 20px;
}
}
2022-11-09 13:31:58 +01:00
}
}
2023-05-05 16:42:46 +02:00
@media (min-width: 450px) {
body {
div.page-contents {
table {
th, td {
2023-05-06 02:32:10 +02:00
font-size: 20px;
2023-05-05 16:42:46 +02:00
}
}
}
}
}
@media (min-width: 1100px) {
2022-11-09 13:31:58 +01:00
body {
div.page-contents {
nav.mobile-foldable,nav.mobile-foldable.show {
display: none;
}
div.description {
2022-11-09 16:56:51 +01:00
margin-left: 10%;
margin-right: 10%;
2022-11-09 13:31:58 +01:00
margin-top: auto;
}
nav.desktop {
display: block;
height: auto;
a {
display: table-cell;
img.index-image-menu {
padding-top: 15px;
}
}
2022-11-09 13:31:58 +01:00
}
nav.mobile-shortcuts {
display: none;
}
2023-05-01 06:29:44 +02:00
top: 0%;
2022-11-09 13:31:58 +01:00
left: 5%;
2023-05-01 06:29:44 +02:00
height: 100%;
2022-11-09 13:31:58 +01:00
width: 90%;
}
}
}
@media (min-width: 1222px) {
body {
div.page-contents {
div.description {
margin-top: auto;
div.articles {
a {
2022-11-16 13:25:18 +01:00
width: 45%;
margin-left: 5%;
2022-11-09 13:31:58 +01:00
}
}
}
}
}
}