@charset "UTF-8"; /* === FONTS === */ body{ font-family: "Lato", Helvetica, Arial, sans-serif; line-height: 1.5em; font-size: 1em; } code{ font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; /* GitLab */ font-size: 12px; } .comment{ font-style: italic; } /* === PAGE COLORS === */ /* Currently, colors are defined seperately. But this may not be a good * idea. So, duplicate selectors will be reunited in future commits. */ body{ background-color: #FBFCFC; /* BABY POWDER */ } .banner h1{ color: #030504; /* RICH BLACK (FOGRA39) */ } nav{ background-color: #030504; /* RICH BLACK (FOGRA39) */ } #hamnav { background: #000; } .button a, .button a:visited{ color: #dcdfde; /* GAINSBORO */ } .button a:hover{ color: #ff216e; /* AWESOME */ background-color: #121413; /* LICORICE */ } a, p a, li a, a:visited{ text-decoration: none; color: #64030B; } a:hover{ text-shadow: 0px 0px 1px #FBADCE; } pre{ background-color: #FFF; border-color: #CABECF; /* LANGUID LAVENDER */ } pre code{ color: #2A1E5C; /* RUSSIAN VIOLET */ } .comment{ color: #918595; /* TAUPE GRAY */ } p code, li > code{ background-color: #E0E1E1; /* PLATINUM */ color: #1C1E1D; /* EERIE BLACK */ } footer[role=contentinfo]{ background-color: #F2F3F3; color: #1C1E1D; /* EERIE BLACK */ } /* === DECORATION CLASSES === */ .text-shadow{ text-shadow: 2px 2px 1px rgba(255,255,255,1), 4px 4px 1px rgba(50,50,50,0.25); } .box-shadow{ box-shadow: 2px 2px 1px rgba(255,255,255,1), 4px 4px 1px rgba(50,50,50,0.25); } .circle{ -moz-border-radius: 100%; -webkit-border-radius: 100%; border-radius: 100%; } /* === BLOCKS === */ h1, h2, h3{ /* Set line-height for headers to prevent overlap when browser is * forced to wrap the words. */ line-height: 1em; } pre{ /* set code block properties */ display: block; overflow-x: auto; min-width: 90%; margin-right: 8px; border-width: 1px; border-style: solid; border-radius: 5px; line-height: 1.6em; padding: 8px 12px; } p code, li > code{ /* set inline properties */ padding-left: 5px; padding-right: 5px; margin-left: 5px; margin-right: 5px; border-radius: 5px; } /* To keep the content focused in middle of the screen. These ID's have * almost the same style, here is the shared part. The container should * always have a margin-top enough to prevent the navigation bar from * overlapping. */ #hamnav, #container{ max-width: 950px; width: 90%; margin: 0 auto; } #container{ margin-top: 3em; } .clear{ clear: both; /* NOTE: * should add the clear-fix recommended by the book * ********************************************* */ } /* === HEAD NAV === */ nav li{ float: left; padding: 0 5px; } /* hamburger default */ /* banner */ #hamnav { position: fixed; top: 0; } /* Hide Hamburger */ #hamnav label, #hamburger { display: none; } /* Horizontal Menu Items */ #hamitems { display: flex; } #hamitems a { width: 25%; /* 100% / 5 tabs = 20% */ padding: 10px; } /* === MAIN CONTENT === */ /* === MANEAGE BANNER === */ .banner{ width: 100%; margin: 0px auto; text-align: center; } .banner div{ display: inline-block; vertical-align: middle; text-align: left; } .banner h1{ font-size: 300%; text-shadow: 2px 2px 1px rgba(255,255,255,1), 4px 4px 1px rgba(50,50,50,0.25); } .banner h2{ font-size: 200%; vertical-align: middle; } .banner img{ min-width: 170px; min-height: 170px; max-width: 220px; max-height: 220px; width: 100%; } /* === NAVIGATION STYLE - LINKS === */ nav{ text-align: center; /* keep the links in the center of the screen */ border-radius: 5px; } .button a{ text-decoration: none; display: inline-block; /* do not wrap text in a anchor */ padding: 15px 32px; transition-duration: 0.2s; /* fade back to normal */ } .button a:hover{ transition-duration: 0.5s; /* give the modern minimal animation */ text-shadow: 0px 0px 1px #030504; /* RICH BLACK (FOGRA39) */ } p a, li a{ text-decoration: none; transition-duration: 0.2s; /* fade back to normal */ } p a:hover, li a:hover{ transition-duration: 0.5s; /* give the modern minimal animation */ } /* === PAGE FOOTER === */ footer[role=contentinfo] { text-align: left; padding: 15px; border-radius: 5px; margin-left: auto; margin-right: auto; } /* Ensure backward compatibility of HTML5 elements in this website * ************************************************************* */ article, aside, figcaption, figure, footer, header, hgroup, menu, nav, section, { display: block; } /* === MEDIA SPECIFIC STYLES === */ /* 320px and up * ************************************ */ @media only screen and (min-width: 320px){ } /* 480px and below * ************************************ */ @media only screen and (max-width: 480px){ /* === hamburger navigation === */ /* Show Hamburger Icon */ #hamnav label{ display: inline-block; background-color: #ff216e; /* AWESOME */ color: #121413; /* LICORICE */ font-style: normal; font-size: 1.2em; padding: 10px; transition-duration: .2s; } #hamnav label:hover{ color: #ff216e; background-color: white; transition-duration: .2s; } /* Break down menu items into vertical */ #hamitems a { box-sizing: border-box; display: block; width: 100%; border-top: 1px solid #333; } /* Toggle Show/Hide Menu */ #hamitems { display: none; } #hamnav input:checked ~ #hamitems { display: block; } } /* 600px and up * ************************************ */ @media only screen and (min-width: 600px){ } /* 768px and up * ************************************ */ @media only screen and (max-width: 830px){ .banner div{ /* Center the text as soon as browser width is too small for * all the content to fit */ text-align: center; } }