homepage: good enough for preview release

This commit is contained in:
Darks 2023-07-04 21:30:16 +02:00 committed by Eragon
parent 14f7dbc34f
commit 5b1ebfbf7d
Signed by: Eragon
GPG Key ID: 087126EBFC725006
3 changed files with 97 additions and 602 deletions

View File

@ -1,24 +1,42 @@
.home-pinned-content {
width: 90%;
display: grid;
grid-template-areas: 'banner news''welcome news''shout news''projects projects';
grid-template-rows: auto auto minmax(200px,1fr)auto;
grid-template-columns: 4fr 3fr;
}
.home-pinned-content > * {
margin: 10px;
margin: 10px 20px;
}
.home-pinned-content > * h1 {
font-size: 18px;
}
@media screen and (max-width:1449px) {
.home-pinned-content {
width: 97%;
}
}
@media screen and (max-width:1199px) {
.home-pinned-content {
width: 100%;
grid-template-areas: 'welcome''banner''news''shout''projects';
grid-template-rows: auto;
grid-template-columns: 1fr;
}
}
.home-banner {
grid-area: banner;
text-align: center;
}
.home-banner img {
max-width: 100%;
}
.home-welcome {
grid-area: welcome;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.home-welcome h1 {
width: 100%;
@ -27,6 +45,12 @@
.home-welcome ul {
padding-left: 20px;
}
.home-welcome div {
flex-grow: 1;
}
.home-welcome h2 {
margin: 5px 0;
}
.home-news {
grid-area: news;
}
@ -38,164 +62,39 @@
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
padding: 10px 0;
border-bottom: var(--hr-border);
}
.home-news li > a {
align-self: baseline;
}
.home-news li img {
max-width: 100px;
max-height: 100px;
margin-right: 8px;
}
.home-news li h3 {
margin: 0;
font-size: 16px;
font-weight: bold;
font-family: Cantarell;
}
.home-news li .date {
margin: 4px 0 10px 0;
}
.home-news li div {
font-size: 13px;
line-height: 150%;
}
@media screen and (max-width:499px) {
.home-news li {
flex-direction: column;
align-items: start;
}
}
.home-shoutbox {
grid-area: shout;
}
.home-projects {
grid-area: projects;
}
#v5shoutbox {
--shoutbox-color: #333333;
--shoutbox-border-color: rgba(0,0,0,.15);
--shoutbox-header-bg: #ececec;
--shoutbox-link-color: #ce1919;
--shoutbox-tab-activity-color: #ce1919;
--shoutbox-tab-current-color: #097ba1;
--shoutbox-message-date-color: #949494;
--shoutbox-message-author-color: #777777;
}
#v5shoutbox {
max-height: 300px;
overflow-y: scroll;
display: flex;
flex-flow: column;
font-size: 12px;
color: var(--shoutbox-color);
}
#v5shoutbox header {
height: 32px;
display: flex;
align-items: center;
background: var(--shoutbox-header-bg);
border: 1px solid var(--shoutbox-border-color);
gap: 4px;
padding: 0 4px;
}
#v5shoutbox header .grow {
flex-grow: 1;
}
#v5shoutbox a {
color: var(--shoutbox-link-color);
}
#v5shoutbox a:active,
#v5shoutbox a:hover,
#v5shoutbox a:focus {
color: var(--shoutbox-link-color);
text-decoration: underline;
outline: 0;
}
#v5shoutbox pre {
overflow: auto;
word-wrap: normal;
word-break: break-word;
white-space: pre-wrap;
margin: 0;
padding: 4px;
}
#v5shoutbox .channel-buttons button {
border: 1px solid var(--shoutbox-border-color);
border-radius: 3px;
padding: 3px 6px;
}
#v5shoutbox .channel-buttons button:nth-child(1) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0;
}
#v5shoutbox .channel-buttons button:nth-child(2) {
border-radius: 0;
border-right: 0;
}
#v5shoutbox .channel-buttons button:nth-child(3) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
#v5shoutbox .channel-buttons .bg-activity {
color: var(--shoutbox-tab-activity-color);
}
#v5shoutbox .channel-buttons .current {
color: var(--shoutbox-tab-current-color);
}
#v5shoutbox .channels {
flex: 1;
overflow: auto;
}
#v5shoutbox .channels div[data-channel="\\login"] {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
#v5shoutbox .channels .login-form {
height: 30%;
width: 40%;
border: 1px solid var(--shoutbox-border-color);
padding: 0 2%;
display: flex;
flex-flow: column;
justify-content: space-evenly;
}
#v5shoutbox .channel {
overflow-x: auto;
overflow-y: scroll;
height: 100%;
display: flex;
flex-direction: column-reverse;
}
#v5shoutbox .message {
line-height: 1.5;
display: flex;
border-top: 1px solid var(--shoutbox-border-color);
}
#v5shoutbox .message .message-author {
margin-right: 6px;
font-size: 0.9em;
color: var(--shoutbox-message-author-color);
min-width: 70px;
text-align: right;
flex-shrink: 0;
}
#v5shoutbox .message .message-content {
flex-grow: 1;
margin: 0;
word-wrap: normal;
word-break: break-word;
white-space: pre-wrap;
}
#v5shoutbox .message .message-date {
color: var(--shoutbox-message-date-color);
margin-left: 5px;
font-size: 0.8em;
order: 3;
flex-shrink: 0;
}
#v5shoutbox .shoutbox-form {
height: 2.4em;
}
#v5shoutbox .shoutbox-form input[type=text] {
width: 95%;
border: 1px solid var(--shoutbox-border-color);
border-left: 0;
border-right: 0;
border-radius: 0;
}
#v5shoutbox .shoutbox-form button[type=submit] {
width: 5%;
border: 1px solid var(--shoutbox-border-color);
border-radius: 0;
}

