1
0

AOC layout changes

This commit is contained in:
Mike Schwörer 2019-11-08 16:09:42 +01:00
parent 829738fabb
commit 3f95aa49e1
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
11 changed files with 391 additions and 314 deletions

View File

@ -310,6 +310,141 @@ body {
cursor: pointer; cursor: pointer;
} }
@media (max-width: 767px) {
.pagination {
flex-direction: column;
}
.pag20 {
flex-direction: column;
}
.pag10 {
flex-direction: column;
}
.pag05 {
flex-direction: row;
}
}
@media (min-width: 768px) and (max-width: 850px) {
.pagination {
flex-direction: column;
}
.pag20 {
flex-direction: column;
}
.pag10 {
flex-direction: row;
}
.pag05 {
flex-direction: row;
}
}
@media (min-width: 851px) and (max-width: 991px) {
.pagination {
flex-direction: column;
}
.pag20 {
flex-direction: column;
}
.pag10 {
flex-direction: row;
}
.pag05 {
flex-direction: row;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.pagination {
flex-direction: column;
}
.pag20 {
flex-direction: column;
}
.pag10 {
flex-direction: row;
}
.pag05 {
flex-direction: row;
}
}
@media (min-width: 1200px) {
.pagination {
flex-direction: column;
}
.pag20 {
flex-direction: row;
}
.pag10 {
flex-direction: row;
}
.pag05 {
flex-direction: row;
}
}
.pagination {
display: flex;
}
.pagination .pagAny {
display: flex;
align-self: center;
}
.pagination .pag20 {
display: flex;
align-self: center;
}
.pagination .pag10 {
display: flex;
}
.pagination .pag05 {
display: flex;
margin: 4px 0;
}
.pagination .pagbtn {
display: block;
text-decoration: none;
min-width: 1.8em;
padding: 0 5px;
margin: 0 4px;
border-radius: 2px;
text-align: center;
color: #000000;
background: #AAAAAA;
border: 1px solid #777777;
}
.pagination .pagAny .pagbtn {
margin: 4px;
}
.pagination .pagbtn_disabled {
color: #888888;
background: #BBBBBB;
border: 1px solid #777777;
}
.pagination .pagbtn.pagbtn_disabled:hover {
border: 1px solid #777777;
}
.pagination .pagbtn_active {
color: #000000;
background: #666666;
border: 1px solid #000000;
}
.pagination .pagbtn:hover {
border: 1px solid #000000;
}
/* 400px */ /* 400px */
#headerdiv { #headerdiv {
z-index: 999; z-index: 999;
@ -988,127 +1123,6 @@ html, body {
padding: 0 5px; padding: 0 5px;
} }
.bce_pagination {
display: flex;
}
.bce_pagination .bce_pag20 {
display: flex;
align-self: center;
}
.bce_pagination .bce_pag10 {
display: flex;
}
.bce_pagination .bce_pag05 {
display: flex;
margin: 4px 0;
}
.bce_pagination .bce_pagbtn {
display: block;
color: #000000;
text-decoration: none;
min-width: 1.8em;
padding: 0 5px;
margin: 0 4px;
border-radius: 2px;
border: 1px solid #777777;
background: #AAAAAA;
text-align: center;
}
.bce_pagination .bce_pagbtn_disabled {
color: #888;
background: #BBB;
}
.bce_pagination .bce_pagbtn_active {
color: #000000;
background: #666666;
border: 1px solid #000;
}
@media (max-width: 767px) {
.bce_pagination {
flex-direction: column;
}
.bce_pag20 {
flex-direction: column;
}
.bce_pag10 {
flex-direction: column;
}
.bce_pag05 {
flex-direction: row;
}
}
@media (min-width: 768px) and (max-width: 850px) {
.bce_pagination {
flex-direction: column;
}
.bce_pag20 {
flex-direction: column;
}
.bce_pag10 {
flex-direction: row;
}
.bce_pag05 {
flex-direction: row;
}
}
@media (min-width: 851px) and (max-width: 991px) {
.bce_pagination {
flex-direction: column;
}
.bce_pag20 {
flex-direction: column;
}
.bce_pag10 {
flex-direction: row;
}
.bce_pag05 {
flex-direction: row;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.bce_pagination {
flex-direction: column;
}
.bce_pag20 {
flex-direction: column;
}
.bce_pag10 {
flex-direction: row;
}
.bce_pag05 {
flex-direction: row;
}
}
@media (min-width: 1200px) {
.bce_pagination {
flex-direction: column;
}
.bce_pag20 {
flex-direction: row;
}
.bce_pag10 {
flex-direction: row;
}
.bce_pag05 {
flex-direction: row;
}
}
/* 400px */ /* 400px */
.aoc_calendar_parent { .aoc_calendar_parent {
display: flex; display: flex;
@ -1122,7 +1136,7 @@ html, body {
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
margin-bottom: 0.5em; margin-bottom: 0.5em;
background: #F8B229; background: #888888;
} }
.aoc_calendar_header_link { .aoc_calendar_header_link {
@ -1156,10 +1170,10 @@ html, body {
.aoc_calendar { .aoc_calendar {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #EFEFEF; background: #AAAAAA;
font-size: xx-large; font-size: xx-large;
font-family: Consolas, Monaco, "Courier New", Menlo, monospace; font-family: Consolas, Monaco, "Courier New", Menlo, monospace;
border: 1px solid #000000; border: 1px solid #333333;
padding-bottom: 0.5em; padding-bottom: 0.5em;
} }
@ -1183,10 +1197,10 @@ html, body {
} }
.aoc_calendar_field.aoc_enabled { .aoc_calendar_field.aoc_enabled {
background: #165B33; background: #2D4E3B;
color: #BB2528; color: #BB2528;
border: 1px solid #FFFFFF; border: 1px solid #FFFFFF;
text-shadow: 0 0 0.2em #222; text-shadow: 0 0 0.2em #222222;
font-weight: bold; font-weight: bold;
} }
@ -1198,32 +1212,36 @@ html, body {
} }
.aoc_calendar_field.aoc_disabled { .aoc_calendar_field.aoc_disabled {
background: #444; background: #444444;
color: #888; color: #888888;
border: 1px solid #888; border: 1px solid #888;
cursor: default; cursor: default;
font-weight: normal; font-weight: normal;
} }
.bc_aoc_description_parent {
background-color: #333333;
color: #DDDDDD;
}
.bc_aoc_description { .bc_aoc_description {
font-family: Consolas, Monaco, "Courier New", Menlo, monospace; font-family: Consolas, Monaco, "Courier New", Menlo, monospace;
background-color: #333;
color: #DDD;
padding: 1ch; padding: 1ch;
max-width: 82ch; max-width: 82ch;
} }
.bc_aoc_input { .bc_aoc_input {
font-family: Consolas, Monaco, "Courier New", Menlo, monospace; font-family: Consolas, Monaco, "Courier New", Menlo, monospace;
border: 1px solid #000; border: 1px solid #333333;
padding: 1em; padding: 1em;
max-height: 150px; max-height: 150px;
overflow-y: scroll; overflow-y: scroll;
background: #F8F8F8; background: #F8F8F8;
color: #000000;
} }
.bc_aoc_solution_parent { .bc_aoc_solution_parent {
border: 1px solid #000; border: 1px solid #333333;
} }
.bc_aoc_solution_code { .bc_aoc_solution_code {
@ -1231,12 +1249,13 @@ html, body {
} }
.bc_aoc_solution_code pre { .bc_aoc_solution_code pre {
margin: 0; margin: 0 !important;
border: none; border: none;
} }
.bc_aoc_solution_value { .bc_aoc_solution_value {
background: #AAA; background: #888888;
color: #000000;
} }
/* 400px */ /* 400px */

View File

@ -52,6 +52,47 @@ body{background-color:#eee;color:#333;font-family:"Times New Roman",serif}
.imgcarousel_next svg{width:48px;height:48px;border:1px solid black;background:#333;fill:#ddd} .imgcarousel_next svg{width:48px;height:48px;border:1px solid black;background:#333;fill:#ddd}
.imgcarousel_prev:hover svg{background:#000;fill:#fff;cursor:pointer} .imgcarousel_prev:hover svg{background:#000;fill:#fff;cursor:pointer}
.imgcarousel_next:hover svg{background:#000;fill:#fff;cursor:pointer} .imgcarousel_next:hover svg{background:#000;fill:#fff;cursor:pointer}
@media(max-width:767px){
.pagination{flex-direction:column}
.pag20{flex-direction:column}
.pag10{flex-direction:column}
.pag05{flex-direction:row}
}
@media(min-width:768px) and (max-width:850px){
.pagination{flex-direction:column}
.pag20{flex-direction:column}
.pag10{flex-direction:row}
.pag05{flex-direction:row}
}
@media(min-width:851px) and (max-width:991px){
.pagination{flex-direction:column}
.pag20{flex-direction:column}
.pag10{flex-direction:row}
.pag05{flex-direction:row}
}
@media(min-width:992px) and (max-width:1199px){
.pagination{flex-direction:column}
.pag20{flex-direction:column}
.pag10{flex-direction:row}
.pag05{flex-direction:row}
}
@media(min-width:1200px){
.pagination{flex-direction:column}
.pag20{flex-direction:row}
.pag10{flex-direction:row}
.pag05{flex-direction:row}
}
.pagination{display:flex}
.pagination .pagAny{display:flex;align-self:center}
.pagination .pag20{display:flex;align-self:center}
.pagination .pag10{display:flex}
.pagination .pag05{display:flex;margin:4px 0}
.pagination .pagbtn{display:block;text-decoration:none;min-width:1.8em;padding:0 5px;margin:0 4px;border-radius:2px;text-align:center;color:#000;background:#aaa;border:1px solid #777}
.pagination .pagAny .pagbtn{margin:4px}
.pagination .pagbtn_disabled{color:#888;background:#bbb;border:1px solid #777}
.pagination .pagbtn.pagbtn_disabled:hover{border:1px solid #777}
.pagination .pagbtn_active{color:#000;background:#666;border:1px solid #000}
.pagination .pagbtn:hover{border:1px solid #000}
#headerdiv{z-index:999;background-color:#333;display:flex;border-bottom:1px solid #111;box-shadow:0 0 8px #000;position:fixed;width:100%} #headerdiv{z-index:999;background-color:#333;display:flex;border-bottom:1px solid #111;box-shadow:0 0 8px #000;position:fixed;width:100%}
#headerdiv .logowrapper{flex:initial;margin:0;padding:0;height:42px} #headerdiv .logowrapper{flex:initial;margin:0;padding:0;height:42px}
#headerdiv .logowrapper a{cursor:default} #headerdiv .logowrapper a{cursor:default}
@ -176,62 +217,26 @@ html,body{margin:0;padding:0;height:100%}
#PEB_tableProblems tr td:nth-child(4),#PEB_tableProblems tr th:nth-child(4){display:none} #PEB_tableProblems tr td:nth-child(4),#PEB_tableProblems tr th:nth-child(4){display:none}
} }
.bce_description,.bce_explanation{background:#eee;color:#333;border:1px solid rgba(0,0,0,0.15);padding:0 5px} .bce_description,.bce_explanation{background:#eee;color:#333;border:1px solid rgba(0,0,0,0.15);padding:0 5px}
.bce_pagination{display:flex}
.bce_pagination .bce_pag20{display:flex;align-self:center}
.bce_pagination .bce_pag10{display:flex}
.bce_pagination .bce_pag05{display:flex;margin:4px 0}
.bce_pagination .bce_pagbtn{display:block;color:#000;text-decoration:none;min-width:1.8em;padding:0 5px;margin:0 4px;border-radius:2px;border:1px solid #777;background:#aaa;text-align:center}
.bce_pagination .bce_pagbtn_disabled{color:#888;background:#BBB}
.bce_pagination .bce_pagbtn_active{color:#000;background:#666;border:1px solid #000}
@media(max-width:767px){
.bce_pagination{flex-direction:column}
.bce_pag20{flex-direction:column}
.bce_pag10{flex-direction:column}
.bce_pag05{flex-direction:row}
}
@media(min-width:768px) and (max-width:850px){
.bce_pagination{flex-direction:column}
.bce_pag20{flex-direction:column}
.bce_pag10{flex-direction:row}
.bce_pag05{flex-direction:row}
}
@media(min-width:851px) and (max-width:991px){
.bce_pagination{flex-direction:column}
.bce_pag20{flex-direction:column}
.bce_pag10{flex-direction:row}
.bce_pag05{flex-direction:row}
}
@media(min-width:992px) and (max-width:1199px){
.bce_pagination{flex-direction:column}
.bce_pag20{flex-direction:column}
.bce_pag10{flex-direction:row}
.bce_pag05{flex-direction:row}
}
@media(min-width:1200px){
.bce_pagination{flex-direction:column}
.bce_pag20{flex-direction:row}
.bce_pag10{flex-direction:row}
.bce_pag05{flex-direction:row}
}
.aoc_calendar_parent{display:flex;justify-content:center;margin-top:1em;padding-bottom:1.5em} .aoc_calendar_parent{display:flex;justify-content:center;margin-top:1em;padding-bottom:1.5em}
.aoc_calendar_header{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:.5em;background:#f8b229} .aoc_calendar_header{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:.5em;background:#888}
.aoc_calendar_header_link{display:flex;color:#000;text-decoration:none} .aoc_calendar_header_link{display:flex;color:#000;text-decoration:none}
.aoc_calendar_header_title{flex-grow:0;display:flex;color:#000;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:bold} .aoc_calendar_header_title{flex-grow:0;display:flex;color:#000;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:bold}
.aoc_calendar_header_link.aoc_prev{flex-grow:0;padding-left:.5em} .aoc_calendar_header_link.aoc_prev{flex-grow:0;padding-left:.5em}
.aoc_calendar_header_link.aoc_next{flex-grow:0;padding-right:.5em} .aoc_calendar_header_link.aoc_next{flex-grow:0;padding-right:.5em}
.aoc_calendar_header_link.aoc_link_hidden{visibility:hidden} .aoc_calendar_header_link.aoc_link_hidden{visibility:hidden}
.aoc_calendar{display:flex;flex-direction:column;background:#efefef;font-size:xx-large;font-family:Consolas,Monaco,"Courier New",Menlo,monospace;border:1px solid #000;padding-bottom:.5em} .aoc_calendar{display:flex;flex-direction:column;background:#aaa;font-size:xx-large;font-family:Consolas,Monaco,"Courier New",Menlo,monospace;border:1px solid #333;padding-bottom:.5em}
.aoc_calendar_row{display:flex;flex-direction:row;justify-content:center;margin-left:.5em;margin-right:.5em} .aoc_calendar_row{display:flex;flex-direction:row;justify-content:center;margin-left:.5em;margin-right:.5em}
.aoc_calendar_field{display:flex;align-items:center;justify-content:center;width:2em;height:2em;margin:4px;text-decoration:none;font-weight:bold} .aoc_calendar_field{display:flex;align-items:center;justify-content:center;width:2em;height:2em;margin:4px;text-decoration:none;font-weight:bold}
.aoc_calendar_field.aoc_enabled{background:#165b33;color:#bb2528;border:1px solid #fff;text-shadow:0 0 .2em #222;font-weight:bold} .aoc_calendar_field.aoc_enabled{background:#2d4e3b;color:#bb2528;border:1px solid #fff;text-shadow:0 0 .2em #222;font-weight:bold}
.aoc_calendar_field.aoc_enabled:hover{background:#165b00;color:#bb2528;border:1px solid #bb2528;text-shadow:0 0 0 #000} .aoc_calendar_field.aoc_enabled:hover{background:#165b00;color:#bb2528;border:1px solid #bb2528;text-shadow:0 0 0 #000}
.aoc_calendar_field.aoc_disabled{background:#444;color:#888;border:1px solid #888;cursor:default;font-weight:normal} .aoc_calendar_field.aoc_disabled{background:#444;color:#888;border:1px solid #888;cursor:default;font-weight:normal}
.bc_aoc_description{font-family:Consolas,Monaco,"Courier New",Menlo,monospace;background-color:#333;color:#DDD;padding:1ch;max-width:82ch} .bc_aoc_description_parent{background-color:#333;color:#ddd}
.bc_aoc_input{font-family:Consolas,Monaco,"Courier New",Menlo,monospace;border:1px solid #000;padding:1em;max-height:150px;overflow-y:scroll;background:#f8f8f8} .bc_aoc_description{font-family:Consolas,Monaco,"Courier New",Menlo,monospace;padding:1ch;max-width:82ch}
.bc_aoc_solution_parent{border:1px solid #000} .bc_aoc_input{font-family:Consolas,Monaco,"Courier New",Menlo,monospace;border:1px solid #333;padding:1em;max-height:150px;overflow-y:scroll;background:#f8f8f8;color:#000}
.bc_aoc_solution_parent{border:1px solid #333}
.bc_aoc_solution_code{padding:0} .bc_aoc_solution_code{padding:0}
.bc_aoc_solution_code pre{margin:0;border:0} .bc_aoc_solution_code pre{margin:0 !important;border:0}
.bc_aoc_solution_value{background:#AAA} .bc_aoc_solution_value{background:#888;color:#000}
.prgl_parent{display:flex;flex-direction:column} .prgl_parent{display:flex;flex-direction:column}
@media(max-width:850px){.prgl_parent{align-items:center}} @media(max-width:850px){.prgl_parent{align-items:center}}
.prgl_elem{display:flex;flex-direction:row;text-decoration:none;background:#bbb;border:1px solid #444;color:#333;margin:5px 0} .prgl_elem{display:flex;flex-direction:row;text-decoration:none;background:#bbb;border:1px solid #444;color:#333;margin:5px 0}

View File

@ -1,11 +1,5 @@
@import 'styles_config'; @import 'styles_config';
$COL_CHRISTMAS_YELLOW: #F8B229;
$COL_CHRISTMAS_WHITE: #EFEFEF;
$COL_CHRISTMAS_GREEN: #165B33;
$COL_CHRISTMAS_GREEN_ALT: #165B00;
$COL_CHRISTMAS_RED: #BB2528;
// ==================== AdventOfCode Blog Listing ==================== // // ==================== AdventOfCode Blog Listing ==================== //
.aoc_calendar_parent { .aoc_calendar_parent {
@ -23,13 +17,13 @@ $COL_CHRISTMAS_RED: #BB2528;
margin-bottom: 0.5em; margin-bottom: 0.5em;
background: $COL_CHRISTMAS_YELLOW; background: $LAYER2_HEADER_BG;
} }
.aoc_calendar_header_link { .aoc_calendar_header_link {
display: flex; display: flex;
color: #000000; color: $LAYER2_HEADER_FG;
text-decoration: none; text-decoration: none;
} }
@ -37,7 +31,7 @@ $COL_CHRISTMAS_RED: #BB2528;
flex-grow: 0; flex-grow: 0;
display: flex; display: flex;
color: #000000; color: $LAYER2_HEADER_FG;
font-family: $FONT_HEADER; font-family: $FONT_HEADER;
font-weight: bold; font-weight: bold;
} }
@ -60,12 +54,12 @@ $COL_CHRISTMAS_RED: #BB2528;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: $COL_CHRISTMAS_WHITE; background: $LAYER2_BG;
font-size: xx-large; font-size: xx-large;
font-family: $FONT_CODE; font-family: $FONT_CODE;
border: 1px solid #000000; border: $LAYER2_BORDER;
padding-bottom: 0.5em; padding-bottom: 0.5em;
} }
@ -95,23 +89,23 @@ $COL_CHRISTMAS_RED: #BB2528;
} }
.aoc_calendar_field.aoc_enabled { .aoc_calendar_field.aoc_enabled {
background: $COL_CHRISTMAS_GREEN; background: $AOC_FIELD_GREEN;
color: $COL_CHRISTMAS_RED; color: $AOC_FIELD_RED;
border: 1px solid #FFFFFF; border: 1px solid #FFFFFF;
text-shadow: 0 0 0.2em #222; text-shadow: 0 0 0.2em #222222;
font-weight: bold; font-weight: bold;
} }
.aoc_calendar_field.aoc_enabled:hover { .aoc_calendar_field.aoc_enabled:hover {
background: $COL_CHRISTMAS_GREEN_ALT; background: $AOC_FIELD_GREEN_ALT;
color: $COL_CHRISTMAS_RED; color: $AOC_FIELD_RED;
border: 1px solid $COL_CHRISTMAS_RED; border: 1px solid $AOC_FIELD_RED;
text-shadow: 0 0 0 #000; text-shadow: 0 0 0 #000;
} }
.aoc_calendar_field.aoc_disabled { .aoc_calendar_field.aoc_disabled {
background: #444; background: $AOC_FIELD_DISABLED_BG;
color: #888; color: $AOC_FIELD_DISABLED_FG;
border: 1px solid #888; border: 1px solid #888;
cursor: default; cursor: default;
font-weight: normal; font-weight: normal;
@ -119,25 +113,29 @@ $COL_CHRISTMAS_RED: #BB2528;
// ==================== AdventOfCode Blog - Single Day View ==================== // // ==================== AdventOfCode Blog - Single Day View ==================== //
.bc_aoc_description_parent {
background-color: $AOC_DESCRIPTION_BG;
color: $AOC_DESCRIPTION_FG;
}
.bc_aoc_description { .bc_aoc_description {
font-family: $FONT_CODE; font-family: $FONT_CODE;
background-color: #333;
color: #DDD;
padding: 1ch; padding: 1ch;
max-width: 82ch; max-width: 82ch;
} }
.bc_aoc_input { .bc_aoc_input {
font-family: $FONT_CODE; font-family: $FONT_CODE;
border: 1px solid #000; border: $LAYER2_BORDER;
padding: 1em; padding: 1em;
max-height: 150px; max-height: 150px;
overflow-y: scroll; overflow-y: scroll;
background: #F8F8F8; background: $LAYER2_CODE_BG;
color: $LAYER2_CODE_FG;
} }
.bc_aoc_solution_parent { .bc_aoc_solution_parent {
border: 1px solid #000; border: $LAYER2_BORDER;
} }
.bc_aoc_solution_code { .bc_aoc_solution_code {
@ -145,10 +143,11 @@ $COL_CHRISTMAS_RED: #BB2528;
} }
.bc_aoc_solution_code pre { .bc_aoc_solution_code pre {
margin: 0; margin: 0 !important;
border: none; border: none;
} }
.bc_aoc_solution_value { .bc_aoc_solution_value {
background: #AAA; background: $LAYER2_HEADER_BG;
color: $LAYER2_HEADER_FG;
} }

View File

@ -97,82 +97,4 @@
padding: 0 5px; padding: 0 5px;
} }
.bce_pagination {
display:flex;
.bce_pag20 {
display:flex;
align-self: center;
}
.bce_pag10 {
display:flex;
}
.bce_pag05 {
display:flex;
margin: 4px 0;
}
.bce_pagbtn {
display: block;
color: $BUTTON_PAGINATION_FG;
text-decoration: none;
min-width: 1.8em;
padding: 0 5px;
margin: 0 4px;
border-radius: 2px;
border: $BUTTON_PAGINATION_BORDER;
background: $BUTTON_PAGINATION_BG;
text-align: center;
}
.bce_pagbtn_disabled {
color: #888;
background: #BBB;
}
.bce_pagbtn_active {
color: $BUTTON_PAGINATION_DISABLED_FG;
background: $BUTTON_PAGINATION_DISABLED_BG;
border: $BUTTON_PAGINATION_DISABLED_BORDER;
}
}
@include rdmedia(0)
{
.bce_pagination { flex-direction: column; }
.bce_pag20 { flex-direction: column; }
.bce_pag10 { flex-direction: column; }
.bce_pag05 { flex-direction: row; }
}
@include rdmedia(1)
{
.bce_pagination { flex-direction: column; }
.bce_pag20 { flex-direction: column; }
.bce_pag10 { flex-direction: row; }
.bce_pag05 { flex-direction: row; }
}
@include rdmedia(2)
{
.bce_pagination { flex-direction: column; }
.bce_pag20 { flex-direction: column; }
.bce_pag10 { flex-direction: row; }
.bce_pag05 { flex-direction: row; }
}
@include rdmedia(3)
{
.bce_pagination { flex-direction: column; }
.bce_pag20 { flex-direction: column; }
.bce_pag10 { flex-direction: row; }
.bce_pag05 { flex-direction: row; }
}
@include rdmedia(4)
{
.bce_pagination { flex-direction: column; }
.bce_pag20 { flex-direction: row; }
.bce_pag10 { flex-direction: row; }
.bce_pag05 { flex-direction: row; }
}

View File

@ -84,9 +84,13 @@ $COL_BUTTON_CAROUSEL_BG_HOVER: #000000;
$BUTTON_PAGINATION_FG: #000000; $BUTTON_PAGINATION_FG: #000000;
$BUTTON_PAGINATION_BG: #AAAAAA; $BUTTON_PAGINATION_BG: #AAAAAA;
$BUTTON_PAGINATION_BORDER: 1px solid #777777; $BUTTON_PAGINATION_BORDER: 1px solid #777777;
$BUTTON_PAGINATION_DISABLED_FG: #000000; $BUTTON_PAGINATION_HIGHLIGHT_FG: #000000;
$BUTTON_PAGINATION_DISABLED_BG: #666666; $BUTTON_PAGINATION_HIGHLIGHT_BG: #666666;
$BUTTON_PAGINATION_DISABLED_BORDER: 1px solid #000; $BUTTON_PAGINATION_HIGHLIGHT_BORDER: 1px solid #000000;
$BUTTON_PAGINATION_DISABLED_FG: #888888;
$BUTTON_PAGINATION_DISABLED_BG: #BBBBBB;
$BUTTON_PAGINATION_DISABLED_BORDER: 1px solid #777777;
$BUTTON_PAGINATION_HOVER_BORDER: 1px solid #000000;
// ------------------------------------ // ------------------------------------
@ -126,6 +130,18 @@ $COL_EULER_TIME_4_LIT: #D89D9D;
$COL_EULER_TIME_NONE_LIT: #CCCCCC; $COL_EULER_TIME_NONE_LIT: #CCCCCC;
// ------------------------------------
$AOC_FIELD_GREEN: #2D4E3B;
$AOC_FIELD_GREEN_ALT: #165B00;
$AOC_FIELD_RED: #BB2528;
$AOC_FIELD_DISABLED_BG: #444444;
$AOC_FIELD_DISABLED_FG: #888888;
$AOC_DESCRIPTION_FG: #DDDDDD;
$AOC_DESCRIPTION_BG: #333333;
// ------------------------------------ // ------------------------------------
$COL_ADMIN_OK: #00FF00; $COL_ADMIN_OK: #00FF00;

View File

@ -280,3 +280,103 @@ body {
.imgcarousel_next svg { width: 48px; height: 48px; border: 1px solid black; background: $COL_BUTTON_CAROUSEL_BG; fill: $COL_BUTTON_CAROUSEL_FG; } .imgcarousel_next svg { width: 48px; height: 48px; border: 1px solid black; background: $COL_BUTTON_CAROUSEL_BG; fill: $COL_BUTTON_CAROUSEL_FG; }
.imgcarousel_prev:hover svg { background: $COL_BUTTON_CAROUSEL_BG_HOVER; fill: $COL_BUTTON_CAROUSEL_FG_HOVER; cursor: pointer; } .imgcarousel_prev:hover svg { background: $COL_BUTTON_CAROUSEL_BG_HOVER; fill: $COL_BUTTON_CAROUSEL_FG_HOVER; cursor: pointer; }
.imgcarousel_next:hover svg { background: $COL_BUTTON_CAROUSEL_BG_HOVER; fill: $COL_BUTTON_CAROUSEL_FG_HOVER; cursor: pointer; } .imgcarousel_next:hover svg { background: $COL_BUTTON_CAROUSEL_BG_HOVER; fill: $COL_BUTTON_CAROUSEL_FG_HOVER; cursor: pointer; }
@include rdmedia(0)
{
.pagination { flex-direction: column; }
.pag20 { flex-direction: column; }
.pag10 { flex-direction: column; }
.pag05 { flex-direction: row; }
}
@include rdmedia(1)
{
.pagination { flex-direction: column; }
.pag20 { flex-direction: column; }
.pag10 { flex-direction: row; }
.pag05 { flex-direction: row; }
}
@include rdmedia(2)
{
.pagination { flex-direction: column; }
.pag20 { flex-direction: column; }
.pag10 { flex-direction: row; }
.pag05 { flex-direction: row; }
}
@include rdmedia(3)
{
.pagination { flex-direction: column; }
.pag20 { flex-direction: column; }
.pag10 { flex-direction: row; }
.pag05 { flex-direction: row; }
}
@include rdmedia(4)
{
.pagination { flex-direction: column; }
.pag20 { flex-direction: row; }
.pag10 { flex-direction: row; }
.pag05 { flex-direction: row; }
}
.pagination {
display:flex;
.pagAny {
display:flex;
align-self: center;
}
.pag20 {
display:flex;
align-self: center;
}
.pag10 {
display:flex;
}
.pag05 {
display:flex;
margin: 4px 0;
}
.pagbtn {
display: block;
text-decoration: none;
min-width: 1.8em;
padding: 0 5px;
margin: 0 4px;
border-radius: 2px;
text-align: center;
color: $BUTTON_PAGINATION_FG;
background: $BUTTON_PAGINATION_BG;
border: $BUTTON_PAGINATION_BORDER;
}
.pagAny .pagbtn { margin: 4px; }
.pagbtn_disabled {
color: $BUTTON_PAGINATION_DISABLED_FG;
background: $BUTTON_PAGINATION_DISABLED_BG;
border: $BUTTON_PAGINATION_DISABLED_BORDER;
}
.pagbtn.pagbtn_disabled:hover {border: $BUTTON_PAGINATION_DISABLED_BORDER; }
.pagbtn_active {
color: $BUTTON_PAGINATION_HIGHLIGHT_FG;
background: $BUTTON_PAGINATION_HIGHLIGHT_BG;
border: $BUTTON_PAGINATION_HIGHLIGHT_BORDER;
}
.pagbtn:hover {
border: $BUTTON_PAGINATION_HOVER_BORDER;
}
}

View File

@ -31,7 +31,7 @@ $pd = new ParsedownCustom();
<div class="bce_header"><h1><a href="<?php echo $day['url_aoc']; ?>">Day <?php echo $day['day-padded']; ?></a>: <?php echo htmlspecialchars($day['title']); ?></h1></div> <div class="bce_header"><h1><a href="<?php echo $day['url_aoc']; ?>">Day <?php echo $day['day-padded']; ?></a>: <?php echo htmlspecialchars($day['title']); ?></h1></div>
<b>Description:</b> <b>Description:</b>
<div class="bc_aoc_description"><?php echo nl2br(htmlspecialchars(file_get_contents($day['file_challenge']))); ?></div> <div class="bc_aoc_description_parent"><div class="bc_aoc_description"><?php echo nl2br(htmlspecialchars(file_get_contents($day['file_challenge']))); ?></div></div>
<br/> <br/>
<b>Input:</b> <b>Input:</b>
@ -54,14 +54,24 @@ $pd = new ParsedownCustom();
<?php includeAdditionalScript("/data/javascript/prism.js", 'defer'); ?> <?php includeAdditionalScript("/data/javascript/prism.js", 'defer'); ?>
<?php includeAdditionalStylesheet("/data/rawcss/prism.css"); ?> <?php includeAdditionalStylesheet("/data/rawcss/prism.css"); ?>
<br /> <div class="pagination">
<br />
<?php <?php
global $PARAM_AOCCALENDAR; $assocdays = AdventOfCode::listSingleYearAssociative($year);
$PARAM_AOCCALENDAR = ['year' => $year, 'nav'=>false];
require (__DIR__ . '/../fragments/panel_aoc_calendar.php') echo "<div class='pagAny'>";
for($i=0; $i < 25; $i++)
{
if ($i>0 && $i%5 == 0) echo "</div><div class='pagAny'>";
if ($assocdays[$i] === null) echo "<div class='pagbtn pagbtn_disabled'>" . ($i+1) . "</div>\n";
else if ($i+1 === $day['day']) echo "<a class='pagbtn pagbtn_active' href='" . $assocdays[$i]['url'] . "'>" . ($i+1) . "</a>\n";
else echo "<a class='pagbtn' href='" . $assocdays[$i]['url'] . "'>" . ($i+1) . "</a>\n";
}
echo "</div>";
?> ?>
</div>
</div> </div>
</div> </div>

View File

@ -92,19 +92,19 @@ $max = ceil($max / 20) * 20;
<br /> <br />
<br /> <br />
<div class="bce_pagination"> <div class="pagination">
<?php <?php
$break = false; $break = false;
for($i1=0;;$i1++) for($i1=0;;$i1++)
{ {
echo "<div class='bce_pag20'>\n"; echo "<div class='pag20'>\n";
for($i2=0;$i2<2;$i2++) for($i2=0;$i2<2;$i2++)
{ {
echo "<div class='bce_pag10'>\n"; echo "<div class='pag10'>\n";
for($i3=0;$i3<2;$i3++) for($i3=0;$i3<2;$i3++)
{ {
echo "<div class='bce_pag05'>\n"; echo "<div class='pag05'>\n";
for($i4=0;$i4<5;$i4++) for($i4=0;$i4<5;$i4++)
{ {
$ii = $i1*20 + $i2*10 + $i3*5 + $i4 + 1; $ii = $i1*20 + $i2*10 + $i3*5 + $i4 + 1;
@ -113,11 +113,11 @@ $max = ceil($max / 20) * 20;
$pii = str_pad($ii, 3, '0', STR_PAD_LEFT); $pii = str_pad($ii, 3, '0', STR_PAD_LEFT);
if ($ii == $problem['number']) if ($ii == $problem['number'])
echo "<div class='bce_pagbtn bce_pagbtn_active'>" . $pii . "</div>\n"; echo "<div class='pagbtn pagbtn_active'>" . $pii . "</div>\n";
else if (key_exists($ii, $arr)) else if (key_exists($ii, $arr))
echo "<a class='bce_pagbtn' href='/blog/1/Project_Euler_with_Befunge/problem-" . $pii . "'>" . $pii . "</a>\n"; echo "<a class='pagbtn' href='/blog/1/Project_Euler_with_Befunge/problem-" . $pii . "'>" . $pii . "</a>\n";
else else
echo "<div class='bce_pagbtn bce_pagbtn_disabled'>" . $pii . "</div>\n"; echo "<div class='pagbtn pagbtn_disabled'>" . $pii . "</div>\n";
} }
echo "</div>\n"; echo "</div>\n";
if ($break) break; if ($break) break;

View File

@ -19,6 +19,7 @@ class AdventOfCode
'go' => ['ext'=>'go', 'css'=>'language-go', 'name'=>'Go'], 'go' => ['ext'=>'go', 'css'=>'language-go', 'name'=>'Go'],
'js' => ['ext'=>'js', 'css'=>'language-javascript', 'name'=>'Javascript'], 'js' => ['ext'=>'js', 'css'=>'language-javascript', 'name'=>'Javascript'],
'pas' => ['ext'=>'pas', 'css'=>'language-pascal', 'name'=>'Pascal/Delphi'], 'pas' => ['ext'=>'pas', 'css'=>'language-pascal', 'name'=>'Pascal/Delphi'],
'ts' => ['ext'=>'ts', 'css'=>'language-typescript', 'name'=>'Typescript'],
]; ];
public static function listAllFromAllYears() public static function listAllFromAllYears()

View File

@ -20,15 +20,15 @@ return
['day' => 14, 'parts' => 2, 'title' => 'Chocolate Charts', 'language' => 'cs', 'solutions' => ['9276422810', '20319117'] ], ['day' => 14, 'parts' => 2, 'title' => 'Chocolate Charts', 'language' => 'cs', 'solutions' => ['9276422810', '20319117'] ],
['day' => 15, 'parts' => 2, 'title' => 'Beverage Bandits', 'language' => 'cs', 'solutions' => ['201123', '54188'] ], ['day' => 15, 'parts' => 2, 'title' => 'Beverage Bandits', 'language' => 'cs', 'solutions' => ['201123', '54188'] ],
['day' => 16, 'parts' => 2, 'title' => 'Chronal Classification', 'language' => 'cs', 'solutions' => ['592', '557'] ], ['day' => 16, 'parts' => 2, 'title' => 'Chronal Classification', 'language' => 'cs', 'solutions' => ['592', '557'] ],
['day' => 17, 'parts' => 2, 'title' => 'Reservoir Research', 'language' => 'cs', 'solutions' => ['33004', '23294'] ], //['day' => 17, 'parts' => 2, 'title' => 'Reservoir Research', 'language' => 'cs', 'solutions' => ['33004', '23294'] ],
['day' => 18, 'parts' => 2, 'title' => 'Settlers of The North Pole', 'language' => 'cs', 'solutions' => ['536370', '190512'] ], //['day' => 18, 'parts' => 2, 'title' => 'Settlers of The North Pole', 'language' => 'cs', 'solutions' => ['536370', '190512'] ],
['day' => 19, 'parts' => 2, 'title' => 'Go With The Flow', 'language' => 'cs', 'solutions' => ['1440', '15827040'] ], //['day' => 19, 'parts' => 2, 'title' => 'Go With The Flow', 'language' => 'cs', 'solutions' => ['1440', '15827040'] ],
['day' => 20, 'parts' => 2, 'title' => 'A Regular Map', 'language' => 'cs', 'solutions' => ['3675', '7953'] ], //['day' => 20, 'parts' => 2, 'title' => 'A Regular Map', 'language' => 'cs', 'solutions' => ['3675', '7953'] ],
['day' => 21, 'parts' => 2, 'title' => 'Chronal Conversion', 'language' => 'cs', 'solutions' => ['103548', '14256686'] ], //['day' => 21, 'parts' => 2, 'title' => 'Chronal Conversion', 'language' => 'cs', 'solutions' => ['103548', '14256686'] ],
['day' => 22, 'parts' => 2, 'title' => 'Mode Maze', 'language' => 'cs', 'solutions' => ['11972', '1092'] ], //['day' => 22, 'parts' => 2, 'title' => 'Mode Maze', 'language' => 'cs', 'solutions' => ['11972', '1092'] ],
['day' => 23, 'parts' => 2, 'title' => 'Experimental Emergency Teleportation', 'language' => 'cs', 'solutions' => ['417', '112997634'] ], //['day' => 23, 'parts' => 2, 'title' => 'Experimental Emergency Teleportation', 'language' => 'cs', 'solutions' => ['417', '112997634'] ],
['day' => 24, 'parts' => 2, 'title' => 'Immune System Simulator 20XX', 'language' => 'cs', 'solutions' => ['21070', '7500'] ], //['day' => 24, 'parts' => 2, 'title' => 'Immune System Simulator 20XX', 'language' => 'cs', 'solutions' => ['21070', '7500'] ],
['day' => 25, 'parts' => 1, 'title' => 'Four-Dimensional Adventure', 'language' => 'cs', 'solutions' => ['407'] ], //['day' => 25, 'parts' => 1, 'title' => 'Four-Dimensional Adventure', 'language' => 'cs', 'solutions' => ['407'] ],
], ],
'2019' => '2019' =>
[ [

View File

@ -0,0 +1,5 @@
> "The same procedure as last year, Miss Sophie?"
> "The same procedure as every year, James!"
This year I will try to solve the challenges with typescript. Originally I wanted to use Befunge, but the problems don't really work that well in Befunge.
Especially big input files are annoying to realize without I/O functions...