relay/scss/index.scss

241 lines
3.6 KiB
SCSS
Raw Normal View History

2020-03-20 18:40:18 +00:00
body {
2020-03-26 04:31:49 +00:00
background-color: #333;
color: #f5f5f5;
2020-03-20 18:40:18 +00:00
font-family: sans-serif;
margin: 0;
position: relative;
min-height: 100vh;
padding-bottom: 96px;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
2020-03-20 18:40:18 +00:00
body,
body * {
box-sizing: border-box;
}
header {
.header-text {
max-width: 700px;
margin: auto;
padding: 24px 0;
}
2020-03-20 18:40:18 +00:00
h1 {
margin: 0px;
2020-03-26 04:11:08 +00:00
.smaller {
font-size: 14px;
font-weight: 400;
}
2020-03-20 18:40:18 +00:00
}
p {
margin: 0;
margin-top: 8px;
font-style: italic;
}
2020-03-20 18:40:18 +00:00
}
section {
background-color: #fff;
2020-03-26 04:31:49 +00:00
color: #333;
2020-03-20 18:40:18 +00:00
border: 1px solid #e5e5e5;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
2020-03-20 18:40:18 +00:00
border-radius: 3px;
margin: 32px auto 0;
max-width: 700px;
padding-bottom: 32px;
> p:first-child {
margin-top: 0;
}
2020-03-20 18:40:18 +00:00
h3 {
padding: 24px;
margin: 0px;
2020-03-26 04:11:08 +00:00
border-bottom: 1px solid #e5e5e5;
}
.info {
2020-03-26 04:31:49 +00:00
padding-bottom: 36px;
}
li {
2020-03-26 04:31:49 +00:00
padding-top: 36px;
2020-03-26 19:19:23 +00:00
border-bottom: 1px solid #e5e5e5;
}
.padded {
padding: 0 24px;
}
.joining {
padding: 24px;
2020-03-20 18:40:18 +00:00
}
2020-03-26 04:31:49 +00:00
a {
&,
&:focus,
&:active {
color: #c92a60;
}
2020-03-26 19:19:23 +00:00
&:hover {
color: #9d2a60;
}
2020-03-26 04:31:49 +00:00
}
2020-03-20 18:40:18 +00:00
}
pre {
border: 1px solid #e5e5e5;
border-radius: 3px;
background-color: #f5f5f5;
padding: 8px;
padding-left: 32px;
padding-top: 10px;
position: relative;
&:before {
content: ' ';
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 24px;
background-color: #e5e5e5;
}
}
a {
&,
&:focus,
&:active {
2020-03-26 04:31:49 +00:00
color: #f9a6c2;
}
2020-03-26 19:19:23 +00:00
&:hover {
color: #f2739f;
}
}
2020-03-20 18:40:18 +00:00
footer {
background-color: #333;
color: #f5f5f5;
position: absolute;
padding: 16px 8px;
bottom: 0;
left: 0;
right: 0;
text-align: center;
p {
margin: 0;
}
}
.instance,
.info {
h4 {
font-size: 20px;
margin: 0;
}
.instance-info {
2020-03-26 04:31:49 +00:00
padding: 24px;
padding-bottom: 36px;
2020-03-26 19:19:23 +00:00
border-top: 1px solid #e5e5e5;
background-color: #f5f5f5;
.instance-description {
margin: 0;
margin-bottom: 24px;
2020-03-20 18:40:18 +00:00
}
2020-03-26 19:19:23 +00:00
.instance-admin {
margin: 24px 0;
}
2020-03-20 18:40:18 +00:00
}
a {
text-decoration: none;
}
}
.admin {
margin-top: 32px;
display: flex;
align-items: center;
background-color: #fff;
border: 1px solid #e5e5e5;
border-radius: 3px;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
.display-name {
font-weight: 600;
font-size: 16px;
margin: 0;
}
.username {
font-size: 14px;
color: #777;
2020-03-20 18:40:18 +00:00
margin: 0;
margin-top: 8px;
}
}
.avatar {
width: 80px;
height: 80px;
img {
width: 100%;
border-radius: 40px;
border: 1px solid #333;
background-color: #f5f5f5;
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
}
}
@media(max-width: 700px) {
header .header-text {
padding: 24px;
}
section {
border-left: none;
border-right: none;
2020-03-26 04:31:49 +00:00
border-radius: 0;
2020-03-20 18:40:18 +00:00
}
}
2020-05-21 23:22:39 +00:00
@media(max-width: 500px) {
.avatar {
width: 60px;
height: 60px;
margin: 16px 24px;
img {
border-radius: 30px;
}
}
}
2020-05-21 23:28:54 +00:00
@media(max-width: 400px) {
.avatar {
width: 50px;
height: 50px;
margin: 16px 20px;
img {
border-radius: 25px;
}
}
}