microblog.pub/app/scss/main.scss

288 lines
4.8 KiB
SCSS
Raw Normal View History

2022-07-01 19:35:34 +02:00
$font-stack: Helvetica, sans-serif;
2022-07-14 15:33:40 +02:00
$background: #ddd;
2022-07-14 16:31:16 +02:00
$light-background: #e6e6e6;
2022-07-14 15:33:40 +02:00
$text-color: #111;
$primary-color: #1d781d;
$secondary-color: #781D78;
2022-07-03 22:01:47 +02:00
$form-background-color: #ccc;
2022-07-14 18:40:38 +02:00
$form-text-color: #333;
2022-07-14 15:33:40 +02:00
$muted-color: #555; // solarized comment text
2022-07-29 21:26:19 +02:00
$primary-button-text-color: #fff;
2022-08-04 19:10:57 +02:00
$code-highlight-background: #f0f0f0;
2022-07-01 19:35:34 +02:00
2022-07-04 20:49:23 +02:00
// Load custom theme
2022-07-29 21:01:45 +02:00
@import "theme.scss";
2022-07-09 08:15:33 +02:00
2022-08-03 19:53:55 +02:00
blockquote {
border-left: 3px solid $secondary-color;
margin-left: 0;
padding-left: 1.5em;
}
.muted {
color: $muted-color;
}
.poll-bar {
width:100%;height:20px;
line {
stroke: $secondary-color;
}
}
2022-07-09 08:15:33 +02:00
.light-background {
background: $light-background;
}
2022-07-04 20:49:23 +02:00
2022-07-01 19:35:34 +02:00
2022-06-22 20:11:22 +02:00
body {
2022-07-01 19:35:34 +02:00
font-family: $font-stack;
font-size: 20px;
line-height: 32px;
background: $background;
2022-07-03 22:01:47 +02:00
color: $text-color;
2022-07-01 19:35:34 +02:00
margin: 0;
padding: 0;
display: flex;
min-height: 100vh;
flex-direction: column;
}
a {
2022-07-14 18:40:38 +02:00
text-decoration: none;
2022-07-01 19:35:34 +02:00
}
2022-07-12 19:52:29 +02:00
2022-07-03 22:42:14 +02:00
.shared-header {
2022-07-12 19:52:29 +02:00
margin-left: 20px;
margin-top: 30px;
margin-bottom: -20px;
strong {
color: $primary-color;
}
2022-07-03 22:42:14 +02:00
}
2022-07-12 19:52:29 +02:00
div.highlight {
2022-08-04 19:10:57 +02:00
background: $code-highlight-background;
2022-07-14 19:05:45 +02:00
padding: 0 10px;
2022-07-12 19:52:29 +02:00
overflow: auto;
display: block;
2022-07-12 22:24:15 +02:00
margin: 20px 0;
2022-07-03 22:42:14 +02:00
}
2022-07-12 19:52:29 +02:00
2022-07-09 08:15:33 +02:00
.box {
padding: 0 20px;
}
2022-07-01 19:35:34 +02:00
code, pre {
2022-07-03 22:01:47 +02:00
color: $secondary-color; // #cb4b16; // #268bd2; // #2aa198;
2022-07-03 22:42:14 +02:00
font-family: monospace;
2022-07-01 19:35:34 +02:00
}
2022-07-14 18:40:38 +02:00
2022-07-03 22:01:47 +02: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;
2022-07-29 21:26:19 +02:00
color: $primary-button-text-color;
2022-07-14 18:40:38 +02:00
padding: 5px 12px;
cursor: pointer;
2022-07-03 22:01:47 +02:00
}
}
2022-07-14 18:40:38 +02:00
2022-07-01 19:35:34 +02:00
header {
2022-07-09 08:15:33 +02:00
padding: 0 20px;
2022-07-01 19:35:34 +02:00
.title {
font-size: 1.3em;
text-decoration: none;
.handle {
font-size: 0.85em;
2022-07-03 22:01:47 +02:00
color: $muted-color;
2022-07-01 19:35:34 +02:00
}
}
.counter {
2022-07-03 22:01:47 +02:00
color: $muted-color;
2022-07-01 19:35:34 +02:00
}
2022-07-29 21:35:02 +02:00
.summary {
a:hover {
text-decoration: underline;
}
}
2022-07-01 19:35:34 +02:00
}
a {
2022-07-03 22:01:47 +02:00
color: $primary-color;
&:hover {
color: $secondary-color;
}
2022-06-22 20:11:22 +02:00
}
#main {
flex: 1;
}
main {
2022-07-01 19:35:34 +02:00
width: 100%;
2022-07-09 08:15:33 +02:00
max-width: 1000px;
2022-07-01 19:35:34 +02:00
margin: 30px auto;
2022-06-22 20:11:22 +02:00
}
footer {
2022-07-01 19:35:34 +02:00
width: 100%;
2022-07-29 21:01:45 +02:00
max-width: 1000px;
2022-06-22 20:11:22 +02:00
margin: 20px auto;
2022-07-03 22:01:47 +02:00
color: $muted-color;
2022-07-01 19:35:34 +02:00
}
.actor-box {
display: flex;
column-gap: 20px;
2022-07-09 08:15:33 +02:00
margin:10px 0;
2022-07-01 19:35:34 +02:00
.icon-box {
flex: 0 0 50px;
}
.actor-handle {
font-size: 0.85em;
line-height: 1em;
2022-07-03 22:01:47 +02:00
color: $muted-color;
2022-07-01 19:35:34 +02:00
}
.actor-icon {
max-width: 50px;
}
2022-06-22 20:11:22 +02:00
}
2022-07-25 22:51:53 +02:00
#articles {
list-style-type: none;
margin: 30px 0;
padding: 0 20px;
li {
display: block;
}
}
2022-06-22 20:11:22 +02:00
#notifications, #followers, #following {
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
2022-07-05 08:14:50 +02:00
display: block;
2022-06-22 20:11:22 +02:00
}
}
2022-07-15 20:01:55 +02:00
@mixin admin-button() {
font-size: 20px;
line-height: 32px;
font-family: $font-stack;
background: $form-background-color;
color: $form-text-color;
border: 1px solid $background;
padding: 8px 10px 5px 10px;
cursor: pointer;
&:hover {
border: 1px solid $form-text-color;
}
}
.show-sensitive-btn, .show-more-btn {
@include admin-button;
margin: 20px 0;
}
2022-07-03 22:42:14 +02:00
nav {
2022-07-14 18:40:38 +02:00
form {
margin: 15px 0;
}
input[type=submit], button {
2022-07-15 20:01:55 +02:00
@include admin-button;
2022-07-14 18:40:38 +02:00
}
2022-07-03 22:42:14 +02:00
}
2022-06-22 20:11:22 +02:00
nav.flexbox {
ul {
display: flex;
2022-07-01 19:35:34 +02:00
flex-wrap: wrap;
2022-06-22 20:11:22 +02: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 19:35:34 +02:00
a {
2022-07-14 18:40:38 +02:00
color: $primary-color;
2022-07-01 19:35:34 +02:00
text-decoration: none;
2022-07-14 18:40:38 +02:00
&:hover, &:active {
color: $secondary-color;
text-decoration: underline;
}
2022-07-01 19:35:34 +02:00
}
2022-06-22 20:11:22 +02:00
a.active {
2022-07-04 21:13:04 +02:00
color: $secondary-color;
2022-06-22 20:11:22 +02:00
font-weight: bold;
}
}
2022-07-09 08:15:33 +02:00
.ap-object {
margin: 15px 0;
padding: 20px;
.in-reply-to {
color: $muted-color;
&:hover {
color: $secondary-color;
2022-07-14 18:40:38 +02:00
text-decoration: underline;
2022-07-09 08:15:33 +02:00
}
}
nav {
color: $muted-color;
}
2022-07-14 18:40:38 +02:00
.e-content, .activity-og-meta {
a:hover {
text-decoration: underline;
2022-07-09 08:15:33 +02:00
}
}
.activity-attachment {
img, audio, video {
width: 100%;
max-width: 740px;
margin: 30px 0;
}
2022-07-07 20:37:16 +02:00
}
2022-07-14 15:16:58 +02:00
img.inline-img {
2022-07-14 15:33:40 +02:00
display: block;
2022-07-14 15:16:58 +02:00
max-width: 740px;
}
2022-07-07 20:37:16 +02:00
}
2022-07-09 08:15:33 +02:00
.ap-object-expanded {
border: 2px dashed $secondary-color;
}
2022-06-22 20:11:22 +02:00
2022-07-26 18:51:20 +02:00
.error-box {
color: $secondary-color;
}
2022-06-25 10:20:07 +02:00
.actor-action {
margin-top:20px;
2022-07-09 08:15:33 +02:00
margin-bottom:-20px;
padding: 0 20px;
2022-06-25 10:20:07 +02:00
span {
2022-07-03 22:01:47 +02:00
color: $muted-color;
2022-06-25 10:20:07 +02:00
}
}
2022-07-03 22:01:47 +02:00
.actor-metadata {
color: $muted-color;
}
2022-06-27 20:55:44 +02:00
.emoji, .custom-emoji {
max-width: 25px;
}