AOC layout changes
This commit is contained in:
parent
829738fabb
commit
3f95aa49e1
@ -310,6 +310,141 @@ body {
|
||||
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 */
|
||||
#headerdiv {
|
||||
z-index: 999;
|
||||
@ -988,127 +1123,6 @@ html, body {
|
||||
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 */
|
||||
.aoc_calendar_parent {
|
||||
display: flex;
|
||||
@ -1122,7 +1136,7 @@ html, body {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0.5em;
|
||||
background: #F8B229;
|
||||
background: #888888;
|
||||
}
|
||||
|
||||
.aoc_calendar_header_link {
|
||||
@ -1156,10 +1170,10 @@ html, body {
|
||||
.aoc_calendar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #EFEFEF;
|
||||
background: #AAAAAA;
|
||||
font-size: xx-large;
|
||||
font-family: Consolas, Monaco, "Courier New", Menlo, monospace;
|
||||
border: 1px solid #000000;
|
||||
border: 1px solid #333333;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
@ -1183,10 +1197,10 @@ html, body {
|
||||
}
|
||||
|
||||
.aoc_calendar_field.aoc_enabled {
|
||||
background: #165B33;
|
||||
background: #2D4E3B;
|
||||
color: #BB2528;
|
||||
border: 1px solid #FFFFFF;
|
||||
text-shadow: 0 0 0.2em #222;
|
||||
text-shadow: 0 0 0.2em #222222;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@ -1198,32 +1212,36 @@ html, body {
|
||||
}
|
||||
|
||||
.aoc_calendar_field.aoc_disabled {
|
||||
background: #444;
|
||||
color: #888;
|
||||
background: #444444;
|
||||
color: #888888;
|
||||
border: 1px solid #888;
|
||||
cursor: default;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.bc_aoc_description_parent {
|
||||
background-color: #333333;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.bc_aoc_description {
|
||||
font-family: Consolas, Monaco, "Courier New", Menlo, monospace;
|
||||
background-color: #333;
|
||||
color: #DDD;
|
||||
padding: 1ch;
|
||||
max-width: 82ch;
|
||||
}
|
||||
|
||||
.bc_aoc_input {
|
||||
font-family: Consolas, Monaco, "Courier New", Menlo, monospace;
|
||||
border: 1px solid #000;
|
||||
border: 1px solid #333333;
|
||||
padding: 1em;
|
||||
max-height: 150px;
|
||||
overflow-y: scroll;
|
||||
background: #F8F8F8;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.bc_aoc_solution_parent {
|
||||
border: 1px solid #000;
|
||||
border: 1px solid #333333;
|
||||
}
|
||||
|
||||
.bc_aoc_solution_code {
|
||||
@ -1231,12 +1249,13 @@ html, body {
|
||||
}
|
||||
|
||||
.bc_aoc_solution_code pre {
|
||||
margin: 0;
|
||||
margin: 0 !important;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.bc_aoc_solution_value {
|
||||
background: #AAA;
|
||||
background: #888888;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
/* 400px */
|
||||
|
95
www/data/css/styles.min.css
vendored
95
www/data/css/styles.min.css
vendored
@ -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_prev: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 .logowrapper{flex:initial;margin:0;padding:0;height:42px}
|
||||
#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}
|
||||
}
|
||||
.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_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_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_next{flex-grow:0;padding-right:.5em}
|
||||
.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_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_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_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_solution_parent{border:1px solid #000}
|
||||
.bc_aoc_description_parent{background-color:#333;color:#ddd}
|
||||
.bc_aoc_description{font-family:Consolas,Monaco,"Courier New",Menlo,monospace;padding:1ch;max-width:82ch}
|
||||
.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 pre{margin:0;border:0}
|
||||
.bc_aoc_solution_value{background:#AAA}
|
||||
.bc_aoc_solution_code pre{margin:0 !important;border:0}
|
||||
.bc_aoc_solution_value{background:#888;color:#000}
|
||||
.prgl_parent{display:flex;flex-direction:column}
|
||||
@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}
|
||||
|
@ -1,11 +1,5 @@
|
||||
@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 ==================== //
|
||||
|
||||
.aoc_calendar_parent {
|
||||
@ -23,13 +17,13 @@ $COL_CHRISTMAS_RED: #BB2528;
|
||||
|
||||
margin-bottom: 0.5em;
|
||||
|
||||
background: $COL_CHRISTMAS_YELLOW;
|
||||
background: $LAYER2_HEADER_BG;
|
||||
}
|
||||
|
||||
.aoc_calendar_header_link {
|
||||
display: flex;
|
||||
|
||||
color: #000000;
|
||||
color: $LAYER2_HEADER_FG;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@ -37,7 +31,7 @@ $COL_CHRISTMAS_RED: #BB2528;
|
||||
flex-grow: 0;
|
||||
display: flex;
|
||||
|
||||
color: #000000;
|
||||
color: $LAYER2_HEADER_FG;
|
||||
font-family: $FONT_HEADER;
|
||||
font-weight: bold;
|
||||
}
|
||||
@ -60,12 +54,12 @@ $COL_CHRISTMAS_RED: #BB2528;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
background: $COL_CHRISTMAS_WHITE;
|
||||
background: $LAYER2_BG;
|
||||
|
||||
font-size: xx-large;
|
||||
font-family: $FONT_CODE;
|
||||
|
||||
border: 1px solid #000000;
|
||||
border: $LAYER2_BORDER;
|
||||
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
@ -95,23 +89,23 @@ $COL_CHRISTMAS_RED: #BB2528;
|
||||
}
|
||||
|
||||
.aoc_calendar_field.aoc_enabled {
|
||||
background: $COL_CHRISTMAS_GREEN;
|
||||
color: $COL_CHRISTMAS_RED;
|
||||
background: $AOC_FIELD_GREEN;
|
||||
color: $AOC_FIELD_RED;
|
||||
border: 1px solid #FFFFFF;
|
||||
text-shadow: 0 0 0.2em #222;
|
||||
text-shadow: 0 0 0.2em #222222;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.aoc_calendar_field.aoc_enabled:hover {
|
||||
background: $COL_CHRISTMAS_GREEN_ALT;
|
||||
color: $COL_CHRISTMAS_RED;
|
||||
border: 1px solid $COL_CHRISTMAS_RED;
|
||||
background: $AOC_FIELD_GREEN_ALT;
|
||||
color: $AOC_FIELD_RED;
|
||||
border: 1px solid $AOC_FIELD_RED;
|
||||
text-shadow: 0 0 0 #000;
|
||||
}
|
||||
|
||||
.aoc_calendar_field.aoc_disabled {
|
||||
background: #444;
|
||||
color: #888;
|
||||
background: $AOC_FIELD_DISABLED_BG;
|
||||
color: $AOC_FIELD_DISABLED_FG;
|
||||
border: 1px solid #888;
|
||||
cursor: default;
|
||||
font-weight: normal;
|
||||
@ -119,25 +113,29 @@ $COL_CHRISTMAS_RED: #BB2528;
|
||||
|
||||
// ==================== AdventOfCode Blog - Single Day View ==================== //
|
||||
|
||||
.bc_aoc_description_parent {
|
||||
background-color: $AOC_DESCRIPTION_BG;
|
||||
color: $AOC_DESCRIPTION_FG;
|
||||
}
|
||||
|
||||
.bc_aoc_description {
|
||||
font-family: $FONT_CODE;
|
||||
background-color: #333;
|
||||
color: #DDD;
|
||||
padding: 1ch;
|
||||
max-width: 82ch;
|
||||
}
|
||||
|
||||
.bc_aoc_input {
|
||||
font-family: $FONT_CODE;
|
||||
border: 1px solid #000;
|
||||
border: $LAYER2_BORDER;
|
||||
padding: 1em;
|
||||
max-height: 150px;
|
||||
overflow-y: scroll;
|
||||
background: #F8F8F8;
|
||||
background: $LAYER2_CODE_BG;
|
||||
color: $LAYER2_CODE_FG;
|
||||
}
|
||||
|
||||
.bc_aoc_solution_parent {
|
||||
border: 1px solid #000;
|
||||
border: $LAYER2_BORDER;
|
||||
}
|
||||
|
||||
.bc_aoc_solution_code {
|
||||
@ -145,10 +143,11 @@ $COL_CHRISTMAS_RED: #BB2528;
|
||||
}
|
||||
|
||||
.bc_aoc_solution_code pre {
|
||||
margin: 0;
|
||||
margin: 0 !important;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.bc_aoc_solution_value {
|
||||
background: #AAA;
|
||||
background: $LAYER2_HEADER_BG;
|
||||
color: $LAYER2_HEADER_FG;
|
||||
}
|
@ -97,82 +97,4 @@
|
||||
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; }
|
||||
}
|
||||
|
||||
|
||||
|
@ -81,12 +81,16 @@ $COL_BUTTON_CAROUSEL_BG: #333333;
|
||||
$COL_BUTTON_CAROUSEL_FG_HOVER: #FFFFFF;
|
||||
$COL_BUTTON_CAROUSEL_BG_HOVER: #000000;
|
||||
|
||||
$BUTTON_PAGINATION_FG: #000000;
|
||||
$BUTTON_PAGINATION_BG: #AAAAAA;
|
||||
$BUTTON_PAGINATION_BORDER: 1px solid #777777;
|
||||
$BUTTON_PAGINATION_DISABLED_FG: #000000;
|
||||
$BUTTON_PAGINATION_DISABLED_BG: #666666;
|
||||
$BUTTON_PAGINATION_DISABLED_BORDER: 1px solid #000;
|
||||
$BUTTON_PAGINATION_FG: #000000;
|
||||
$BUTTON_PAGINATION_BG: #AAAAAA;
|
||||
$BUTTON_PAGINATION_BORDER: 1px solid #777777;
|
||||
$BUTTON_PAGINATION_HIGHLIGHT_FG: #000000;
|
||||
$BUTTON_PAGINATION_HIGHLIGHT_BG: #666666;
|
||||
$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;
|
||||
|
||||
// ------------------------------------
|
||||
|
||||
$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;
|
||||
|
@ -279,4 +279,104 @@ body {
|
||||
.imgcarousel_prev 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_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;
|
||||
}
|
||||
|
||||
}
|
@ -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>
|
||||
|
||||
<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/>
|
||||
|
||||
<b>Input:</b>
|
||||
@ -54,14 +54,24 @@ $pd = new ParsedownCustom();
|
||||
<?php includeAdditionalScript("/data/javascript/prism.js", 'defer'); ?>
|
||||
<?php includeAdditionalStylesheet("/data/rawcss/prism.css"); ?>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<div class="pagination">
|
||||
<?php
|
||||
$assocdays = AdventOfCode::listSingleYearAssociative($year);
|
||||
|
||||
<?php
|
||||
global $PARAM_AOCCALENDAR;
|
||||
$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>
|
@ -92,19 +92,19 @@ $max = ceil($max / 20) * 20;
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<div class="bce_pagination">
|
||||
<div class="pagination">
|
||||
|
||||
<?php
|
||||
$break = false;
|
||||
for($i1=0;;$i1++)
|
||||
{
|
||||
echo "<div class='bce_pag20'>\n";
|
||||
echo "<div class='pag20'>\n";
|
||||
for($i2=0;$i2<2;$i2++)
|
||||
{
|
||||
echo "<div class='bce_pag10'>\n";
|
||||
echo "<div class='pag10'>\n";
|
||||
for($i3=0;$i3<2;$i3++)
|
||||
{
|
||||
echo "<div class='bce_pag05'>\n";
|
||||
echo "<div class='pag05'>\n";
|
||||
for($i4=0;$i4<5;$i4++)
|
||||
{
|
||||
$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);
|
||||
|
||||
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))
|
||||
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
|
||||
echo "<div class='bce_pagbtn bce_pagbtn_disabled'>" . $pii . "</div>\n";
|
||||
echo "<div class='pagbtn pagbtn_disabled'>" . $pii . "</div>\n";
|
||||
}
|
||||
echo "</div>\n";
|
||||
if ($break) break;
|
||||
|
@ -19,6 +19,7 @@ class AdventOfCode
|
||||
'go' => ['ext'=>'go', 'css'=>'language-go', 'name'=>'Go'],
|
||||
'js' => ['ext'=>'js', 'css'=>'language-javascript', 'name'=>'Javascript'],
|
||||
'pas' => ['ext'=>'pas', 'css'=>'language-pascal', 'name'=>'Pascal/Delphi'],
|
||||
'ts' => ['ext'=>'ts', 'css'=>'language-typescript', 'name'=>'Typescript'],
|
||||
];
|
||||
|
||||
public static function listAllFromAllYears()
|
||||
|
@ -20,15 +20,15 @@ return
|
||||
['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' => 16, 'parts' => 2, 'title' => 'Chronal Classification', 'language' => 'cs', 'solutions' => ['592', '557'] ],
|
||||
['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' => 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' => 21, 'parts' => 2, 'title' => 'Chronal Conversion', 'language' => 'cs', 'solutions' => ['103548', '14256686'] ],
|
||||
['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' => 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' => 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' => 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' => 21, 'parts' => 2, 'title' => 'Chronal Conversion', 'language' => 'cs', 'solutions' => ['103548', '14256686'] ],
|
||||
//['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' => 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'] ],
|
||||
],
|
||||
'2019' =>
|
||||
[
|
||||
|
@ -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...
|
Loading…
Reference in New Issue
Block a user