aboutsummaryrefslogtreecommitdiff
path: root/data/static
diff options
context:
space:
mode:
Diffstat (limited to 'data/static')
-rw-r--r--data/static/style.css346
1 files changed, 300 insertions, 46 deletions
diff --git a/data/static/style.css b/data/static/style.css
index 28eda95..871b961 100644
--- a/data/static/style.css
+++ b/data/static/style.css
@@ -2,90 +2,344 @@
box-sizing: border-box;
}
+:root {
+ --primary-color: #464646;
+ --accent-color: white;
+ --anchor-hover-color: #bbb49f;
+ --thumbnail-hover-color: #b1b1b140;
+ --dark-transparent: #161616c5;
+}
+
html {
scroll-behavior: smooth;
}
body {
- font-family: Arial, Helvetica, sans-serif;
- max-width: 500px;
- margin: 0 auto;
- padding: 0;
+ margin: 0;
+ background-image: url("/static/media/MKE_Skyline_Art_Museum.jpg");
+ /* background-image: url("/static/media/SL350.jpg"); */
+ background-size: cover;
+ background-repeat: no-repeat;
+ background-attachment: fixed;
+ background-position: top center;
+ background-color: var(--primary-color);
+ font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
+}
+
+.imgGrid {
+ margin: 20px auto;
+ line-height: 0;
+ column-count: 2;
+ column-gap: 0px;
+}
+
+.imgGrid img {
+ width: 100% !important;
+ height: auto !important;
}
nav {
- margin-top: 8px;
+ max-width: 100%;
text-align: center;
- border-radius: 6px;
- background-color: rgb(228, 228, 228);
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-around;
+ padding-top: 20px;
+ padding-bottom: 20px;
}
-nav ul {
- list-style: none;
- margin: 0;
- padding: 0;
+nav a {
+ font-size: 28px;
+ font-weight: 100;
+ color: var(--accent-color);
+ text-decoration: none;
+}
+
+nav a:hover {
+ color: var(--anchor-hover-color);
}
-nav li {
- display: inline-block;
- margin: 10px;
+main {
+ color: var(--accent-color);
}
a {
- font-weight: bold;
- color: black;
text-decoration: none;
- border-bottom: 1px dotted black;
+ color: inherit;
+}
+
+@keyframes fadeIn {
+ 0% {
+ opacity: 0%;
+ }
+ 8% {
+ opacity: 0%;
+ }
+ 100% {
+ opacity: 100%;
+ }
}
h1 {
- margin: 60px 0 0 0;
+ margin-top: 14vh;
+ margin-left: 4vw;
}
-.subtitle {
- margin: 8px 0 60px 12px;
+h2 {
+ font-weight: lighter;
+ margin-bottom: 40px;
}
-figure {
- margin: 20px 0;
+@keyframes slideInFromBottom {
+ 0% {
+ transform: translateY(100%);
+ opacity: 20%;
+ }
+ 100% {
+ transform: translateY(0);
+ opacity: 100%;
+ }
}
-img {
- max-width: 100%;
+.posts {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-around;
+ max-height: 40vh;
}
-.imgGrid {
- margin: 20px auto;
- line-height: 0;
- column-count: 2;
- column-gap: 0px;
+.postContent {
+ background-color: var(--dark-transparent);
+ margin: 0 15vw;
+ padding: 10px 30px;
}
-.imgGrid img {
- width: 100% !important;
- height: auto !important;
+.postContent > p {
+ margin-left: 25px;
}
-footer {
- text-align: center;
- background-color: rgb(228, 228, 228);
- border-radius: 6px;
+.bottom {
+ width: 100%;
+ background-color: var(--dark-transparent);
+ padding: 10px 20px;
+ position: fixed;
+ bottom: 0;
+ max-height: 50vh;
+ animation: 0.6s ease-out 0s 1 slideInFromBottom;
+}
+
+.bottom > .posts > .thumbnail {
+ padding: 10px 10px 30px 10px;
+ margin-bottom: 30px;
+}
+
+.bottom > .posts > .thumbnail:hover {
+ border-radius: 5px;
+ background-color: var(--thumbnail-hover-color);
+}
+
+.bottom > .posts > .thumbnail img {
+ width: 400px;
+ height: 100%;
+ object-fit: cover;
}
-footer p {
- padding: 8px 0;
+.f, .f * {
+ position:fixed;
+ max-width:100%;
+ max-height:100%;
+ top:50%;
+ left:50%;
}
-@media only screen
-and (max-width: 520px) {
- body {
- max-width: 400px;
+.f * {
+ transform:translate(-50%,-50%);
+}
+
+.f {
+ display:none;
+ top:0;
+ left:0;
+ width:100%;
+ height:100%;
+ background:var(--dark-transparent);
+}
+
+*:focus+.f {
+ display:block;
+}
+
+img {
+ max-width:100%;
+}
+
+.toggler {
+ visibility: hidden;
+}
+
+@media screen and (max-width: 1000px) {
+ .bottom {
+ position: relative;
+ margin-top: 20vh;
+ max-height: fit-content;
+ }
+ .postContent {
+ margin: 0 40px;
+ }
+ .posts {
+ padding-left: 100px;
+ padding-right: 100px;
+ flex-direction: column;
+ max-height: fit-content;
+ }
+ .bottom > .posts > .thumbnail {
+ margin: 15px auto;
+ }
+ .bottom > .posts > .thumbnail img {
+ width: fit-content;
}
}
-@media only screen
-and (max-width: 410px) {
- body {
- max-width: 375px;
+@media screen and (max-width: 700px) {
+ span {
+ display: inline-block;
+ }
+ nav {
+ display: none;
+ }
+ span:hover~nav {
+ display: flex;
+ flex-direction: column;
+ }
+ h1 {
+ margin-top: 20px;
+ }
+ .postContent {
+ margin: 100px 0 0 0;
+ }
+ .posts {
+ padding: 0;
+ }
+
+ .toggler{
+ /* ALWAYS KEEPING THE TOGGLER OR THE CHECKBOX ON TOP OF EVERYTHING : */
+ visibility: visible;
+ z-index:3;
+ height: 40px;
+ width: 40px;
+ position: fixed;
+ top: 15px;
+ right: 15px;
+ cursor: pointer;
+ opacity: 0;
+ margin: 0;
+ }
+
+ .hamburger{
+ z-index: 2;
+ position: fixed;
+ top: 15px;
+ right: 15px;
+ height: 40px;
+ width: 40px;
+
+ /* FOR DISPLAYING EVERY ELEMENT IN THE CENTER : */
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ /* CREATING THE MIDDLE LINE OF THE HAMBURGER : */
+
+ .hamburger > div{
+ position: relative;
+ top: 0;
+ right: 0;
+ background: var(--accent-color);
+ height: 2px;
+ width: 60%;
+ transition: all 0.4s ease;
+ }
+
+ /* CREATING THE TOP AND BOTTOM LINES :
+ TOP AT -10PX ABOVE THE MIDDLE ONE AND BOTTOM ONE IS 10PX BELOW THE MIDDLE: */
+
+ .hamburger > div::before,
+ .hamburger > div::after{
+ content: '';
+ position: absolute;
+ top: -10px;
+ background: var(--accent-color);
+ width: 100%;
+ height: 2px;
+ transition: all 0.4s ease;
+ }
+
+ .hamburger > div::after{
+ top: 10px;
+ }
+
+ /* IF THE TOGGLER IS IN ITS CHECKED STATE, THEN SETTING THE BACKGROUND OF THE MIDDLE LAYER TO COMPLETE BLACK AND OPAQUE : */
+
+ .toggler:checked + .hamburger > div{
+ background: rgba(0,0,0,0); /*Not bothering with var because one-off*/
+ }
+
+ .toggler:checked + .hamburger > div::before{
+ top: 0;
+ transform: rotate(-45deg);
+ }
+
+ /* AND ROTATING THE TOP AND BOTTOM LINES : */
+
+ .toggler:checked + .hamburger > div::after{
+ top: 0;
+ transform: rotate(45deg);
+ }
+
+ /* MAIN MENU WITH THE WHITE BACKGROUND AND THE TEXT : */
+
+ .menu {
+
+ /* APPLYING TRANSITION TO THE MENU : */
+
+ display: flex;
+ flex-direction: column;
+ position: fixed;
+ top: 40px;
+ right: 25px;
+ z-index: 3;
+
+ /* HIDDEN INITIALLY : */
+
+ visibility: hidden;
+ }
+ .bg-nav-block {
+ display: block;
+ position: fixed;
+ width: 160px;
+ height: 250px;
+ top: 0;
+ right: 0;
+ z-index: 1;
+ background-color: var(--dark-transparent);
+ visibility: hidden;
+ }
+
+ .menu > a {
+ margin-top: 5px;
+ margin-bottom: 5px;
+ }
+
+ /* IF THE TOGGLER IS CHECKED, THEN INCREASE THE WIDTH OF THE MENU TO 30% , CREATING A SMOOTH EFFECT : */
+
+ .toggler:checked ~ .menu{
+ visibility: visible;
+ animation: fadeIn 0.8s ease;
+ }
+ .toggler:checked ~ .bg-nav-block {
+ visibility: visible;
+ animation: fadeIn 0.8s ease;
}
} \ No newline at end of file