Artcile in fullscreen for mobile

This commit is contained in:
kitoy 2026-01-06 03:32:59 +01:00
parent f2fea7a61f
commit 7befe1a430
4 changed files with 234 additions and 229 deletions

View File

@ -1,39 +1,39 @@
/* kitoy <kitoy__at__kitoy.me> */ /* kitoy <kitoy__at__kitoy.me> */
:root :root
{ {
--color-background: #fefefe; --color-background: #fefefe;
--color-title: #010101; --color-title: #010101;
--color-text: #0f0f0f; --color-text: #0f0f0f;
--color-link: #010101; --color-link: #010101;
--font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; --font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
--font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif; --font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif;
} }
html{ html{
height: 100%; height: 100%;
width: 80%; width: 80%;
margin-left: 10%; margin-left: 10%;
} }
body { body {
color: var(--color-text); color: var(--color-text);
background-color: var(--color-background); background-color: var(--color-background);
font-family: var(--font-basic); font-family: var(--font-basic);
font-weight: 400; font-weight: 400;
} }
h1, h2, h3, h4, h5{ h1, h2, h3, h4, h5{
color: var(--color-title); color: var(--color-title);
} }
hr { hr {
color: var(--color-text); color: var(--color-text);
} }
* {-moz-box-sizing: border-box; box-sizing: border-box;} * {-moz-box-sizing: border-box; box-sizing: border-box;}
a { a {
box-shadow: inset 0 0 0 0 var(--color-text); box-shadow: inset 0 0 0 0 var(--color-text);
@ -58,38 +58,38 @@ a {
} }
.date { .date {
margin-bottom: 0; margin-bottom: 0;
} }
.slug { .slug {
//margin-left: 1rem; //margin-left: 1rem;
text-align: left; text-align: left;
margin-bottom: 2rem; margin-bottom: 2rem;
} }
.readmore { .readmore {
text-align: right; text-align: right;
} }
pre { pre {
white-space: pre-wrap; /* css-3 */ white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */ white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */ white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */ word-wrap: break-word; /* Internet Explorer 5.5+ */
} }
ul { ul {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.articles { .articles {
max-width: 80%; max-width: 80%;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -102,15 +102,15 @@ a {
line-height: 1.5; line-height: 1.5;
letter-spacing: 0.1vw; letter-spacing: 0.1vw;
text-align: justify; text-align: justify;
} }
.articles ul { .articles ul {
list-style-type: disc; list-style-type: disc;
margin: 5vw; margin: 5vw;
padding-top: 1vw; padding-top: 1vw;
padding-bottom: 1vw; padding-bottom: 1vw;
padding-left: 1.5vw; padding-left: 1.5vw;
} }
.head-article { .head-article {
@ -143,50 +143,51 @@ a {
} }
.articles .description { .articles .description {
font-weight: 300; font-weight: 300;
font-style: italic; font-style: italic;
font-size: 1.5vw; font-size: 1.5vw;
padding-bottom: 30px; padding-bottom: 30px;
color: ; color: ;
} }
.pagination a { .pagination a {
border: 1px solid; border: 1px solid;
border-color: $color_title; border-color: $color_title;
padding: 3px; padding: 3px;
font-size: 13px; font-size: 13px;
} }
.center { .center {
margin: auto; margin: auto;
width: 50%; width: 50%;
padding: 10px; padding: 10px;
} }
.contact{ .contact{
text-align:center; text-align:center;
} }
footer { footer {
position: relative; position: relative;
bottom:0px; bottom:0px;
width: 100%; width: 100%;
text-align:center; text-align:center;
padding-bottom:1vw; padding-bottom:1vw;
} }
@media only screen and (max-width: 980px) @media only screen and (max-width: 980px)
{ {
.articles .description { .articles .description {
font-size: 4vw; font-size: 4vw;
} }
.articles { .articles {
max-width: 100%;
margin-left: auto; margin-left: auto;
position: relative; position: relative;
font-size: 3.5vw; font-size: 3.5vw;
@ -206,21 +207,21 @@ a {
} }
@media only screen and (max-width: 980px){ @media only screen and (max-width: 980px){
html{ html{
height: 100%; height: 100%;
width: 100%; width: 100%;
margin: 0; margin: 0;
} }
} }
@media only screen and (max-width: 768px) @media only screen and (max-width: 768px)
{ {
.h1 { .h1 {
font-size: 5vw; font-size: 5vw;
} }
@ -233,4 +234,4 @@ a {
align-items:center; align-items:center;
} }
} }

View File

@ -187,6 +187,7 @@ a {
} }
.articles { .articles {
max-width: 100%;
margin-left: auto; margin-left: auto;
position: relative; position: relative;
font-size: 3.5vw; font-size: 3.5vw;

View File

@ -14,7 +14,6 @@
height: 100%; height: 100%;
width: 80%; width: 80%;
margin-left: 10%; margin-left: 10%;
} }
@ -33,29 +32,31 @@
color: var(--color-text); color: var(--color-text);
} }
* {-moz-box-sizing: border-box; box-sizing: border-box;} * {
-moz-box-sizing: border-box; box-sizing: border-box;
}
a { a {
box-shadow: inset 0 0 0 0 var(--color-text); box-shadow: inset 0 0 0 0 var(--color-text);
color: --color-link; color: --color-link;
padding: 0 .25rem; padding: 0 .25rem;
margin: 0 -.25rem; margin: 0 -.25rem;
transition: color .3s ease-in-out, box-shadow .3s ease-in-out; transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
} }
a:hover { a:hover {
color: var(--color-background); color: var(--color-background);
box-shadow: inset 300px 0 0 0 var(--color-text); box-shadow: inset 300px 0 0 0 var(--color-text);
text-decoration: none; text-decoration: none;
} }
a { a {
color: var(--color-link); color: var(--color-link);
text-decoration: underline 2px; text-decoration: underline 2px;
font-weight: 700; font-weight: 700;
line-height: 1.5; line-height: 1.5;
} }
.date { .date {
@ -113,28 +114,28 @@ a {
} }
.head-article { .head-article {
text-align: center; text-align: center;
} }
.text-article p { .text-article p {
padding-left: 2vw; padding-left: 2vw;
padding-right:2vw; padding-right:2vw;
} }
.text-article h2, h3, h4, h5 { .text-article h2, h3, h4, h5 {
padding-left: 1vw; padding-left: 1vw;
padding-right:1vw; padding-right:1vw;
} }
.index { .index {
text-align: left; text-align: left;
} }
.articles img { .articles img {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -187,7 +188,8 @@ a {
} }
.articles { .articles {
margin-left: 0; max-width: 100%;
margin-left: auto;
position: relative; position: relative;
font-size: 3.5vw; font-size: 3.5vw;
@ -211,8 +213,8 @@ a {
@media only screen and (max-width: 980px){ @media only screen and (max-width: 980px){
html
html{ {
height: 100%; height: 100%;
width: 100%; width: 100%;
margin: 0; margin: 0;

View File

@ -187,6 +187,7 @@ a {
} }
.articles { .articles {
max-width: 100%;
margin-left: auto; margin-left: auto;
position: relative; position: relative;
font-size: 3.5vw; font-size: 3.5vw;