diff --git a/base.css b/base.css index 44a7e5a..4a02e61 100644 --- a/base.css +++ b/base.css @@ -1,10 +1,14 @@ +/* +This file is (C) Captain ALM +Under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License +*/ *{ margin: 0; padding: 0; box-sizing: border-box; } main{ - padding-top: 90px; + padding-top: 70px; padding-left: 6px; } .no-dec{ @@ -27,11 +31,14 @@ main{ position: fixed; top: 0; width: 100%; + z-index: 100; + border-style: solid; + border-width: 0 0 2px; } .home-button, .sort-button{ display: inline-block; width: 64px; - height: 82px; + height: 62px; overflow: hidden; text-align: center; } @@ -40,7 +47,7 @@ main{ } .home-button > div, .sort-button > div{ display: inline; - font-size: 60px; + font-size: 48px; padding: 10px; vertical-align: middle; } @@ -56,27 +63,62 @@ main{ position: fixed; max-height: 0; } -.so-pane > *{ +.so-pane > form > div{ + display: table-row; + background-color: transparent; + box-sizing: inherit; + max-width: 100%; + width: 100%; +} +.so-pane > form > div > div, .so-pane > form > div > span{ + background-color: transparent; + box-sizing: inherit; + padding: 2px; + text-align: center; + vertical-align: middle; +} +.so-pane > form > div > div{ + display: table-cell; + max-width: 50%; + width: 50%; +} +.so-pane > form > div > span{ + display: block; + max-width: 100%; + width: 100%; +} +.so-pane-full{ + display: table-caption !important; + caption-side: bottom; +} +.so-pane > form > div > * > *{ + max-width: 100%; + width: 100%; vertical-align: middle; font-size: 16px; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; +} +.so-pane > form > div > div > *{ text-align: left; - padding: 2px; } -.so-pane > label{ +.so-pane > form > div > div > label{ background-color: transparent; + text-align: center; } -.nav-menu, .sort-menu, .data-hold{ +.nav-menu, .sort-menu{ display: none; } .menu a{ display: block; - padding: 32px 18px; + padding: 22px 18px; } .hmb{ cursor: pointer; float: right; background-color: transparent; - padding: 40px 20px; + padding: 30px 20px; } .hmb-line{ display: block; @@ -98,34 +140,63 @@ main{ .hmb-line::after{ top: -5px; } -.nav-menu:checked ~ nav{ +.nav-menu:checked ~ nav, .nav-open{ max-height: 100%; } -.nav-menu:checked ~ .hmb .hmb-line{ +.nav-menu:checked ~ .hmb .hmb-line, .nav-open-hmb .hmb-line{ background: transparent; } -.nav-menu:checked ~ .hmb .hmb-line::before{ +.nav-menu:checked ~ .hmb .hmb-line::before, .nav-open-hmb .hmb-line::before{ transform: rotate(-45deg); top:0; } -.nav-menu:checked ~ .hmb .hmb-line::after{ +.nav-menu:checked ~ .hmb .hmb-line::after, .nav-open-hmb .hmb-line::after{ transform: rotate(45deg); top:0; } -.sort-menu:checked ~ .so-pane{ +.sort-menu:checked ~ .so-pane, .so-pane-open{ display: block; + z-index: 101; box-sizing: content-box; position: fixed; - top: 85px; - max-height: 100%; - width: auto; - height: auto; - padding: 4px; text-align: center; + top: 66px; + left: 136px; + max-height: 100%; + width: 230px; + height: auto; + -webkit-border-bottom-left-radius: 8px; + -webkit-border-bottom-right-radius: 8px; + -moz-border-radius-bottomleft: 8px; + -moz-border-radius-bottomright: 8px; + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; + padding: 4px; border-style: solid; - border-width: 2px; + border-width: 0 2px 2px; + overflow: hidden; } -.main-box{ +.sort-menu:checked ~ .so-pane > form, .so-pane-open > form{ + display: table; + box-sizing: inherit; +} +.main-box > div, footer > p{ + max-width: 100%; + margin: 3px 0; + padding: 2px; + box-sizing: content-box; +} +.item-table{ + display: table; + box-sizing: content-box; + background-color: transparent; + -webkit-border-radius: 32px; + -moz-border-radius: 32px; + border-radius: 32px; + border-width: 1px; + border-style: solid; +} +.flex-col{ display: -webkit-box; display: -moz-box; display: -ms-flexbox; @@ -140,46 +211,17 @@ main{ flex-direction: column; -webkit-align-content: center; align-content: center; + max-width: 100%; width: 100%; -} -.main-box > div, footer > p{ - margin: 3px 0; - padding: 2px; - box-sizing: content-box; -} -.item-table{ - display: table; - width: 100%; - box-sizing: content-box; - background-color: transparent; + overflow: hidden; } .item-table > div{ display: table-row; - background-color: transparent; box-sizing: inherit; -} -.item-table > div > div > div{ - padding: 2px; -} -.item-table-caption{ - display: table-caption !important; - caption-side: bottom; -} -.item-table-full, .item-table-360, .item-table-caption{ - border-style: solid; - border-width: 1px; - background-color: transparent; - box-sizing: inherit; -} -.item-table-full{ - display: table-cell; - vertical-align: top; + max-width: 100%; width: 100%; } -.item-table-360{ - display: none; -} -.image-box{ +.flex-row, .item-table > div{ display: -webkit-box; display: -moz-box; display: -ms-flexbox; @@ -197,6 +239,33 @@ main{ flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; + max-width: 100%; + width: 100%; + overflow: hidden; +} +.item-table > div > div > div{ + padding: 2px; +} +.item-table-caption, .so-pane-caption{ + display: table-caption !important; + caption-side: bottom; +} +.item-table-full, .item-table-360, .item-table-caption, .so-pane-caption{ + background-color: transparent; + box-sizing: inherit; +} +.item-table-full{ + display: table-cell; + vertical-align: top; + width: 100%; +} +.item-table-360{ + display: table-cell; + vertical-align: middle; + max-width: 360px; + width: 360px; + overflow: hidden; + text-align: center; } .image-box > a{ border-style: solid; @@ -204,22 +273,29 @@ main{ margin: 2px; } @media (min-width: 560px){ - .main-box > div, footer > p{ - margin: 5px; + .main-box > div{ + padding: 12px; } - .item-table-360{ - display: table-cell; - vertical-align: middle; - width: 360px; - overflow: hidden; + footer > p{ + padding: 4px; + } + .item-table > div{ + -ms-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + flex-wrap: nowrap; + } + .item-table-full{ + max-width: -webkit-calc(100% - 361px); + max-width: -moz-calc(100% - 361px); + max-width: calc(100% - 361px); + width: -webkit-calc(100% - 361px); + width: -moz-calc(100% - 361px); + width: calc(100% - 361px); } .image-box > a{ border-width: 4px; margin: 10px; } - .small-only-row{ - display: none !important; - } } @media (min-width: 640px){ .nav{ @@ -238,4 +314,12 @@ main{ .hmb{ display: none; } +} +@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { + .item-table-full, .item-table-360 { + display: block !important; + } + .item-table-caption{ + display: block !important; + } } \ No newline at end of file diff --git a/dark.css b/dark.css index 181b20b..8d78d36 100644 --- a/dark.css +++ b/dark.css @@ -1,3 +1,7 @@ +/* +This file is (C) Captain ALM +Under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License +*/ body{ color: #f9f9f9; background-color: #050506; @@ -9,10 +13,10 @@ a{ .header, .nav, footer, .so-pane{ background-color: #1d1d1e; } -.home-button > div, .sort-button > div, .menu a, .so-pane > *{ +.home-button > div, .sort-button > div, .menu a, .so-pane > form > div > * > *{ color: #e0e0e0; } -.home-button:hover, .menu a:hover, .hmb:hover, .sort-button:hover, .sort-menu:checked ~ .sort-button, .so-pane > input, .so-pane > select{ +.home-button:hover, .menu a:hover, .hmb:hover, .sort-button:hover, .sort-menu:checked ~ .sort-button, .sort-button-active, .so-pane > form > div > span > input, .so-pane > form > div > div > select{ background-color: #606061; } .hmb-line, .hmb-line::before, .hmb-line::after{ @@ -23,14 +27,12 @@ a{ } .item-table{ background-color: #3f3f3f; -} -.so-pane{ - border-color: #3f3f3f; -} -.item-table > div > div, .item-table-caption{ border-color: #f5deb3; } -.image-box{ +.so-pane, .header{ + border-color: #6f6f6f; +} +.image-box, .item-heading{ background-color: #4f4f4f; } .image-box > a{ diff --git a/index.go.html b/index.go.html index ab8ef3f..a9b54ef 100644 --- a/index.go.html +++ b/index.go.html @@ -7,9 +7,9 @@ City University Portfolio {{ if .Light }} - + {{ else }} - + {{ end }} @@ -28,13 +28,15 @@ {{ end }} -
+
+ {{ if .Light }} {{ end }} +
{{ $sort := 0 }} - - {{ if eq .OrderStartDate 0 }} {{ else }} @@ -59,9 +61,11 @@ {{ $sort = .OrderDuration }} {{ end }} - - -
+
+
+
+
- +
+
+
+ +
+ -
+
-
-
+
+

{{ .Data.About.Title }}

@@ -96,11 +104,6 @@
-
{{ .Data.About.GetContent }}
@@ -109,17 +112,12 @@
{{ .Data.About.ImageAltText }}
-
-
-
{{ .Data.About.ImageAltText }}
-
-
{{ range .GetEntries }}
-
-
+
+

{{ .Name }}

@@ -131,15 +129,6 @@ {{ end }}
-
-
- {{ if eq .GetStartDate .GetEndDate }} -

{{ .GetStartDate }}

- {{ else }} -

{{ .GetStartDate }} - {{ .GetEndDate }}

- {{ end }} -
-
{{ .GetContent }}
@@ -157,23 +146,9 @@
-
-
-
- {{ if eq .VideoLocation "" }} - No Video - {{ else }} - - {{ end }} -
-
-
{{ if not (eq .GetImageCount 0) }}
-
+
{{ range .GetImages }} {{ .ImageAltText }} {{ end }} @@ -181,9 +156,11 @@
{{ end }}
+
{{ end }}
diff --git a/index.js b/index.js index e69de29..a2fbdec 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,4 @@ +/* +This file is (C) Captain ALM +Under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License +*/ diff --git a/light.css b/light.css index 5c608bb..03f218c 100644 --- a/light.css +++ b/light.css @@ -1,3 +1,7 @@ +/* +This file is (C) Captain ALM +Under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License +*/ body{ color: #060606; background-color: #fafaf9; @@ -9,10 +13,10 @@ a{ .header, .nav, footer, .so-pane{ background-color: #e2e2e1; } -.home-button > div, .sort-button > div, .menu a, .so-pane > *{ +.home-button > div, .sort-button > div, .menu a, .so-pane > form > div > * > *{ color: #1f1f1f; } -.home-button:hover, .menu a:hover, .hmb:hover, .sort-button:hover, .sort-menu:checked ~ .sort-button, .so-pane > input, .so-pane > select{ +.home-button:hover, .menu a:hover, .hmb:hover, .sort-button:hover, .sort-menu:checked ~ .sort-button, .sort-button-active, .so-pane > form > div > span > input, .so-pane > form > div > div > select{ background-color: #9f9f9e; } .hmb-line, .hmb-line::before, .hmb-line::after{ @@ -23,14 +27,12 @@ a{ } .item-table{ background-color: #c0c0c0; -} -.so-pane{ - border-color: #c0c0c0; -} -.item-table > div > div, .item-table-caption{ border-color: #0a214c; } -.image-box{ +.so-pane, .header{ + border-color: #909090; +} +.image-box, .item-heading{ background-color: #b0b0b0; } .image-box > a{ diff --git a/pageHandler/pages/index/data.go b/pageHandler/pages/index/data.go index acd977a..97e9eb9 100644 --- a/pageHandler/pages/index/data.go +++ b/pageHandler/pages/index/data.go @@ -3,18 +3,19 @@ package index import "html/template" type DataYaml struct { - HeaderLinks map[string]template.URL `yaml:"headerLinks"` - CSSBaseURL template.URL `yaml:"cssBaseURL"` - CSSLightURL template.URL `yaml:"cssLightURL"` - CSSDarkURL template.URL `yaml:"cssDarkURL"` - JScriptURL template.URL `yaml:"jScriptURL"` - NoVideoImageLocation template.URL `yaml:"noVideoImageLocation"` - LogoImageLocation template.URL `yaml:"logoImageLocation"` - SunImageLocation template.URL `yaml:"sunImageLocation"` - MoonImageLocation template.URL `yaml:"moonImageLocation"` - SortImageLocation template.URL `yaml:"sortImageLocation"` - About AboutYaml `yaml:"about"` - Entries []EntryYaml `yaml:"entries"` + HeaderLinks map[string]template.URL `yaml:"headerLinks"` + CSSBaseURL template.URL `yaml:"cssBaseURL"` + CSSLightURL template.URL `yaml:"cssLightURL"` + CSSDarkURL template.URL `yaml:"cssDarkURL"` + JScriptURL template.URL `yaml:"jScriptURL"` + PlayVideoImageLocation template.URL `yaml:"playVideoImageLocation"` + NoVideoImageLocation template.URL `yaml:"noVideoImageLocation"` + LogoImageLocation template.URL `yaml:"logoImageLocation"` + SunImageLocation template.URL `yaml:"sunImageLocation"` + MoonImageLocation template.URL `yaml:"moonImageLocation"` + SortImageLocation template.URL `yaml:"sortImageLocation"` + About AboutYaml `yaml:"about"` + Entries []EntryYaml `yaml:"entries"` } func (dy DataYaml) GetHeaderLabels() []string {