Skip to content

Commit

Permalink
i wish that you would stay in my memories
Browse files Browse the repository at this point in the history
  • Loading branch information
petracoding committed Aug 20, 2024
1 parent f42c297 commit a88e765
Show file tree
Hide file tree
Showing 117 changed files with 3,594 additions and 1,626 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/public/old
/public/templates
/public/blog/_template.html
/public/coding/layout-generator.html
/public/coding/webpack-tutorial.html
/public/layout-generator/test

Expand Down
207 changes: 207 additions & 0 deletions css/layout/comment-widget.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
/*
Below you will be able to freely customize every aspect of the comment widget.
Most aspects of the widget are 100% able to be customized in CSS, but for strong structural changes,
you may have to edit the JavaScript file.
These are all the classes and IDs at your disposal!
Classes have a c- at the start and IDs have a c_
You don't need every single one for a good theme, but I tried to give as many options as possible!
*/
/*
Containers:
#c_widget - The container <div> for the entire widget
#c_inputArea - The wrapper <div> around the form
#c_container - The wrapper <div> around all the comments
The input form:
#c_form - The whole input <form>
#c_widgetTitle - The <h2> title at the top of the form
.c-inputWrapper- All <div> wrappers for each label/input pair
.c-label - All <label>s
.c-input - All <input>s
#c_nameWrapper - The wrapper <div> for the name field
.c-nameLabel - The <label> for the name field
.c-nameInput - The <input> for the name field
#c_websiteWrapper - The wrapper <div> for the website field
.c-websiteLabel - The <label> for the website field
.c-websiteInput - The <input> for the website field
#c_textWrapper - The wrapper <div> for the text field
.c-textLabel - The <label> for the text field
.c-textInput - The <input> for the text field
#c_submitButton - The submit button (It's an <input> element with a type of "submit")
#c_replyingText - The text <span> that displays when a user is replying to a comment
The comment section:
.c-comment - All comment <div>s
.c-reply - All reply <div>s (contained within parent comment <div>s)
.c-name - The name of the person submitting the comment/reply (an <h3> element)
.c-timestamp - The timestamp of when the comment/reply was made (a <span> element)
.c-site - The website linked at the top of the comment/reply (an <a> element)
.c-text - The actual text body of the comment/reply (a <p> element)
.c-replyButton - All reply <button>s
.c-expandButton - The <button>s to reveal/hide replies (These only show if s_collapsedReplies is set to true in the JS)
#c_pagination - The <div> wrapper for the pagination at the bottom (Only shows if there's more than one page)
.c-paginationButton - Both left and right directional <button>s
#c_leftButton - The left <button>
#c_rightButton - The right <button>
*/

/* Main */
#c_widget {
box-sizing: border-box;
height: 100%;
padding: 15px 0;
overflow: auto;
// background-image: url("bow-bg.gif"); /* F2U background provided by https://sadgrl.online/webmastery/downloads/tiledbgs */
// background-attachment: fixed;
// font-family: "Trebuchet MS";
// font-size: 14px;
// color: #211f24;
}

#c_widget button,
#c_widget input[type="submit"] {
padding: 4px;
text-decoration: none;
text-transform: lowercase;
text-align: center;
background-color: var(--asideBackgroundColor);
color: var(--textColor);
border: 1px solid currentColor;
border-radius: 5px;
}
#c_widget button:hover,
#c_widget input[type="submit"]:hover {
background-color: var(--asideBackgroundColor);
color: var(--linkColorHover);
border: 1px solid currentColor;
}
#c_widget button:disabled,
#c_widget input[type="submit"]:disabled {
opacity: 60%;
}
#c_widget button:disabled:hover,
#c_widget input[type="submit"]:disabled:hover {
background-color: white;
color: var(--textColor);
border: 1px solid currentColor;
}

/* Input section */
#c_inputDiv {
padding: 10px;
text-transform: lowercase;
background-color: var(--asideBackgroundColor);
border: 1px dashed currentColor;
border-radius: 5px;
}
#c_container {
margin-top: 10px;
}

#c_widgetTitle {
margin: 0;
padding: 0;
font-size: 1.5em;
font-weight: bold;
}

.c-inputWrapper {
display: block;
margin-top: 5px;
margin-bottom: 5px;
}
.c-input {
padding: 4px;
color: #5e2c49;
border-radius: 4px;
border: 1px solid currentColor;
background: var(--mainBackgroundColor);
outline: none;
}
.c-input:focus {
border: 1px solid currentColor;
}

