diff --git a/www/data/css/styles.css b/www/data/css/styles.css index aed6993..f1b26ce 100644 --- a/www/data/css/styles.css +++ b/www/data/css/styles.css @@ -1125,6 +1125,102 @@ html, body { flex-direction: row; } } +/* 400px */ +.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: 0.5em; + background: #F8B229; +} + +.aoc_calendar_header_link { + display: flex; + color: #000000; + text-decoration: none; +} + +.aoc_calendar_header_title { + flex-grow: 0; + display: flex; + color: #000000; + font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: bold; +} + +.aoc_calendar_header_link.aoc_prev { + flex-grow: 0; + padding-left: 0.5em; +} + +.aoc_calendar_header_link.aoc_next { + flex-grow: 0; + padding-right: 0.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 #000000; + padding-bottom: 0.5em; +} + +.aoc_calendar_row { + display: flex; + flex-direction: row; + justify-content: center; + margin-left: 0.5em; + margin-right: 0.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 #FFFFFF; + text-shadow: 0 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; +} + /* 400px */ .prgl_parent { display: flex; diff --git a/www/data/css/styles.min.css b/www/data/css/styles.min.css index d7c4cf5..f5b31a1 100644 --- a/www/data/css/styles.min.css +++ b/www/data/css/styles.min.css @@ -219,6 +219,19 @@ html,body{margin:0;padding:0;height:100%} .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_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_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: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} .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:solid 1px #444;margin:5px 0} diff --git a/www/data/css/styles.scss b/www/data/css/styles.scss index e0c0921..ab5aeb0 100644 --- a/www/data/css/styles.scss +++ b/www/data/css/styles.scss @@ -10,6 +10,7 @@ @import 'styles_bloglist'; @import 'styles_blogview'; @import 'styles_blogview_euler'; +@import 'styles_blogview_aoc'; @import 'styles_programslist'; @import 'styles_programsview'; diff --git a/www/data/css/styles_blogview_aoc.scss b/www/data/css/styles_blogview_aoc.scss new file mode 100644 index 0000000..4725393 --- /dev/null +++ b/www/data/css/styles_blogview_aoc.scss @@ -0,0 +1,120 @@ +@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 { + 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: 0.5em; + + background: $COL_CHRISTMAS_YELLOW; +} + +.aoc_calendar_header_link { + display: flex; + + color: #000000; + text-decoration: none; +} + +.aoc_calendar_header_title { + flex-grow: 0; + display: flex; + + color: #000000; + font-family: $FONT_HEADER; + font-weight: bold; +} + +.aoc_calendar_header_link.aoc_prev { + flex-grow: 0; + padding-left: 0.5em; +} + +.aoc_calendar_header_link.aoc_next { + flex-grow: 0; + padding-right: 0.5em; +} + +.aoc_calendar_header_link.aoc_link_hidden { + visibility: hidden; +} + +.aoc_calendar { + display: flex; + flex-direction: column; + + background: $COL_CHRISTMAS_WHITE; + + font-size: xx-large; + font-family: $FONT_CODE; + + border: 1px solid #000000; + + padding-bottom: 0.5em; +} + +.aoc_calendar_row { + display: flex; + flex-direction: row; + + justify-content: center; + + margin-left: 0.5em; + margin-right: 0.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: $COL_CHRISTMAS_GREEN; + color: $COL_CHRISTMAS_RED; + border: 1px solid #FFFFFF; + text-shadow: 0 0 0.2em #222; + font-weight: bold; +} + +.aoc_calendar_field.aoc_enabled:hover { + background: $COL_CHRISTMAS_GREEN_ALT; + color: $COL_CHRISTMAS_RED; + border: 1px solid $COL_CHRISTMAS_RED; + text-shadow: 0 0 0 #000; +} + +.aoc_calendar_field.aoc_disabled { + background: #444; + color: #888; + border: 1px solid #888; + cursor: default; + font-weight: normal; +} + +// ==================== AdventOfCode Blog - Single Day View ==================== // \ No newline at end of file diff --git a/www/fragments/blogview_aoc_list.php b/www/fragments/blogview_aoc_list.php new file mode 100644 index 0000000..0461812 --- /dev/null +++ b/www/fragments/blogview_aoc_list.php @@ -0,0 +1,62 @@ + + +