Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Merges CSS into home page

AuthorDaveJarvis <email>
Date2023-10-01 17:51:41 GMT-0700
Commit460d31cc665ae12a075abf7699f8fd4d6d0ef136
Parent46e17b1
Delta0 lines added, 128 lines removed, 128-line decrease
www/styles/homepage.css
-/* ************************************************************************
- *
- * Page
- *
- * ************************************************************************ */
-
-body {
- /* Ensure the page doesn't extend full screen on large monitors. */
- max-width: 1000px;
- margin: 0 auto;
-
- background: #363636;
- color: #eaeaea;
-}
-
-/* ************************************************************************
- *
- * Header
- *
- * ************************************************************************ */
-
-header {
- /* Avoid being flush with top of page. */
- margin-top: 2em;
-
- /* Put some distance between the title and the download buttons. */
- margin-bottom: 2em;
-
- text-align: center;
-}
-
-/* Display the application title. */
-header > img.icon {
- width: 100%;
- height: 72pt;
-}
-
-/* ************************************************************************
- *
- * Download buttons
- *
- * ************************************************************************ */
-
-/* Arrange the buttons in a responsive, 2 x 2 grid. */
-main {
- display: grid;
- grid-template-rows: 1fr 1fr;
- grid-template-columns: max-content max-content;
- justify-content: center;
-}
-
-/* Make the buttons look like buttons. */
-main > a {
- display: inline-block;
-
- /* Separate the buttons from one another. */
- margin-top: 2em;
- margin-left: 1em;
- margin-right: 1em;
-
- /* Fancy buttons. */
- border-radius: 1em;
- background: #ec706a;
-}
-
-.download-icon {
- /* Replaces the black in the icon with another colour. */
- filter: invert(6%)
- sepia(58%)
- saturate(857%) hue-rotate(158deg)
- brightness(91%) contrast(91%);
-}
-
-/* ************************************************************************
- *
- * Navigation
- *
- * ************************************************************************ */
-
-section {
- /* Don't crowd the navigation links against the download buttons. */
- margin-top: 4em;
-}
-
-nav {
- text-align: center;
-}
-
-nav ul {
- list-style: none;
- padding: 0;
- margin: 0;
-}
-
-nav li {
- /* Put the navigation items along a single line. */
- display: inline;
-}
-
-nav li:not(:last-child)::after {
- /* Separate the navigation items with a bar. */
- content: " | ";
-}
-
-nav a, nav a:visited {
- color: #8cc6de;
-}
-
-nav a:link:hover, nav a:visited:hover {
- color: #ec706a;
-}
-
-/* ************************************************************************
- *
- * Footer
- *
- * ************************************************************************ */
-
-/* Align and center footer along bottom of page. */
-footer {
- position: fixed;
- bottom: 1em;
- left: 50%;
- transform: translateX(-50%);
- width: 100%;
- text-align: center;
-}
-