ForumExperiment/css/main.scss

160 lines
3 KiB
SCSS
Raw Permalink Normal View History

2023-04-13 19:21:17 +00:00
@import 'variables';
$asideWidth: 150px;
$mainWidth: 1200px;
$borderSize: 5px;
$totalWidth: $asideWidth+$mainWidth+(4*$borderSize);
body {
margin: 0;
background-color: var(--background-color);
background-image: url("/background.png");
background-repeat: repeat;
background-size: 100px 100px;
font-family: $content-font;
}
div#actionBarRight {
margin-left: auto;
}
* {
box-sizing: border-box;
}
div#actionBar {
margin: 0px;
padding: 0px;
display: flex;
border: 5px ridge var(--fourth-color);
border-bottom: none;
background-color: lightgray;
font-family: sans-serif;
align-items: flex-start;
div {
a {
font-size: large;
text-decoration: none;
color: black;
display: block;
padding-inline: 20px;
padding-block: 8px;
}
&:hover {
background-color: var(--fourth-color);
}
}
}
div#content {
margin-inline: auto;
max-width: $mainWidth;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
header {
user-select: none;
font-weight: 600;
text-align: center;
font-size: 4rem;
background: linear-gradient(red, orange);
background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-text-stroke: 1px red;
margin: 10px;
}
header a:hover {
text-decoration: none;
}
#messageContainer:first-child .messageMeta {
// background: linear-gradient(rgba(255, 0, 0, 1), rgba(255, 166, 0, 1));
padding-block: 10px;
font-size: 15px;
text-decoration: none;
text-decoration-style: none;
}
;
.message {
background-color: var(--tertiary-color);
// padding: 10px;
margin-bottom: 5px;
padding: 0 0 10px 0;
margin-top: 15px;
.messageMeta {
font-family: $clean-font;
user-select: none;
background: rgb(190, 190, 190);
text-decoration: underline;
text-decoration-style: dotted;
font-size: 13px;
padding-block: 5px;
padding-left: 5px;
}
.messageContent {
display: flex;
padding-block: 10px;
.userInfo {
font-family: $clean-font;
display: inline-block;
margin-right: 16px;
max-width: 170px;
font-size: 15px;
border-right: 2px ridge gainsboro;
text-align: center;
#userName {
font-weight: bold;
font-size: 20px;
margin-bottom: 5px;
}
}
.messageBody {
width: 100%;
h3 {
margin-top: 0px;
margin-bottom: 2px;
font-size: 20px;
}
p {
margin: 0px 0px 0px 0px;
word-wrap: break-word;
}
}
}
}
main {
background-color: var(--main-color);
border: 5px ridge var(--border-color);
padding-block: 10px;
padding-inline: 20px;
}