Loading style.css +183 −285 Changes for style.css: 183 added lines, 285 removed lines. Original line number Diff line number Diff line Loading @@ -56,6 +56,11 @@ body > header, main, body > footer { body > aside { grid-column-start: 1; grid-column-end: 2; padding: 1em; background-color: var(--background-color); border-right: 2px solid var(--accent-color); box-shadow: 0 0 5px var(--shadow-color); } body > aside + main { Loading @@ -63,13 +68,7 @@ body > aside + main { grid-column-end: 3; } /* -- Main content -- */ main:not(.list) { display: grid; grid-template-rows: 1fr; } /* -- Header and footer -- */ /* -- Header (containing the menu) and footer (containing copyright info) -- */ body > header, body > footer { font-family: "Inconsolata", monospace; } Loading Loading @@ -132,127 +131,96 @@ body > footer a { border: none; } /* --- Text markup elements --- */ a { color: var(--accent-color); border-color: var(--accent-color); text-decoration: none; border-style: solid; border-width: 0 0 1px 0; transition: text-shadow 0.2s; } /* -- Navigation bar -- */ a:hover { text-shadow: 0 0 1px var(--light-gray); .menu-toggle { display: none; } a img { border-style: none; #menu-container { display: inline-block; position: relative; height: 28px; white-space: nowrap; vertical-align: bottom; } h1 { font-size: 1.75em; font-weight: normal; #menu-container a { border: none; transition: none; } h3 { margin-bottom: 10px; #menu-container a[href="#"] { cursor: default; } hr { border: none; height: 1px; margin: 1em 0 1em 0; background: linear-gradient( to left, transparent, rgba(153, 0, 0, 0.75), transparent ); #menu-container a:hover { text-decoration: none; } table, th, tr, td { border: solid; border-color: rgba(153, 0, 0, 0.2); border-collapse: collapse; #menu-container ul { display: inline; } tr:nth-child(odd) { background-color: rgba(255, 255, 255, 0.2); #menu-container li { display: inline-block; height: 25px; padding: 3px 15px 0px 15px; vertical-align: middle; transition: background-color 0.3s; } tr:nth-child(even) { #menu-container li:hover { background-color: rgba(153, 0, 0, 0.1); border-radius: 5px 5px 0px 0px; } td, th { padding: 3px; #menu-container li:hover > ul { display: block; } th { font-weight: normal; #menu-container li ul { display: none; position: absolute; top: 28px; margin: 0px 0px 0px -15px; padding: 0px; border-width: 0px 4px 4px 4px; border-style: solid; border-width: 0px 0px 2px 0px; border-color: var(--accent-color); background-color: rgba(153, 0, 0, 0.5); color: #fff; } ul, ol { margin-left: 1.5em; } ul li { list-style: square; background-color: var(--background-color); box-shadow: 0px 0px 10px var(--menu-shadow-color) inset; } select { -webkit-appearance: none; appearance: none; margin: 0.25em; padding: 0.25em 1.5em 0.25em 0.25em; background-image: url("img/dropdown.png"); background-repeat: no-repeat; background-position: center right; background-size: contain; background-color: #fff; border: 1px solid var(--accent-color); border-radius: 5px; font-family: "Open Sans", sans-serif; #menu-container li ul li:hover > ul { display: block; } input[type="password"] { margin: 0.25em; padding: 0.25em; background-color: #fff; border: none; border-radius: 5px; box-shadow: 0px 0px 2px #8d8d8d inset; font-size: 1em; font-family: "Open Sans", sans-serif; #menu-container li ul li ul { display: none; position: absolute; top: 0px; left: 100%; margin: 0px 0px 0px -10px; padding: 0px; border-width: 0px 0px 0px 5px; border-style: solid; border-color: #ba0000; background: var(--background-color); box-shadow: 0px 0px 10px var(--menu-shadow-color); } input[type="submit"] { margin: 0.25em; padding: 0.25em 0.5em; background-color: #fff; border: none; border-radius: 5px; box-shadow: 0px 0px 2px var(--accent-color); font-size: 1em; font-family: "Open Sans", sans-serif; cursor: pointer; color: var(--accent-color); transition: box-shadow 0.2s; #menu-container li li { display: block; margin-left: -5px; border-radius: 0px; } input[type="submit"]:hover { box-shadow: 0px 0px 5px var(--accent-color); /* ======================================================================= */ /* -- Main content -- */ main:not(.list) { display: grid; grid-template-rows: 1fr; } /* - easter egg: Pictures that change on hover - */ Loading Loading @@ -345,92 +313,6 @@ div.square-icon { } /* -- menu styles */ .menu-toggle { display: none; } #menu-container { display: inline-block; position: relative; height: 28px; white-space: nowrap; vertical-align: bottom; } #menu-container a { border: none; transition: none; } #menu-container a[href="#"] { cursor: default; } #menu-container a:hover { text-decoration: none; } #menu-container ul { display: inline; } #menu-container li { display: inline-block; height: 25px; padding: 3px 15px 0px 15px; vertical-align: middle; transition: background-color 0.3s; } #menu-container li:hover { background-color: rgba(153, 0, 0, 0.1); border-radius: 5px 5px 0px 0px; } #menu-container li:hover > ul { display: block; } #menu-container li ul { display: none; position: absolute; top: 28px; margin: 0px 0px 0px -15px; padding: 0px; border-width: 0px 4px 4px 4px; border-style: solid; border-color: var(--accent-color); background-color: var(--background-color); box-shadow: 0px 0px 10px var(--menu-shadow-color) inset; } #menu-container li ul li:hover > ul { display: block; } #menu-container li ul li ul { display: none; position: absolute; top: 0px; left: 100%; margin: 0px 0px 0px -10px; padding: 0px; border-width: 0px 0px 0px 5px; border-style: solid; border-color: #ba0000; background: var(--background-color); box-shadow: 0px 0px 10px var(--menu-shadow-color); } #menu-container li li { display: block; margin-left: -5px; border-radius: 0px; } /* - heading styles */ main > header { Loading Loading @@ -558,30 +440,14 @@ main.landing section.news aside { } /* - posts listing styles */ body > aside { margin: 2em 0; padding: 1em; background-color: var(--background-color); border-style: solid; border-color: var(--accent-color); border-width: 0px 2px 0px 0px; box-shadow: 0px 0px 5px var(--shadow-color); height: max-content; } aside h1, h2 { font-weight: normal; } aside h1 { font-family: "Inconsolata", monospace; font-size: 1.75em; } aside h2 { font-size: 1.1em; font-weight: normal; } aside .link-list li a { Loading Loading @@ -850,126 +716,158 @@ article > footer { .triple-picture-container .triple-picture-container-third:hover img { display: block; } /* ======================================================================= */ /* Pills (a rounded group of multiple button-like entries, one of which can be active (red background), inactive entries have a white background (therefore making the whole thing looking somewhat like a pill)*/ .pill { border: 2px solid var(--accent-color); margin: 0; border-radius: 10px; display: inline-flex; } .pill li { display: inline; list-style: none; border-right: 2px solid var(--accent-color); padding: 0 7px; cursor: pointer; } .pill li:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; /* --- Text markup elements --- */ a { color: var(--accent-color); border-color: var(--accent-color); text-decoration: none; border-style: solid; border-width: 0 0 1px 0; transition: text-shadow 0.2s; } .pill li:last-child { border: none; border-top-right-radius: 5px; border-bottom-right-radius: 5px; a:hover { text-shadow: 0 0 1px var(--light-gray); } .pill li.active { background-color: var(--accent-color); color: white; a img { border-style: none; } @media (max-width: 830px) { #menu-container { display: inherit; height: inherit; white-space: inherit; h1 { font-size: 1.75em; font-weight: normal; } #menu-container ul { margin: 0; padding: 0; h3 { margin-bottom: 10px; } #menu-container li { display: block; height: inherit; padding: 0 15px; line-height: 35px; hr { border: none; height: 1px; margin: 1em 0 1em 0; background: linear-gradient( to left, transparent, rgba(153, 0, 0, 0.75), transparent ); } #menu-container li:hover { border-radius: 0; table, th, tr, td { border: solid; border-color: rgba(153, 0, 0, 0.2); border-collapse: collapse; } #menu-container li > ul { display: block; tr:nth-child(odd) { background-color: rgba(255, 255, 255, 0.2); } #menu-container li ul { border: none; box-shadow: none; position: inherit; margin: 0; padding: 0; tr:nth-child(even) { background-color: rgba(153, 0, 0, 0.1); } #menu-container li li { margin-left: 0; td, th { padding: 3px; } header { position: relative; padding-top: 5px; th { font-weight: normal; border-style: solid; border-width: 0px 0px 2px 0px; border-color: var(--accent-color); background-color: rgba(153, 0, 0, 0.5); color: #fff; } header div.logo { margin: 0 auto; display: block; ul, ol { margin-left: 1.5em; } div.home-news-main { width: 100%; ul li { list-style: square; } div.home-news-main-content { margin-right: 0; select { -webkit-appearance: none; appearance: none; margin: 0.25em; padding: 0.25em 1.5em 0.25em 0.25em; background-image: url("img/dropdown.png"); background-repeat: no-repeat; background-position: center right; background-size: contain; background-color: #fff; border: 1px solid var(--accent-color); border-radius: 5px; font-family: "Open Sans", sans-serif; } div.home-news-sidebar { width: 100%; input[type="password"] { margin: 0.25em; padding: 0.25em; background-color: #fff; border: none; margin-top: 20px; border-radius: 5px; box-shadow: 0px 0px 2px #8d8d8d inset; font-size: 1em; font-family: "Open Sans", sans-serif; } div.home-news-sidebar ul { margin: 0; input[type="submit"] { margin: 0.25em; padding: 0.25em 0.5em; background-color: #fff; border: none; border-radius: 5px; box-shadow: 0px 0px 2px var(--accent-color); font-size: 1em; font-family: "Open Sans", sans-serif; cursor: pointer; color: var(--accent-color); transition: box-shadow 0.2s; } div.home-news-sidebar .more { text-align: left; line-height: 30px; input[type="submit"]:hover { box-shadow: 0px 0px 5px var(--accent-color); } body > footer .copyright { float: none; display: block; margin-top: 10px; /* -- Pills -- * Pills are a rounded group of multiple button-like entries, one of which can be active (red background), inactive * entries have a white background (therefore making the whole thing looking somewhat like a pill) */ .pill { border: 2px solid var(--accent-color); margin: 0; border-radius: 10px; display: inline-flex; } .menu-toggle { display: block; padding: 0 15px; margin-top: 15px; line-height: 35px; .pill li { display: inline; list-style: none; border-right: 2px solid var(--accent-color); padding: 0 7px; cursor: pointer; } #menu-container { display: none; .pill li:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; } #menu-container:target { display: block; .pill li:last-child { border: none; border-top-right-radius: 5px; border-bottom-right-radius: 5px; } .pill li.active { background-color: var(--accent-color); color: white; } No newline at end of file Loading
style.css +183 −285 Changes for style.css: 183 added lines, 285 removed lines. Original line number Diff line number Diff line Loading @@ -56,6 +56,11 @@ body > header, main, body > footer { body > aside { grid-column-start: 1; grid-column-end: 2; padding: 1em; background-color: var(--background-color); border-right: 2px solid var(--accent-color); box-shadow: 0 0 5px var(--shadow-color); } body > aside + main { Loading @@ -63,13 +68,7 @@ body > aside + main { grid-column-end: 3; } /* -- Main content -- */ main:not(.list) { display: grid; grid-template-rows: 1fr; } /* -- Header and footer -- */ /* -- Header (containing the menu) and footer (containing copyright info) -- */ body > header, body > footer { font-family: "Inconsolata", monospace; } Loading Loading @@ -132,127 +131,96 @@ body > footer a { border: none; } /* --- Text markup elements --- */ a { color: var(--accent-color); border-color: var(--accent-color); text-decoration: none; border-style: solid; border-width: 0 0 1px 0; transition: text-shadow 0.2s; } /* -- Navigation bar -- */ a:hover { text-shadow: 0 0 1px var(--light-gray); .menu-toggle { display: none; } a img { border-style: none; #menu-container { display: inline-block; position: relative; height: 28px; white-space: nowrap; vertical-align: bottom; } h1 { font-size: 1.75em; font-weight: normal; #menu-container a { border: none; transition: none; } h3 { margin-bottom: 10px; #menu-container a[href="#"] { cursor: default; } hr { border: none; height: 1px; margin: 1em 0 1em 0; background: linear-gradient( to left, transparent, rgba(153, 0, 0, 0.75), transparent ); #menu-container a:hover { text-decoration: none; } table, th, tr, td { border: solid; border-color: rgba(153, 0, 0, 0.2); border-collapse: collapse; #menu-container ul { display: inline; } tr:nth-child(odd) { background-color: rgba(255, 255, 255, 0.2); #menu-container li { display: inline-block; height: 25px; padding: 3px 15px 0px 15px; vertical-align: middle; transition: background-color 0.3s; } tr:nth-child(even) { #menu-container li:hover { background-color: rgba(153, 0, 0, 0.1); border-radius: 5px 5px 0px 0px; } td, th { padding: 3px; #menu-container li:hover > ul { display: block; } th { font-weight: normal; #menu-container li ul { display: none; position: absolute; top: 28px; margin: 0px 0px 0px -15px; padding: 0px; border-width: 0px 4px 4px 4px; border-style: solid; border-width: 0px 0px 2px 0px; border-color: var(--accent-color); background-color: rgba(153, 0, 0, 0.5); color: #fff; } ul, ol { margin-left: 1.5em; } ul li { list-style: square; background-color: var(--background-color); box-shadow: 0px 0px 10px var(--menu-shadow-color) inset; } select { -webkit-appearance: none; appearance: none; margin: 0.25em; padding: 0.25em 1.5em 0.25em 0.25em; background-image: url("img/dropdown.png"); background-repeat: no-repeat; background-position: center right; background-size: contain; background-color: #fff; border: 1px solid var(--accent-color); border-radius: 5px; font-family: "Open Sans", sans-serif; #menu-container li ul li:hover > ul { display: block; } input[type="password"] { margin: 0.25em; padding: 0.25em; background-color: #fff; border: none; border-radius: 5px; box-shadow: 0px 0px 2px #8d8d8d inset; font-size: 1em; font-family: "Open Sans", sans-serif; #menu-container li ul li ul { display: none; position: absolute; top: 0px; left: 100%; margin: 0px 0px 0px -10px; padding: 0px; border-width: 0px 0px 0px 5px; border-style: solid; border-color: #ba0000; background: var(--background-color); box-shadow: 0px 0px 10px var(--menu-shadow-color); } input[type="submit"] { margin: 0.25em; padding: 0.25em 0.5em; background-color: #fff; border: none; border-radius: 5px; box-shadow: 0px 0px 2px var(--accent-color); font-size: 1em; font-family: "Open Sans", sans-serif; cursor: pointer; color: var(--accent-color); transition: box-shadow 0.2s; #menu-container li li { display: block; margin-left: -5px; border-radius: 0px; } input[type="submit"]:hover { box-shadow: 0px 0px 5px var(--accent-color); /* ======================================================================= */ /* -- Main content -- */ main:not(.list) { display: grid; grid-template-rows: 1fr; } /* - easter egg: Pictures that change on hover - */ Loading Loading @@ -345,92 +313,6 @@ div.square-icon { } /* -- menu styles */ .menu-toggle { display: none; } #menu-container { display: inline-block; position: relative; height: 28px; white-space: nowrap; vertical-align: bottom; } #menu-container a { border: none; transition: none; } #menu-container a[href="#"] { cursor: default; } #menu-container a:hover { text-decoration: none; } #menu-container ul { display: inline; } #menu-container li { display: inline-block; height: 25px; padding: 3px 15px 0px 15px; vertical-align: middle; transition: background-color 0.3s; } #menu-container li:hover { background-color: rgba(153, 0, 0, 0.1); border-radius: 5px 5px 0px 0px; } #menu-container li:hover > ul { display: block; } #menu-container li ul { display: none; position: absolute; top: 28px; margin: 0px 0px 0px -15px; padding: 0px; border-width: 0px 4px 4px 4px; border-style: solid; border-color: var(--accent-color); background-color: var(--background-color); box-shadow: 0px 0px 10px var(--menu-shadow-color) inset; } #menu-container li ul li:hover > ul { display: block; } #menu-container li ul li ul { display: none; position: absolute; top: 0px; left: 100%; margin: 0px 0px 0px -10px; padding: 0px; border-width: 0px 0px 0px 5px; border-style: solid; border-color: #ba0000; background: var(--background-color); box-shadow: 0px 0px 10px var(--menu-shadow-color); } #menu-container li li { display: block; margin-left: -5px; border-radius: 0px; } /* - heading styles */ main > header { Loading Loading @@ -558,30 +440,14 @@ main.landing section.news aside { } /* - posts listing styles */ body > aside { margin: 2em 0; padding: 1em; background-color: var(--background-color); border-style: solid; border-color: var(--accent-color); border-width: 0px 2px 0px 0px; box-shadow: 0px 0px 5px var(--shadow-color); height: max-content; } aside h1, h2 { font-weight: normal; } aside h1 { font-family: "Inconsolata", monospace; font-size: 1.75em; } aside h2 { font-size: 1.1em; font-weight: normal; } aside .link-list li a { Loading Loading @@ -850,126 +716,158 @@ article > footer { .triple-picture-container .triple-picture-container-third:hover img { display: block; } /* ======================================================================= */ /* Pills (a rounded group of multiple button-like entries, one of which can be active (red background), inactive entries have a white background (therefore making the whole thing looking somewhat like a pill)*/ .pill { border: 2px solid var(--accent-color); margin: 0; border-radius: 10px; display: inline-flex; } .pill li { display: inline; list-style: none; border-right: 2px solid var(--accent-color); padding: 0 7px; cursor: pointer; } .pill li:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; /* --- Text markup elements --- */ a { color: var(--accent-color); border-color: var(--accent-color); text-decoration: none; border-style: solid; border-width: 0 0 1px 0; transition: text-shadow 0.2s; } .pill li:last-child { border: none; border-top-right-radius: 5px; border-bottom-right-radius: 5px; a:hover { text-shadow: 0 0 1px var(--light-gray); } .pill li.active { background-color: var(--accent-color); color: white; a img { border-style: none; } @media (max-width: 830px) { #menu-container { display: inherit; height: inherit; white-space: inherit; h1 { font-size: 1.75em; font-weight: normal; } #menu-container ul { margin: 0; padding: 0; h3 { margin-bottom: 10px; } #menu-container li { display: block; height: inherit; padding: 0 15px; line-height: 35px; hr { border: none; height: 1px; margin: 1em 0 1em 0; background: linear-gradient( to left, transparent, rgba(153, 0, 0, 0.75), transparent ); } #menu-container li:hover { border-radius: 0; table, th, tr, td { border: solid; border-color: rgba(153, 0, 0, 0.2); border-collapse: collapse; } #menu-container li > ul { display: block; tr:nth-child(odd) { background-color: rgba(255, 255, 255, 0.2); } #menu-container li ul { border: none; box-shadow: none; position: inherit; margin: 0; padding: 0; tr:nth-child(even) { background-color: rgba(153, 0, 0, 0.1); } #menu-container li li { margin-left: 0; td, th { padding: 3px; } header { position: relative; padding-top: 5px; th { font-weight: normal; border-style: solid; border-width: 0px 0px 2px 0px; border-color: var(--accent-color); background-color: rgba(153, 0, 0, 0.5); color: #fff; } header div.logo { margin: 0 auto; display: block; ul, ol { margin-left: 1.5em; } div.home-news-main { width: 100%; ul li { list-style: square; } div.home-news-main-content { margin-right: 0; select { -webkit-appearance: none; appearance: none; margin: 0.25em; padding: 0.25em 1.5em 0.25em 0.25em; background-image: url("img/dropdown.png"); background-repeat: no-repeat; background-position: center right; background-size: contain; background-color: #fff; border: 1px solid var(--accent-color); border-radius: 5px; font-family: "Open Sans", sans-serif; } div.home-news-sidebar { width: 100%; input[type="password"] { margin: 0.25em; padding: 0.25em; background-color: #fff; border: none; margin-top: 20px; border-radius: 5px; box-shadow: 0px 0px 2px #8d8d8d inset; font-size: 1em; font-family: "Open Sans", sans-serif; } div.home-news-sidebar ul { margin: 0; input[type="submit"] { margin: 0.25em; padding: 0.25em 0.5em; background-color: #fff; border: none; border-radius: 5px; box-shadow: 0px 0px 2px var(--accent-color); font-size: 1em; font-family: "Open Sans", sans-serif; cursor: pointer; color: var(--accent-color); transition: box-shadow 0.2s; } div.home-news-sidebar .more { text-align: left; line-height: 30px; input[type="submit"]:hover { box-shadow: 0px 0px 5px var(--accent-color); } body > footer .copyright { float: none; display: block; margin-top: 10px; /* -- Pills -- * Pills are a rounded group of multiple button-like entries, one of which can be active (red background), inactive * entries have a white background (therefore making the whole thing looking somewhat like a pill) */ .pill { border: 2px solid var(--accent-color); margin: 0; border-radius: 10px; display: inline-flex; } .menu-toggle { display: block; padding: 0 15px; margin-top: 15px; line-height: 35px; .pill li { display: inline; list-style: none; border-right: 2px solid var(--accent-color); padding: 0 7px; cursor: pointer; } #menu-container { display: none; .pill li:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; } #menu-container:target { display: block; .pill li:last-child { border: none; border-top-right-radius: 5px; border-bottom-right-radius: 5px; } .pill li.active { background-color: var(--accent-color); color: white; } No newline at end of file