$background: url(../img/parque_patos.webp); $background-page: #FEFEFA; $color: #2f4f4f; $color-page: #666362; $background_div: #5C8CED; $color_div: azure; $background-secondary: #635283; $color-secondary: #8eea6d; $accent-secondary: #fde68f; $primary-secondary: #590e11; html { height: 100%; } body { div#first-box.margin { margin-top: 60px; } div.padding { padding: 1%; } div.title-image { position: relative; max-height: 80vh; overflow: hidden; img { min-width: 100%; } div.text-title { color: coral; font-size: 3.0vh; position: absolute; top: 50%; left: 50%; text-shadow: 2px 0 black, -2px 0 black, 0 2px black, 0 -2px black, 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black; transform: translate(-50%, -50%); } } p, h1, h2, h3, h4, a { font-family: 'arial'; } 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: $color_div; color: $color-page; top: 0%; left: 0%; height: 100%; div.child-categories-mobile a { padding-left: 2.5rem; } width: 100%; img { max-width: 100%; margin-left: auto; margin-right: auto; display: block; } table { color: $background_div; background: $color_div; border: 3px solid $background_div; border-collapse: collapse; width: 100%; td, th { font-size: 12px; } table-layout: fixed; } th, td { border: 3px solid $background_div; border-collapse: collapse; padding-right: 10px; margin: 0; } div.description { background: $color_div; input { display: block; } div.content { padding: 1%; } word-wrap: break-word; div.suscribirse-rss { img { max-height: 300px; } } margin-bottom: 1%; div.articles { display: flex; flex-direction: row; flex-wrap: wrap; div.image-container { margin-left: 2.5%; margin-top: 10px; height: 95%; width: 95%; display: flex; min-height: 130px; justify-content: center; align-items: center; overflow: hidden; border: solid 1px black; img { max-width: unset; width: 100%; border: solid 1px black; } } a { min-height: 90%; width: 100%; display: block; text-decoration: none; text-overflow: ellipsis; margin-bottom: 30px; article { word-wrap: break-word; width: 90%; height: 90%; p, h4, h3, h2 { margin: 0px; } p { font-size: 0.9rem; } div.article-up-part { height: 12em; } div.article-down-part { margin-top: 2em; height: 100px; display: flex; align-items: end; padding-bottom: 2em; } padding: 5%; padding-top: 1%; background: $color_div; color: $background_div; box-shadow: 8px 8px 1px 0px #8ddfd6; border: 3px solid black; &:hover { background: $background_div; color: $color_div; } p.date { text-align: right; } p.author { text-align: right; } } } } a.suscribe-category-rss { background: $background_div; width: 40px; height: 40px; padding: 10px; border-radius: 5px; display: inline-block; img { width: 40px; height: 40px; } } } nav > a.menu-expand > img { width: 30px; height: 30px; } nav > a > img.index-image-menu { vertical-align: middle; width: 50px; height: 50px; } nav.desktop { display: none; background: $background_div; a { img { background: $color_div; } transition: ease-out 0.3s; vertical-align: middle; background: $background_div; } } nav { overflow: auto; display: block; font-size: 25px; margin: 0px; a.go-to-index img { margin-top: 5%; } a { padding-left: 10px; padding-right: 10px; height: 100%; text-decoration: none; color: $color_div; margin: 0; &:hover { background: $color_div; color: $background_div; } &.selected { background: $color_div; color: $background_div; } } a.menu-expand { .open-menu-icon-hover { display: none; } &:hover { .open-menu-icon-hover { display: block; } .open-menu-icon { display: none; } } } } nav.mobile-shortcuts { z-index: 1; position: fixed; display: flex; width: 100%; background: $background_div; height: 60px; a.go-to-index { height: 100%; background: $color_div; &:hover { background: 'ghostwhite'; } } a { width: 60px; height: 60px; } a.menu-expand { padding-top: calc((60px - 30px) / 2); padding-bottom: calc((60px - 30px) / 2); height: 30px; } div { width: calc(100% - 120px); } } nav.mobile-foldable { display: none; background: $background_div; color: $color_div; a { //background: $color_div; //color: $background_div; display: flex; height: 60px; align-items: center; } } 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; } } } } @media (min-width: 450px) { body { div.page-contents { table { th, td { font-size: 20px; } } } } } @media (min-width: 694px) { body { div.page-contents { div.description { div.articles { a { &:nth-child(2n+1) { margin-left: 0%; } width: 45%; margin-left: 5%; } } } } } } @media (min-width: 1100px) { body { div#first-box.margin { margin-top: 0px; } div.page-contents { nav.mobile-foldable, nav.mobile-foldable.show { display: none; } div.description { margin-top: auto; } nav.desktop { display: block; height: auto; a { display: table-cell; img.index-image-menu { margin-top: 10px; margin-bottom: 10px; padding: 5px; border-radius: 10px; } } } nav.mobile-shortcuts { display: none; } top: 0%; left: 0%; height: 100%; width: 100%; } } } @media (min-width: 1333px) { body { div.page-contents { div.description { div.articles { a { &:nth-child(2n+1) { margin-left: 3%; } &:nth-child(3n+1) { margin-left: 0%; } width: 30%; margin-left: 3%; } } } } } } @media (max-aspect-ratio: 3 / 5) { body { div.title-image { div.text-title { font-size: 1.9vh; } } } } @media (min-aspect-ratio: 6 / 7) { body { div.title-image { div.text-title { font-size: 5vh; } } } }