microblog/app/scss/main.scss

303 lines
5.0 KiB
SCSS
Raw Normal View History

2022-07-01 17:35:34 +00:00
$font-stack: Helvetica, sans-serif;
$background: #002B36; // solarized background color
2022-07-09 06:15:33 +00:00
$light-background: #003d4d; //#e6e6e6;
2022-07-01 17:35:34 +00:00
// font-family: Inconsolata, monospace;
2022-07-03 20:01:47 +00:00
$text-color: #ccc;
2022-07-01 17:35:34 +00:00
$primary-color: #e14eea;
$secondary-color: #32cd32;
2022-07-03 20:01:47 +00:00
$form-background-color: #ccc;
$form-text-color: #222;
2022-07-01 17:35:34 +00:00
$muted-color: #586e75; // solarized comment text
// #93a1a1; solarized body text
2022-07-04 18:49:23 +00:00
// Load custom theme
2022-07-09 06:15:33 +00:00
// @import "vars.scss";
.light-background {
background: $light-background;
}
2022-07-04 18:49:23 +00:00
2022-07-01 17:35:34 +00:00
2022-06-22 18:11:22 +00:00
body {
2022-07-01 17:35:34 +00:00
font-family: $font-stack;
font-size: 20px;
line-height: 32px;
background: $background;
2022-07-03 20:01:47 +00:00
color: $text-color;
2022-07-01 17:35:34 +00:00
margin: 0;
padding: 0;
display: flex;
min-height: 100vh;
flex-direction: column;
}
a {
text-decoration: none;
}
2022-07-12 17:52:29 +00:00
2022-07-03 20:42:14 +00:00
.shared-header {
2022-07-12 17:52:29 +00:00
margin-left: 20px;
margin-top: 30px;
margin-bottom: -20px;
strong {
color: $primary-color;
}
2022-07-03 20:42:14 +00:00
}
2022-07-12 17:52:29 +00:00
div.highlight {
background: #f0f0f0;
padding: 10px;
overflow: auto;
display: block;
2022-07-03 20:42:14 +00:00
}
2022-07-12 17:52:29 +00:00
2022-07-09 06:15:33 +00:00
.box {
padding: 0 20px;
}
2022-07-01 17:35:34 +00:00
2022-07-04 17:43:37 +00:00
.codehilite {
margin: 50px 0;
}
2022-07-01 17:35:34 +00:00
.activity-main {
a {
2022-07-03 20:01:47 +00:00
color: $text-color;
2022-07-01 17:35:34 +00:00
}
}
.activity-wrap {
}
code, pre {
2022-07-03 20:01:47 +00:00
color: $secondary-color; // #cb4b16; // #268bd2; // #2aa198;
2022-07-03 20:42:14 +00:00
font-family: monospace;
2022-07-01 17:35:34 +00:00
}
2022-07-03 20:01:47 +00:00
.form {
input, select, textarea {
font-size: 20px;
border: 0;
padding: 5px;
background: $form-background-color;
color: $form-text-color;
&:focus {
outline: 1px solid $secondary-color;
}
}
input[type=submit] {
font-size: 20px;
outline: none;
background: $primary-color;
color: $form-text-color;
padding: 5px;
}
}
2022-07-01 17:35:34 +00:00
header {
2022-07-09 06:15:33 +00:00
padding: 0 20px;
2022-07-01 17:35:34 +00:00
.title {
font-size: 1.3em;
text-decoration: none;
.handle {
font-size: 0.85em;
2022-07-03 20:01:47 +00:00
color: $muted-color;
2022-07-01 17:35:34 +00:00
}
}
.counter {
2022-07-03 20:01:47 +00:00
color: $muted-color;
2022-07-01 17:35:34 +00:00
}
}
a {
2022-07-03 20:01:47 +00:00
color: $primary-color;
&:hover {
color: $secondary-color;
}
2022-06-22 18:11:22 +00:00
}
#main {
flex: 1;
}
main {
2022-07-01 17:35:34 +00:00
width: 100%;
2022-07-09 06:15:33 +00:00
max-width: 1000px;
2022-07-01 17:35:34 +00:00
margin: 30px auto;
2022-06-22 18:11:22 +00:00
}
footer {
2022-07-01 17:35:34 +00:00
width: 100%;
max-width: 960px;
2022-06-22 18:11:22 +00:00
margin: 20px auto;
2022-07-03 20:01:47 +00:00
color: $muted-color;
2022-07-01 17:35:34 +00:00
}
.actor-box {
display: flex;
column-gap: 20px;
2022-07-09 06:15:33 +00:00
margin:10px 0;
2022-07-01 17:35:34 +00:00
.icon-box {
flex: 0 0 50px;
}
.actor-handle {
font-size: 0.85em;
line-height: 1em;
2022-07-03 20:01:47 +00:00
color: $muted-color;
2022-07-01 17:35:34 +00:00
}
.actor-icon {
max-width: 50px;
}
2022-06-22 18:11:22 +00:00
}
#notifications, #followers, #following {
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
2022-07-05 06:14:50 +00:00
display: block;
2022-06-22 18:11:22 +00:00
}
}
2022-07-03 20:42:14 +00:00
nav {
2022-07-01 17:35:34 +00:00
input[type=submit], button {
font-size: 20px;
line-height: 32px;
font-family: "Inconsolata, monospace";
background: none!important;
border: none;
padding: 0!important;
cursor: pointer;
2022-07-03 20:01:47 +00:00
color: $muted-color;
&:hover {
color: $secondary-color;
}
2022-06-22 18:11:22 +00:00
}
2022-07-03 20:42:14 +00:00
}
2022-06-22 18:11:22 +00:00
nav.flexbox {
ul {
display: flex;
2022-07-01 17:35:34 +00:00
flex-wrap: wrap;
2022-06-22 18:11:22 +00:00
align-items: center;
list-style-type: none;
margin: 0;
padding: 0;
}
ul li {
margin-right: 20px;
&:last-child {
margin-right: 0px;
}
}
2022-07-01 17:35:34 +00:00
a {
text-decoration: none;
}
2022-06-22 18:11:22 +00:00
a.active {
2022-07-04 19:13:04 +00:00
color: $secondary-color;
2022-06-22 18:11:22 +00:00
font-weight: bold;
}
}
2022-07-09 06:15:33 +00:00
.ap-object {
margin: 15px 0;
padding: 20px;
.in-reply-to {
color: $muted-color;
&:hover {
color: $secondary-color;
}
}
nav {
color: $muted-color;
}
nav a {
color: $muted-color;
&:hover {
color: $secondary-color;
}
}
nav a.p {
color: $text-color;
&:hover {
color: $secondary-color;
}
}
.activity-attachment {
img, audio, video {
width: 100%;
max-width: 740px;
margin: 30px 0;
}
2022-07-07 18:37:16 +00:00
}
}
2022-07-09 06:15:33 +00:00
.ap-object-expanded {
border: 2px dashed $secondary-color;
}
2022-06-22 18:11:22 +00:00
.activity-wrap {
margin: 0 auto;
padding: 30px 0;
.actor-icon {
2022-07-01 17:35:34 +00:00
width: 50px;
2022-06-22 18:11:22 +00:00
margin-right: 15px;
2022-07-01 17:35:34 +00:00
margin-top: 5px;
2022-06-22 18:11:22 +00:00
}
2022-07-01 17:35:34 +00:00
2022-06-22 18:11:22 +00:00
.activity-content {
display: flex;
align-items:flex-start;
.activity-header {
width: 100%;
strong {
font-weight:bold;
}
span {
font-weight:normal;
margin-left: 5px;
}
2022-07-01 17:35:34 +00:00
.actor-handle {
2022-07-03 20:01:47 +00:00
color: $muted-color;
2022-07-01 17:35:34 +00:00
}
2022-07-03 20:42:14 +00:00
.activity-date {
float:right;
a {
color: $muted-color;
&:hover {
color: $secondary-color;
}
}
}
2022-07-03 20:01:47 +00:00
.object-visibility { float:right;color: $muted-color;margin-right:10px; }
2022-06-22 18:11:22 +00:00
}
}
.activity-attachment {
padding-left: 60px;
img, audio, video {
width: 100%;
max-width: 740px;
margin: 30px 0;
}
}
.activity-bar {
margin-left: 60px;
margin-top: 10px;
2022-07-03 20:42:14 +00:00
color: $muted-color;
a {
color: $muted-color;
&:hover {
color: $secondary-color;
}
}
2022-06-22 18:11:22 +00:00
}
}
2022-06-25 08:20:07 +00:00
.actor-action {
margin-top:20px;
2022-07-09 06:15:33 +00:00
margin-bottom:-20px;
padding: 0 20px;
2022-06-25 08:20:07 +00:00
span {
2022-07-03 20:01:47 +00:00
color: $muted-color;
2022-06-25 08:20:07 +00:00
}
}
2022-07-03 20:01:47 +00:00
.actor-metadata {
color: $muted-color;
}
2022-06-27 18:55:44 +00:00
.emoji, .custom-emoji {
max-width: 25px;
}