/* vars */
:root {
- --navbar-bg: #292f2f;
- --jumbotron-bg: #3a4346;
- --copyright-bg: #292f2f;
- --link-color: #2fa6bc;
- --footer-link-color: #ecf7fa;
- --nlink-col: #000;
- --text-color: #292f2f;
- --footer-text-color: #ecf7fa;
- --copyright-text-color: #ecf7fa;
- --jumbotron-text-color: #ecf7fa;
- --border-color: #292f2f;
- --box-color: #4c5456;
- --box-hover-color: #292f2f;
- --box-round: 10px;
- --max-width: 600px;
-}
+ --c-dark: #292f2f;
+ --c-bg-dark: #3a4346;
+ --c-bg-light: #4c5456;
+ --c-light: #ecf7fa;
+ --c-hl-dark: #008499;
+ --c-hl-light: #3baec4;
+
+ /* backgrounds */
+ --navbar-bg: var(--c-dark);
+ --jumbotron-bg: var(--c-bg-dark);
+ --copyright-bg: var(--c-dark);
+
+ /* link colors */
+ --link-color: var(--c-hl-dark);
+ --link-hover-color: var(--c-hl-light);
+ --footer-link-color: var(--c-light);
+ --footer-hover-color: #fff;
+
+ /* text colors */
+ --text-color: var(--c-dark);
+ --footer-text-color: var(--c-light);
+ --copyright-text-color: var(--c-light);
+ --jumbotron-text-color: var(--c-light);
+ --art-date-color: color(var(--c-dark) tint(50%));
+
+ /* box colors */
+ --border-color: var(--c-dark);
+ --box-color: var(--c-bg-light);
+ --box-hover-color: var(--c-dark);;
+ --box-round: 10px;
+
+ /* other */
+ --max-width: 600px;
+ --max-width-box: 800px;
+ --margin-box-fa: 5px;
+}
+@custom-media --max-sm all and (max-width: 600px);
+@custom-media --max-md all and (max-width: 800px);
+@custom-media --max-rem all and (max-width: 60rem);
/* reset css for browser compat */
* {
text-decoration: none;
}
+a:hover {
+ color: var(--link-hover-color);
+}
+img {
+ max-width: 100%;
+}
+
/* navbar */
.navbar {
width: 100%;
z-index: 100;
padding-right: 5px;
}
-[class*='fn-'] {
- margin-top: auto;
- margin-bottom: auto;
- font-size: 30px;
- color: #E6E6E6;
- text-shadow: .5px .5px #000;
-}
-.green {
- color: #4BEB4A;
-}
-@media all and (max-width: 600px) {
+@media (--max-sm); {
.navbar {
position: absolute;
}
height: 40px;
}
-.navlinks {
- display: flex;
- justify-content: space-around;
- flex-wrap: nowrap;
-}
-
-.nlink {
- text-decoration: none;
- color: var(--nlink-col);
-}
-
/* main */
.container {
width: 100%;
margin-top: 0;
}
-.main ul {
+ul {
padding-left: 2em;
list-style-type: disc;
}
flex-wrap: wrap;
justify-content: space-around;
align-items: stretch;
- max-width: 800px;
+ max-width: var(--max-width-box);
margin: 0 auto;
}
text-decoration: none;
color: var(--jumbotron-text-color);
margin-bottom: 5px;
- padding: 5px;
flex-basis: 30%;
+ min-width: 26%;
background-color: var(--box-color);
border-radius: var(--box-round);
+ padding: 1em;
}
.box:hover,.box:active {
+ color: var(--jumbotron-text-color);
background-color: var(--box-hover-color);
}
font-size: 20px;
font-weight: 600;
line-height: 16px;
- padding: 10px 0;
display: block;
+ margin-top: .75em;
}
.fa-users {
- margin-top: 5px;
+ margin-top: var(--margin-box-fa);
}
.fa-comment,.fa-question {
- margin-bottom: 5px;
+ margin-bottom: var(--margin-box-fa);
}
.title {
text-align: center;
}
+@media (--max-md) {
+ .box {
+ text-align: center;
+ }
+
+ .child {
+ font-size: 20px;
+ line-height: 30px;
+ padding: 10px 0 5px;
+ }
+
+ .fa-4x {
+ padding: 0;
+ margin: 0;
+ width: 60px;
+ text-align: center;
+ font-size: 28px;
+ }
+
+ .box-container {
+ flex-direction: column;
+ margin: 0 .5em;
+ }
+
+ .box div {
+ font-size: 22px;
+ line-height: 22px;
+ padding-left: 8px;
+ font-weight: 700;
+ position: relative;
+ display: inline;
+ text-align: center;
+ }
+
+ .box {
+ text-align: left;
+ border-radius: calc(var(--box-round) / 2);
+ margin: 5px 0;
+ }
+}
+
/* articles */
h1 {
margin: 0;
}
.art-info {
+ line-height: 1.6;
display: flex;
- flex-wrap: wrap;
flex-direction: row;
+ flex-wrap: wrap;
justify-content: space-between;
- align-items: center;
- line-height: 1.6;
+ align-items: baseline;
+}
+
+.art-info h1 {
+ margin-top: 0;
+ display: inline;
}
.art-body {
}
.art-date {
- display: block;
- color: #ccc;
+ display: inline-block;
+ text-align: baseline;
+ line-height: 1;
+ white-space: nowrap;
+ color: var(--art-date-color);
font-feature-settings: "tnum";
font-variant-numeric: tabular-nums;
- min-width: max-content;
}
.art-nav {
width: 100%;
}
-@media all and (max-width: 600px) {
+@media (--max-md) {
.main.artlist {
padding-left: 0;
padding-right: 0;
}
}
-/* help */
-.hmain {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-around;
- align-items: stretch;
-}
-
-a.hchild {
- color: var(--text-color);
-/*height: 40px;*/
- width: 95%;
- text-align: center;
- border-top: 1px solid var(--border-color);
- border-left: 1px solid var(--border-color);
- border-right: 1px solid var(--border-color);
-}
-
-a.hchild:hover,a.hchild:active {
- background-color: var(--box-hover-color);
-}
-
-.hchild:first-child {
- margin-top: 10px;
- -webkit-border-top-left-radius: var(--box-round);
- -webkit-border-top-right-radius: var(--box-round);
- -moz-border-radius-topleft: var(--box-round);
- -moz-border-radius-topright: var(--box-round);
- border-top-left-radius: var(--box-round);
- border-top-right-radius: var(--box-round);
+/* faq */
+.faq-index {
+ list-style-type: none;
+ padding-left: 0;
}
-.hchild:last-child {
- margin-bottom: 10px;
- border-bottom: 1px solid var(--border-color);
- -webkit-border-bottom-right-radius: var(--box-round);
- -webkit-border-bottom-left-radius: var(--box-round);
- -moz-border-radius-bottomright: var(--box-round);
- -moz-border-radius-bottomleft: var(--box-round);
- border-bottom-right-radius: var(--box-round);
- border-bottom-left-radius: var(--box-round);
+.faq-index li {
+ font-size: 120%;
}
/* footer */
.footer {
background: var(--jumbotron-bg);
color: var(--footer-text-color);
+ width: 100%;
margin-top: 2vh;
+ box-shadow: 0 -3px 5px rgba(150,150,150,.36);
+ min-height: 9.5rem;
+}
+
+.footer-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;
- box-shadow: 0 -3px 5px rgba(150,150,150,.36);
- min-height: 9.5rem;
+ margin: 0 auto;
}
.footerchild {
+ margin: 0 2em;
margin-top: .5em;
flex: 1 1 1px;
- min-width: 12rem;
}
.footerchild:last-child {
margin-bottom: 1em;
}
-@media all and (max-width: 60rem) {
- .footer-push {
- margin-left: auto;
- width: max-content;
- }
+.footer-push {
+ margin-left: auto;
+ width: max-content;
}
-.footer a {
+footer a {
color: var(--footer-link-color);
}
-.footer a:hover {
- color: #fff;
+footer a:hover {
+ color: var(--footer-hover-color);
}
.footer h2 {
display: inline-block;
}
-.footerchild ul,.footerchild ul ul {
+.footerchild ul, .footerchild ul ul {
+ padding-left: 0;
margin-left: 10px;
margin-right: 10px;
list-style-type: none;
padding-left: 30px;
}
-@media all and (max-width: 600px) {
- .footer {
+@media (--max-md) {
+ .footer-container {
flex-direction: column;
}
- .footerchild {
- width: 100%;
- }
-
.footer-push {
margin-left: 0;
}
.hdn {
display: none;
}
-
- .box {
- text-align: center;
- }
-
- .child {
- font-size: 20px;
- line-height: 30px;
- padding: 10px 0 5px;
- }
-
- .fa-4x {
- padding: 0;
- margin: 0;
- width: 60px;
- text-align: center;
- font-size: 28px;
- }
-
- .box-container {
- flex-direction: column;
- margin: 0 .5em;
- }
-
- .box div {
- font-size: 22px;
- line-height: 22px;
- padding-left: 8px;
- font-weight: 700;
- position: relative;
- display: inline;
- text-align: center;
-
- }
-
- .box {
- text-align: left;
- border-radius: calc(var(--box-round) / 2);
- margin: 5px 0;
- }
}
-.footer h2,.footer h3 {
+.footer h2, .footer h3 {
margin-left: 10px;
margin-right: 10px;
}
-.copyright {
+footer.copyright {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
- align-items: center;
background: var(--copyright-bg);
min-height: 1.5rem;
color: var(--copyright-text-color);
+ padding-left: .5em;
+ padding-right: .5em;
+ overflow: hidden;
}
-a.copyright {
- background: var(--copyright-bg);
- margin-bottom: 0;
- margin-top: 0;
- margin-left: .5em;
- margin-right: .5em;
- width: auto;
- height: auto;
+footer.copyright div {
+ display: flex;
+ align-items: center;
+ height: 1.5rem;
+ line-height: 1.5rem;
+ vertical-align: top;
}
-.copyright a img {
+.copyright * {
+ margin: 0;
height: 1.5rem;
- width: auto;
+ line-height: 1.5rem;
}
-.copyright p {
- margin-bottom: 0;
- margin-top: 0;
- margin-left: .5em;
+.copyright .fa {
+ height: 100%;
+ vertical-align: top;
+ font-size: 1.4em;
+}
+
+.copyright .footer-link {
+ height: 28px;
margin-right: .5em;
- text-align: right;
+}
+
+.copyright img {
+ height: 1.5rem;
+ width: auto;
}