View File

@ -1,17 +1,35 @@
@import "vars";
.home-pinned-content {
width: 90%;
display: grid;
grid-template-areas:
'banner news'
'welcome news'
'shout news'
'projects projects';
grid-template-rows: auto auto minmax(200px, 1fr) auto;
grid-template-columns: 4fr 3fr;
@media screen and (max-width: @normal) {
width: 97%;
}
@media screen and (max-width: @small) {
width: 100%;
grid-template-areas:
'welcome'
'banner'
'news'
'shout'
'projects';
grid-template-rows: auto;
grid-template-columns: 1fr;
}
& > * {
//border: 1px solid red;
margin: 10px;
margin: 10px 20px;
h1 {
font-size: 18px;
@ -22,6 +40,10 @@
.home-banner {
grid-area: banner;
text-align: center;
img {
max-width: 100%;
}
}
.home-welcome {
@ -31,6 +53,8 @@
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
h1 {
width: 100%;
margin-bottom: 0;
@ -39,6 +63,14 @@
ul {
padding-left: 20px;
}
div {
flex-grow: 1;
}
h2 {
margin: 5px 0;
}
}
.home-news {
@ -53,9 +85,19 @@
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
padding: 10px 0;
border-bottom: var(--hr-border);
@media screen and (max-width: @micro) {
flex-direction: column;
align-items: start;
}
& > a {
align-self: baseline;
}
img {
max-width: 100px;
max-height: 100px;
@ -63,13 +105,19 @@
}
h3 {
margin: 0;
font-size: 16px;
font-weight: bold;
font-family: Cantarell;
}
.date {
margin: 4px 0 10px 0;
}
div {
font-size: 13px;
line-height: 150%;
}
}
}
@ -81,170 +129,3 @@
.home-projects {
grid-area: projects;
}
/* Standalone page's configuration */
#v5shoutbox {
--shoutbox-color: #333333;
--shoutbox-border-color: rgba(0, 0, 0, .15);
--shoutbox-header-bg: #ececec;
--shoutbox-link-color: #ce1919;
--shoutbox-tab-activity-color: #ce1919;
--shoutbox-tab-current-color: #097ba1;
--shoutbox-message-date-color: #949494;
--shoutbox-message-author-color: #777777;
}
/* Shoutbox-only style */
#v5shoutbox {
max-height: 300px;
overflow-y: scroll;
display: flex;
flex-flow: column;
font-size: 12px;
color: var(--shoutbox-color);
}
#v5shoutbox header {
height: 32px;
display: flex;
align-items: center;
background: var(--shoutbox-header-bg);
border: 1px solid var(--shoutbox-border-color);
gap: 4px;
padding: 0 4px;
}
#v5shoutbox header .grow {
flex-grow: 1;
}
#v5shoutbox a {
color: var(--shoutbox-link-color);
}
#v5shoutbox a:active, #v5shoutbox a:hover, #v5shoutbox a:focus {
color: var(--shoutbox-link-color);
text-decoration: underline;
outline: 0;
}
#v5shoutbox pre {
overflow: auto;
word-wrap: normal;
word-break: break-word;
white-space: pre-wrap;
margin: 0;
padding: 4px;
}
#v5shoutbox .channel-buttons button {
border: 1px solid var(--shoutbox-border-color);
border-radius: 3px;
padding: 3px 6px;
}
#v5shoutbox .channel-buttons button:nth-child(1) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0;
}
#v5shoutbox .channel-buttons button:nth-child(2) {
border-radius: 0;
border-right: 0;
}
#v5shoutbox .channel-buttons button:nth-child(3) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
#v5shoutbox .channel-buttons .bg-activity {
color: var(--shoutbox-tab-activity-color);
}
#v5shoutbox .channel-buttons .current {
color: var(--shoutbox-tab-current-color);
}
#v5shoutbox .channels {
flex: 1;
overflow: auto;
}
#v5shoutbox .channels div[data-channel="\\login"] {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
#v5shoutbox .channels .login-form {
height: 30%;
width: 40%;
border: 1px solid var(--shoutbox-border-color);
padding: 0 2%;
display: flex;
flex-flow: column;
justify-content: space-evenly;
}
#v5shoutbox .channel {
overflow-x: auto;
overflow-y: scroll;
height: 100%;
display: flex;
flex-direction: column-reverse;
}
#v5shoutbox .message {
line-height: 1.5;
display: flex;
border-top: 1px solid var(--shoutbox-border-color);
}
#v5shoutbox .message .message-author {
margin-right: 6px;
font-size: 0.9em;
color: var(--shoutbox-message-author-color);
min-width: 70px;
text-align: right;
flex-shrink: 0;
}
#v5shoutbox .message .message-content {
flex-grow: 1;
margin: 0;
word-wrap: normal;
word-break: break-word;
white-space: pre-wrap;
}
#v5shoutbox .message .message-date {
color: var(--shoutbox-message-date-color);
margin-left: 5px;
font-size: 0.8em;
order: 3;
flex-shrink: 0;
}
#v5shoutbox .shoutbox-form {
height: 2.4em;
}
#v5shoutbox .shoutbox-form input[type=text] {
width: 95%;
border: 1px solid var(--shoutbox-border-color);
border-left: 0;
border-right: 0;
border-radius: 0;
}
#v5shoutbox .shoutbox-form button[type=submit] {
width: 5%;
border: 1px solid var(--shoutbox-border-color);
border-radius: 0;
}

File diff suppressed because one or more lines are too long