Skip to content

Commit

Permalink
Fix pre tag and improve about page
Browse files Browse the repository at this point in the history
  • Loading branch information
skydread1 committed Oct 23, 2023
1 parent 86ac994 commit 2424266
Showing 1 changed file with 42 additions and 32 deletions.
74 changes: 42 additions & 32 deletions resources/public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@
--bg-primary-color: #010c12;
--bg-secondary-color: #212e42;

--text-primary-color: #f3c30e;
--text-secondary-color: #ffffff;
--text-primary-color: #ffffff;
--text-secondary-color: #bdcbe0;

--button-primary-color: black;

--error-primary-color: #f09295;

--border-primary-color: #7c7c7c;

--active-primary-color: #f3c30e;
--border-primary-color: #6f6f6f;
}

:root.light {
Expand All @@ -35,8 +33,6 @@
--error-primary-color: #991b1b;

--border-primary-color: #375271c2;

--active-primary-color: #1f167b;
}

/* General */
Expand All @@ -56,7 +52,7 @@
}

html {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
font-family: Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

body {
Expand Down Expand Up @@ -136,7 +132,8 @@ p {

pre {
overflow-x: scroll;
white-space: pre-wrap;
white-space-collapse: preserve;
text-wrap: nowrap;
font-size: 1rem;
margin: 1rem 0rem;
padding: 1rem;
Expand Down Expand Up @@ -397,10 +394,6 @@ nav a:hover svg {
fill: var(--link-primary-color);
}

.active {
color: var(--active-primary-color);
}

header .nav-btn {
display: block;
background-color: inherit;
Expand Down Expand Up @@ -665,37 +658,34 @@ footer .contact-icons img {
flex-wrap: wrap;
}

.vignette, .post {
.vignette{
flex-basis: 40%;
margin: 1rem;
padding: 1rem;
flex-grow: 1;
text-align: justify;
border-style: solid;
border-width: 1px;
border-color: var(--text-primary-color);

--g: 1px; /* the gap */
--b: 2px; /* border thickness*/
--c: var(--text-primary-color); /* the color */

--_c: var(--text-secondary-color) 0 25%, var(--c) 0 50%;
--_g1: repeating-linear-gradient(90deg ,var(--_c)) repeat-x;
--_g2: repeating-linear-gradient(180deg,var(--_c)) repeat-y;
background:
var(--_g1) var(--_p, 25%) 0 ,var(--_g2) 0 var(--_p,125%),
var(--_g1) var(--_p,125%) 100%,var(--_g2) 100% var(--_p, 25%);
background-size: 200% var(--b),var(--b) 200%;
border-color: var(--border-primary-color);
background-color: var(--bg-primary-color);
transition: .3s;
transition: 0.3s;
}

.vignette:hover, .post:hover {
--_p: 75%;
}
.post {
text-align: justify;
}

.post h1 {
text-transform: uppercase;
}

.vignette:hover {
background-color: var(--bg-secondary-color);
}

@media (max-width: 1024px) {
.vignette, .post {
flex-basis: 100%;
margin: 0;
text-align: left;
background: none;
Expand Down Expand Up @@ -818,4 +808,24 @@ section .socials {
section .socials img {
margin: 1rem;
width: 3rem;
}
}

/* Page: about */

section#about i, section#about em{
color: var(--text-primary-color)
}

section#about h2 {
border-bottom-style: groove;
border-bottom-width: 1px;
border-bottom-color: var(--border-primary-color);
}

section#about a {
text-decoration: underline;
}

section#about li {
padding: 1rem;
}

0 comments on commit 2424266

Please sign in to comment.