mikaela.github.io/css/main.scss

96 lines
1.9 KiB
SCSS
Raw Normal View History

2014-12-29 18:35:21 +01:00
---
# Only the main Sass file needs front matter (the dashes are enough)
---
2023-02-22 19:28:38 +01:00
@charset "utf-8";
2014-12-29 18:35:21 +01:00
// Our variables
2014-12-31 07:07:16 +01:00
//$base-font-family: Helvetica, Arial, sans-serif;
//$base-font-family: "Copperplate / Copperplate Gothic Light", sans-serif;
$base-font-family: "Noto Serif", serif;
2023-02-22 19:28:38 +01:00
$base-font-size: 16px;
$small-font-size: $base-font-size * 0.875;
2014-12-29 18:35:21 +01:00
$base-line-height: 1.5;
2023-02-22 19:28:38 +01:00
$spacing-unit: 30px;
2014-12-29 18:35:21 +01:00
2023-02-22 19:28:38 +01:00
$text-color: #111;
2014-12-31 07:05:38 +01:00
$background-color: #fdfdfd;
2023-02-22 19:28:38 +01:00
$brand-color: #2a7ae2;
2014-12-29 18:35:21 +01:00
2023-02-22 19:28:38 +01:00
$grey-color: #828282;
2014-12-30 19:41:34 +01:00
$grey-color-light: lighten($grey-color, 40%);
2023-02-22 19:28:38 +01:00
$grey-color-dark: darken($grey-color, 25%);
2014-12-29 18:35:21 +01:00
// Width of the content area
2023-02-22 19:28:38 +01:00
$content-width: 800px;
2014-12-29 18:35:21 +01:00
2023-02-22 19:28:38 +01:00
$on-palm: 600px;
$on-laptop: 800px;
2014-12-29 18:35:21 +01:00
// Using media queries with like this:
// @include media-query($on-palm) {
// .wrapper {
// padding-right: $spacing-unit / 2;
// padding-left: $spacing-unit / 2;
// }
// }
@mixin media-query($device) {
2023-02-22 19:28:38 +01:00
@media screen and (max-width: $device) {
@content;
}
2014-12-29 18:35:21 +01:00
}
// Import partials from `sass_dir` (defaults to `_sass`)
2023-02-22 19:28:38 +01:00
@import "base", "layout", "syntax-highlighting";
2015-10-09 12:59:45 +02:00
// This is used in the index
2018-09-17 15:48:05 +02:00
#avatar {
2023-02-22 19:28:38 +01:00
margin-left: auto;
margin-right: auto;
width: 6em;
border: 1px solid black;
}
2015-10-09 12:59:45 +02:00
// This is the short bio in the index and all my profiles
#bio {
2023-02-22 19:28:38 +01:00
text-align: center;
//font-weight: bold;
font-style: italic;
}
2015-10-09 12:59:45 +02:00
2015-10-09 15:03:51 +02:00
// At least used in the index
.centered {
2023-02-22 19:28:38 +01:00
list-style-type: none;
margin: 0 auto;
text-align: center;
2015-10-09 15:03:51 +02:00
}
2015-10-09 12:59:45 +02:00
// IRC logs should be formatted with this
.irclog {
2023-02-22 19:28:38 +01:00
white-space: pre-wrap;
font-size: 15px;
border: 1px solid $grey-color-light;
border-radius: 3px;
background-color: #eef;
2015-10-09 12:59:45 +02:00
}
2015-10-10 07:53:21 +02:00
// Tables belong to CSS, make the HTML5 validator happy
2023-02-22 19:28:38 +01:00
table,
td,
th {
border: 1px solid black;
2015-10-10 07:53:21 +02:00
}
2015-10-31 08:41:06 +01:00
// Trying to make images look a little better
img {
2023-02-22 19:28:38 +01:00
margin-left: auto;
margin-right: auto;
border: 1px solid black;
2015-10-31 08:41:06 +01:00
}
// Also in index, hidden text
#cake {
2023-02-22 19:28:38 +01:00
color: rgba(0, 0, 0, 0);
}