A collection of themes for your Write.as & WriteFreely blog

Gab's Notes


Copy Theme

CSS

/* Written in 2020 by Gabriel Augendre

 This theme is licensed under the GNU General Public License v3.

 You should have received a copy of the license along with this
 work. If not, see https://www.gnu.org/licenses/gpl-3.0.en.html
*/

:root {
  --accent: #226997;
  --main: #111111;
  --main2: #575757;
  --main3: #7d7d7d;
  --background: #ffffff;
  --background2: #f7f7f7;
}

body {
  font-size: 110%;
  color: var(--main);
  background-color: var(--background);
}

body h1 a, body h1 a:visited, body h1 a:link, body header h2 a, body header h2 a:visited, body header h2 a:link {
  color: var(--main);
}

body header p.description, body header nav a {
  color: var(--main2);
}

body .hidden.user.action {
  opacity: 1;
  color: var(--main3);
}

body article table a:not(.hashtag), body article table a.hashtag span + span, body article p a:not(.hashtag), body article p a.hashtag span + span, body article ul a:not(.hashtag), body article ul a.hashtag span + span {
  color: var(--main);
  border-bottom: solid var(--accent) 1px;
  text-decoration: none;
  transition: border-bottom 0.12s ease;
}

body article table a:not(.hashtag):hover, body article table a:not(.hashtag):focus, body article table a.hashtag:hover span + span, body article table a.hashtag:focus span + span, body article p a:not(.hashtag):hover, body article p a:not(.hashtag):focus, body article p a.hashtag:hover span + span, body article p a.hashtag:focus span + span, body article ul a:not(.hashtag):hover, body article ul a:not(.hashtag):focus, body article ul a.hashtag:hover span + span, body article ul a.hashtag:focus span + span {
  text-decoration: none;
  border-color: transparent;
}

body#post a, body#post a.hashtag span + span, body#subpage a, body#subpage a.hashtag span + span {
  border-bottom-width: 2.5px;
}

body #manage a, body .dropdown-nav a, body #manage ul a {
  color: var(--main);
}

body #manage ul, body .dropdown-nav ul, body #manage ul ul {
  background: var(--background);
}

body #manage ul li:hover, body .dropdown-nav ul li:hover, body #manage ul ul li:hover {
  background: var(--background2);
}

body #manage ul li a, body .dropdown-nav ul li a, body #manage ul ul li a {
  color: var(--main);
}

body#post, body#collection, body#subpage {
  color: var(--main);
}

body#post pre, body#post code, body#collection pre, body#collection code, body#subpage pre, body#subpage code {
  background: var(--background2);
  color: var(--main2);
}

body#post pre, body#collection pre, body#subpage pre {
  background: var(--background2);
}

body#post .post-title a, body#collection .post-title a, body#subpage .post-title a {
  color: var(--main);
}

body#post a.read-more, body#collection a.read-more, body#subpage a.read-more {
  color: var(--main3);
}

body#post article time.dt-published, body#collection article time.dt-published, body#subpage article time.dt-published {
  color: var(--main2);
}

body#post blockquote, body#collection blockquote, body#subpage blockquote {
  color: var(--main2);
}

body#post .pic-container, body#collection .pic-container, body#subpage .pic-container {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin-bottom: -3rem;
}

body#post .pic-container .profile-pic, body#collection .pic-container .profile-pic, body#subpage .pic-container .profile-pic {
  max-width: 200px;
  min-width: 100px;
  border-radius: 10%;
  padding: 1rem;
  flex-shrink: 1;
  flex-grow: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #226997;
    --main: #eeeeee;
    --main2: #cecece;
    --main3: #b1b1b1;
    --background: #111111;
    --background2: #575656;
  }

  img {
    opacity: 0.75;
    transition: opacity 0.5s ease-in-out;
  }

  img:hover {
    opacity: 1;
  }

  #manage ul ul li img {
    opacity: 1;
    filter: invert(1);
  }
}



Feature: Dark Mode

This theme features a dark mode that changes based on your OS and/or browser preferences.


Dark Mode

CSS


@media (prefers-color-scheme: dark) {
  :root {
    --accent: #226997;
    --main: #eeeeee;
    --main2: #cecece;
    --main3: #b1b1b1;
    --background: #111111;
    --background2: #575656;
  }

  img {
    opacity: 0.75;
    transition: opacity 0.5s ease-in-out;
  }

  img:hover {
    opacity: 1;
  }

  #manage ul ul li img {
    opacity: 1;
    filter: invert(1);
  }
}