forked from devs/PCv5
homepage: still WIP, but better
This commit is contained in:
parent
43381bf493
commit
f6aefffc3c
|
@ -163,6 +163,7 @@ input[type="submit"]:focus {
|
|||
background: var(--links);
|
||||
color: var(--warn-text);
|
||||
border-radius: 1px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.skip-to-content-link:focus {
|
||||
transform: translateY(0%);
|
||||
|
|
|
@ -1,26 +1,201 @@
|
|||
.home-pinned-content {
|
||||
display: grid;
|
||||
grid-template-areas: 'banner news''welcome news''shout news''projects projects';
|
||||
grid-template-rows: minmax(100px,auto)repeat(minmax(200px,auto),2)minmax(100px,auto);
|
||||
gap: 10px;
|
||||
grid-template-rows: auto auto minmax(200px,1fr)auto;
|
||||
grid-template-columns: 4fr 3fr;
|
||||
}
|
||||
.home-pinned-content > * {
|
||||
border: 1px solid red;
|
||||
margin: 10px;
|
||||
}
|
||||
.home-pinned-content > * h1 {
|
||||
font-size: 18px;
|
||||
}
|
||||
.home-banner {
|
||||
grid-area: banner;
|
||||
text-align: center;
|
||||
}
|
||||
.home-welcome {
|
||||
grid-area: welcome;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.home-welcome h1 {
|
||||
width: 100%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.home-welcome ul {
|
||||
padding-left: 20px;
|
||||
}
|
||||
.home-news {
|
||||
grid-area: news;
|
||||
}
|
||||
.home-news ul {
|
||||
padding: 0;
|
||||
}
|
||||
.home-news li {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
border-bottom: var(--hr-border);
|
||||
}
|
||||
.home-news li img {
|
||||
max-width: 100px;
|
||||
max-height: 100px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.home-news li h3 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
font-family: Cantarell;
|
||||
}
|
||||
.home-news li div {
|
||||
font-size: 13px;
|
||||
}
|
||||
.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;
|
||||
}
|
|
@ -161,6 +161,7 @@ button, .button, input[type="button"], input[type="submit"] {
|
|||
background: var(--links);
|
||||
color: var(--warn-text);
|
||||
border-radius: 1px;
|
||||
overflow: hidden;
|
||||
|
||||
&:focus {
|
||||
transform: translateY(0%);
|
||||
|
|
|
@ -6,17 +6,22 @@
|
|||
'shout news'
|
||||
'projects projects';
|
||||
|
||||
grid-template-rows: minmax(100px, auto) repeat(minmax(200px, auto), 2) minmax(100px, auto);
|
||||
|
||||
gap: 10px;
|
||||
grid-template-rows: auto auto minmax(200px, 1fr) auto;
|
||||
grid-template-columns: 4fr 3fr;
|
||||
|
||||
& > * {
|
||||
border: 1px solid red;
|
||||
//border: 1px solid red;
|
||||
margin: 10px;
|
||||
|
||||
h1 {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.home-banner {
|
||||
grid-area: banner;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.home-welcome {
|
||||
|
@ -24,10 +29,49 @@
|
|||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
|
||||
h1 {
|
||||
width: 100%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.home-news {
|
||||
grid-area: news;
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
border-bottom: var(--hr-border);
|
||||
|
||||
img {
|
||||
max-width: 100px;
|
||||
max-height: 100px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
font-family: Cantarell;
|
||||
}
|
||||
|
||||
div {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.home-shoutbox {
|
||||
|
@ -37,3 +81,170 @@
|
|||
.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;
|
||||
}
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
{% include "base/flash.html" %}
|
||||
|
||||
<div id="main-content"></div>
|
||||
{% block content %}
|
||||
<div id="main-content"></div>
|
||||
{% endblock %}
|
||||
|
||||
{% include "base/footer.html" %}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue