mirror of
https://github.com/tanrax/RSSPAPER.git
synced 2025-11-22 10:37:45 -05:00
2021-07-30
This commit is contained in:
135
docs/static/css/desktop.css
vendored
135
docs/static/css/desktop.css
vendored
@@ -0,0 +1,135 @@
|
||||
/* Desktop */
|
||||
.main {
|
||||
display: grid;
|
||||
grid-gap: 1rem;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
}
|
||||
|
||||
/* First column. */
|
||||
.feed__article:nth-child(3n-2){
|
||||
grid-column: 9 / 13;
|
||||
}
|
||||
|
||||
/* Second column */
|
||||
.feed__article:nth-child(3n+2){
|
||||
grid-column: 1 / 5;
|
||||
}
|
||||
|
||||
/* Third column */
|
||||
.feed__article:nth-child(3n+3) {
|
||||
grid-column: 5 / 9;
|
||||
}
|
||||
|
||||
.article__title {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.article__feed {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.article__date {
|
||||
font-size: .9rem;
|
||||
color: var(--color-gray);
|
||||
}
|
||||
|
||||
.feed__article:nth-child(1) .article__title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(1) .article__feed {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(1) {
|
||||
grid-column: 1 / 9;
|
||||
grid-row: 1 / 4;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) {
|
||||
grid-column: 9 / 13;
|
||||
grid-row: 1 / 2;
|
||||
|
||||
}
|
||||
|
||||
.feed__article:nth-child(3) {
|
||||
grid-column: 9 / 13;
|
||||
grid-row: 2 / 3;
|
||||
|
||||
}
|
||||
|
||||
.feed__article:nth-child(4) {
|
||||
grid-column: 9 / 13;
|
||||
grid-row: 3 / 4;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) .article__header,
|
||||
.feed__article:nth-child(3) .article__header,
|
||||
.feed__article:nth-child(4) .article__header
|
||||
{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-direction: row-reverse;
|
||||
grid-gap: 1rem;
|
||||
}
|
||||
|
||||
.article__header > p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.article__header-img > img {
|
||||
height: var(--height-img);
|
||||
}
|
||||
|
||||
.feed__article:nth-child(1) .article__header-img > img,
|
||||
.feed__article:nth-child(2) .article__header-img > img,
|
||||
.feed__article:nth-child(3) .article__header-img > img,
|
||||
.feed__article:nth-child(4) .article__header-img > img
|
||||
{
|
||||
height: initial;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) .article__titles,
|
||||
.feed__article:nth-child(3) .article__titles,
|
||||
.feed__article:nth-child(4) .article__titles,
|
||||
.feed__article:nth-child(2) .article__header-img,
|
||||
.feed__article:nth-child(3) .article__header-img,
|
||||
.feed__article:nth-child(4) .article__header-img
|
||||
{
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) .article__title,
|
||||
.feed__article:nth-child(3) .article__title,
|
||||
.feed__article:nth-child(4) .article__title
|
||||
{
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) .article__feed,
|
||||
.feed__article:nth-child(3) .article__feed,
|
||||
.feed__article:nth-child(4) .article__feed
|
||||
{
|
||||
font-size: 1rem;
|
||||
}
|
||||
.article__main {
|
||||
position: fixed;
|
||||
left: -100%;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
overflow-y: auto;
|
||||
|
||||
}
|
||||
.feed__article:nth-child(1) .article__header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
.feed__article:nth-child(1) .article__header-img {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.feed__article:first-child img {
|
||||
height: 100%;
|
||||
}
|
||||
4
docs/static/css/main.css
vendored
4
docs/static/css/main.css
vendored
@@ -7,7 +7,7 @@
|
||||
|
||||
@font-face {
|
||||
font-family: Newsreader;
|
||||
src: url("static/fonts/Newsreader-VariableFont_opsz,wght.woff2");
|
||||
src: url("../fonts/Newsreader-VariableFont_opsz,wght.woff2");
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -15,6 +15,8 @@ body {
|
||||
padding: 0;
|
||||
font-family: Newsreader, serif;
|
||||
color: var(--color-black);
|
||||
background-image: url("../img/background.jpg");
|
||||
background-size: 100%;
|
||||
}
|
||||
img {
|
||||
object-fit: cover;
|
||||
|
||||
130
docs/static/css/mobile.css
vendored
130
docs/static/css/mobile.css
vendored
@@ -1,131 +1,7 @@
|
||||
/* Desktop */
|
||||
.main {
|
||||
display: grid;
|
||||
grid-gap: 1rem;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
.title {
|
||||
font-size: 3rem
|
||||
}
|
||||
|
||||
/* First column. */
|
||||
.feed__article:nth-child(3n-2){
|
||||
grid-column: 9 / 13;
|
||||
}
|
||||
|
||||
/* Second column */
|
||||
.feed__article:nth-child(3n+2){
|
||||
grid-column: 1 / 5;
|
||||
}
|
||||
|
||||
/* Third column */
|
||||
.feed__article:nth-child(3n+3) {
|
||||
grid-column: 5 / 9;
|
||||
}
|
||||
|
||||
.article__title {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.article__feed {
|
||||
.subtitle {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.article__date {
|
||||
font-size: .9rem;
|
||||
color: var(--color-gray);
|
||||
}
|
||||
|
||||
.feed__article:nth-child(1) .article__title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(1) .article__feed {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(1) {
|
||||
grid-column: 1 / 9;
|
||||
grid-row: 1 / 4;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) {
|
||||
grid-column: 9 / 13;
|
||||
grid-row: 1 / 2;
|
||||
|
||||
}
|
||||
|
||||
.feed__article:nth-child(3) {
|
||||
grid-column: 9 / 13;
|
||||
grid-row: 2 / 3;
|
||||
|
||||
}
|
||||
|
||||
.feed__article:nth-child(4) {
|
||||
grid-column: 9 / 13;
|
||||
grid-row: 3 / 4;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) .article__header,
|
||||
.feed__article:nth-child(3) .article__header,
|
||||
.feed__article:nth-child(4) .article__header
|
||||
{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-direction: row-reverse;
|
||||
grid-gap: 1rem;
|
||||
}
|
||||
|
||||
.article__header > p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.article__header-img > img {
|
||||
height: var(--height-img);
|
||||
}
|
||||
|
||||
.feed__article:nth-child(1) .article__header-img > img,
|
||||
.feed__article:nth-child(2) .article__header-img > img,
|
||||
.feed__article:nth-child(3) .article__header-img > img,
|
||||
.feed__article:nth-child(4) .article__header-img > img
|
||||
{
|
||||
height: initial;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) .article__titles,
|
||||
.feed__article:nth-child(3) .article__titles,
|
||||
.feed__article:nth-child(4) .article__titles,
|
||||
.feed__article:nth-child(2) .article__header-img,
|
||||
.feed__article:nth-child(3) .article__header-img,
|
||||
.feed__article:nth-child(4) .article__header-img
|
||||
{
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) .article__title,
|
||||
.feed__article:nth-child(3) .article__title,
|
||||
.feed__article:nth-child(4) .article__title
|
||||
{
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.feed__article:nth-child(2) .article__feed,
|
||||
.feed__article:nth-child(3) .article__feed,
|
||||
.feed__article:nth-child(4) .article__feed
|
||||
{
|
||||
font-size: 1rem;
|
||||
}
|
||||
.article__main {
|
||||
position: fixed;
|
||||
left: -100%;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
overflow-y: auto;
|
||||
|
||||
}
|
||||
.feed__article:nth-child(1) .article__header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
.feed__article:nth-child(1) .article__header-img {
|
||||
height: 100%;
|
||||
}
|
||||
BIN
docs/static/img/background.jpg
vendored
Normal file
BIN
docs/static/img/background.jpg
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 265 KiB |
Reference in New Issue
Block a user