.frontpage-banner { background-color: $meta-light-fg; background-size: cover; background-repeat: no-repeat; background-position: center; height: 150px; width: calc(100% - 40px); max-width: 1920px; align-self: center; flex: 0 0 150px; margin-bottom: 20px; color: white; text-shadow: 0 0 0.3em #000000; text-align: right; font-size: 1.6em; padding: 10px 20px; text-decoration: none; margin: 20px 0; } frontpage { display: flex; align-self: center; width: calc(100% - 40px); max-width: 1200px; flex: 2 0 0; .frontpage-news { display: flex; flex-direction: column; } aside.sidebar { width: 250px; flex: 0 0 250px; align-self: flex-start; margin-right: 20px; display: flex; flex-direction: column; .categories { padding: 10px 10px 20px; margin-bottom: 20px; background: $newsitem-bg; border: $newsitem-border; } h4 { font-size: 14px; padding: 0 5px 5px; font-weight: bold; margin: 0 0 10px; border-bottom: 1px solid $border; } ul { margin: 0; padding: 0; li { padding-left: 10px; list-style-type: disc; list-style-position: inside; a { display: inline-block; } } } a { padding: 5px 5px 0px; display: block; text-decoration: none; color: $secondary-dark-bg; font-size: 14px; font-weight: bold; } } .loading-spinner { height: 100px; } newsitem { margin-bottom: 30px; } .asunaside { display: none; } } @media screen and (max-width: 1000px){ frontpage aside.sidebar { width: 200px; flex: 0 0 200px; } } @media screen and (max-width: 800px){ frontpage { flex-direction: column; } frontpage aside.sidebar { width: auto; flex: 0 0 auto; align-self: stretch; margin: 20px 0 30px; border-bottom: 1px solid $border; order: 2; } } @media screen and (min-width: 800px){ frontpage .asunaside { display: block; width: 200px; height: 480px; background-size: contain; background-repeat: no-repeat; background-position: top left; align-self: center; } .daymode frontpage .asunaside { background-image: url("/assets/img/asuna_frontpage.jpg"); } .darkmodeon frontpage .asunaside { background-image: url("/assets/img/dark_asuna_frontpage.jpg"); } } @media screen and (max-width: 480px){ .frontpage-banner { width: 100%; } frontpage { padding: 0 10px; margin: 0; width: 100%; } } .darkmodeon { .frontpage-banner { background-color: $dark_meta-light-fg; } frontpage { aside.sidebar { .categories { background: $dark_newsitem-bg; border: $dark_newsitem-border; } h4 { border-bottom: 1px solid $dark_border; } a { color: $dark_secondary-dark-bg; } } } }