.c-textInput {
width: calc(100% - 10px);
max-width: 900px;
resize: none;
}
#c_submitButton {
display: block;
cursor: $cursorPointer;
font-family: $font;
font-size: 1.5em;
}
#c_replyingText {
color: #5e2c49;
}

/* Comment section */
.c-comment {
margin-top: 10px;
margin-bottom: 10px;
padding: 10px;
background-color: var(--asideBackgroundColor);
border: 1px dashed currentColor;
border-radius: 4px;
}
.c-reply {
margin-top: 10px;
margin-bottom: 10px;
padding: 10px;
background-color: var(--asideBackgroundColor);
border: 1px dashed currentColor;
border-radius: 4px;
}
.c-reply:last-child {
margin-bottom: 0;
}

.c-name {
display: inline-block;
margin: 0;
margin-right: 10px;
padding: 0;
font-size: 1.2em;
}
.c-site {
text-transform: lowercase;
color: var(--linkColor);
}
.c-site:hover {
color: var(--linkColorHover);
}
.c-timestamp {
float: right;
opacity: 60%;
}
.c-text {
margin: 0;
margin-top: 10px;
padding: 0;
text-align: justify;
}

/* Pagination */
#c_pagination {
text-align: center;
}
.c-replyButton {
margin-top: 10px;
}
.c-expandButton {
float: right;
margin-top: 10px;
}
.c-paginationButton {
margin-right: 4px;
margin-left: 4px;
}
7 changes: 6 additions & 1 deletion css/layout/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ main {

strong {
font-family: $font2, $font, sans-serif;
font-size: 0.8em;
font-size: 0.9em;
color: darken($textColor, 5%);
}

Expand Down Expand Up @@ -412,6 +412,11 @@ img[src*="inline/"]:not([class]) {
.image {
width: 25%;
}

&.multi-line-gallery--big .image {
width: 50%;
border: none;
}
}
}

Expand Down
1 change: 1 addition & 0 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import "./layout/layout";
@import "./layout/sidebars";
@import "./layout/content";
@import "./layout/comment-widget";

@import "./pages/about-me";
@import "./pages/bookmarks";
Expand Down
44 changes: 5 additions & 39 deletions css/pages/about-me.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,25 +181,19 @@
}

.about-me-page__images {
position: absolute;
top: 1em;
right: 1em;
display: flex;
width: 200px;
height: 200px;
border-radius: 30px;
overflow-x: scroll;
padding-bottom: 10px;
z-index: 1;
justify-content: center;
flex-wrap: wrap;

.image {
position: relative;
width: 100%;
width: 200px;
height: auto;
flex-shrink: 0;
border-radius: 40%;
border-radius: 10%;
overflow: hidden;
margin-right: 10px;
margin-bottom: 10px;

&:last-child {
margin-right: 0;
Expand All @@ -224,34 +218,6 @@
pointer-events: none;
}
}

@media (max-width: 1100px) {
width: 150px;
height: 150px;
}

@media (max-width: 850px) {
position: static;
width: 100%;
height: auto;
overflow: initial;
margin-top: 40px;

.image {
width: calc(20% - 8px);
}
}
}

.about-me-page__images-text {
position: absolute;
left: 0;
bottom: 0;
font-size: 70px;
z-index: 1;
text-align: center;
width: 100%;
text-shadow: 0px 0px 5px white;
}

.about-me-page__facts {
Expand Down
24 changes: 18 additions & 6 deletions css/pages/blog.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
#blog {
margin-top: 1em;
padding: 1em;

.blog-article {
border-bottom: 1px dotted;
}
}

.blog-article {
margin-bottom: 1.5em;
padding-bottom: 0;
border-bottom: 1px dotted;
padding: 1em 0;
margin-bottom: 0.5em;

&:first-child {
margin-top: 0;
padding-top: 0;
}

&:last-child {
border-bottom: 0;
Expand Down Expand Up @@ -40,8 +53,7 @@

.blog-article__info {
display: flex;
font-family: $font2;
font-size: 0.8em;
margin-top: 0.25em;
}

.blog-article__date {
Expand All @@ -50,7 +62,7 @@

.blog-article__tags {
&::before {
content: "";
content: "";
display: inline-block;
margin: 0 0.5em;
}
Expand Down
Loading

0 comments on commit a88e765

Please sign in to comment.