diff --git a/src/styles/buttons.scss b/src/styles/buttons.scss index d0847a7..2b746f4 100644 --- a/src/styles/buttons.scss +++ b/src/styles/buttons.scss @@ -29,9 +29,9 @@ a.button.outline { padding: calc(var(--size-theme-font) * 0.5) calc(var(--size-theme-font) * 1.125); } -button.outline :hover, -.button.outline :hover, -a.button.outline :hover { +button.outline:hover, +.button.outline:hover, +a.button.outline:hover { transform: none; box-shadow: none; } @@ -81,4 +81,4 @@ a.read-more:active { padding: 0; max-width: 100%; text-decoration: none; -} \ No newline at end of file +} diff --git a/src/styles/comment.scss b/src/styles/comment.scss index c545b58..bcdf329 100644 --- a/src/styles/comment.scss +++ b/src/styles/comment.scss @@ -14,7 +14,7 @@ comment-widget { --halo-cw-muted-1-color: color-mix(in srgb, var(--color-theme-foreground) 65%, transparent) !important; --halo-cw-muted-2-color: color-mix(in srgb, var(--color-theme-background) 65%, var(--color-theme-accent)) !important; --halo-cw-muted-3-color: color-mix(in srgb, var(--color-theme-background) 95%, var(--color-theme-accent)) !important; - + --halo-cw-emoji-picker-rgb-color: var(--color-theme-background) !important; --halo-cw-emoji-picker-rgb-accent: var(--color-theme-foreground) !important; --halo-cw-emoji-picker-rgb-background: var(--color-theme-background) !important; @@ -33,7 +33,7 @@ comment-widget { --halo-comment-widget-base-info-color: var(--color-theme-foreground) !important; --halo-comment-widget-component-form-input-bg-color: var(--color-theme-background) !important; --halo-comment-widget-component-form-input-color: var(--color-theme-foreground) !important; - --halo-comment-widget-component-form-input-border-color: var(var(--color-theme-foreground) !important) !important; + --halo-comment-widget-component-form-input-border-color: var(--color-theme-foreground) !important; --halo-comment-widget-component-form-input-border-color-focus: var(--color-theme-accent) !important; --halo-comment-widget-component-form-input-box-shadow-focus: var(--color-theme-accent) !important; --halo-comment-widget-component-form-button-login-bg-color: var(--color-theme-background) !important; diff --git a/src/styles/footer.scss b/src/styles/footer.scss index c9014d3..0ee4438 100644 --- a/src/styles/footer.scss +++ b/src/styles/footer.scss @@ -6,98 +6,99 @@ opacity: 0.65; position: relative; margin-top: auto; -} -.footer-inner { - display: flex; - flex-direction: column; - align-items: center; - text-align: center; - padding: calc(var(--size-theme-font) * 1.25); - max-width: calc(var(--size-theme-font) * 75); - margin: 0 auto; - gap: calc(var(--size-theme-font) * 0.75); + &-inner { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + padding: calc(var(--size-theme-font) * 1.25); + max-width: calc(var(--size-theme-font) * 75); + margin: 0 auto; + gap: calc(var(--size-theme-font) * 0.75); - a { - color: inherit; + a { + color: inherit; + } } -} -.footer-copyright-engine { - display: flex; - flex-wrap: wrap; - justify-content: center; - align-items: center; - font-size: calc(var(--size-theme-font) * 0.9); - line-height: 1.5; -} + &-copyright-engine { + display: flex; + flex-wrap: wrap; + justify-content: center; + align-items: center; + font-size: calc(var(--size-theme-font) * 0.9); + line-height: 1.5; -.footer-copyright-engine span, -.footer-copyright-engine a { - white-space: nowrap; -} + span, + a { + white-space: nowrap; + } + } - -.footer-copyright-site { - display: flex; - justify-content: center; - align-items: center; - gap: calc(var(--size-theme-font) * 0.625); - flex-wrap: wrap; - font-size: calc(var(--size-theme-font) * 0.9); - line-height: 1.5; -} - -.footer-user { - display: flex; - align-items: center; - white-space: nowrap; -} - -.footer-icp p { - margin: 0; - display: flex; - align-items: center; - gap: calc(var(--size-theme-font) * 0.625); - flex-wrap: wrap; - justify-content: center; -} - -@media (max-width: 768px) { - .footer-inner { - padding: calc(var(--size-theme-font) * 0.9375) calc(var(--size-theme-font) * 0.625); + &-copyright-site { + display: flex; + justify-content: center; + align-items: center; gap: calc(var(--size-theme-font) * 0.625); + flex-wrap: wrap; + font-size: calc(var(--size-theme-font) * 0.9); + line-height: 1.5; } - .footer-copyright-engine { - font-size: calc(var(--size-theme-font) * 0.8125); - line-height: 1.6; + &-user { + display: flex; + align-items: center; + white-space: nowrap; } - .footer-copyright-site { - flex-direction: column; - gap: calc(var(--size-theme-font) * 0.5); - font-size: calc(var(--size-theme-font) * 0.8125); + &-icp p { + margin: 0; + display: flex; + align-items: center; + gap: calc(var(--size-theme-font) * 0.625); + flex-wrap: wrap; + justify-content: center; } - .footer-icp p { - flex-direction: column; - gap: calc(var(--size-theme-font) * 0.3125); + @media (max-width: 768px) { + &-inner { + padding: calc(var(--size-theme-font) * 0.9375) calc(var(--size-theme-font) * 0.625); + gap: calc(var(--size-theme-font) * 0.625); + } + + &-copyright-engine { + font-size: calc(var(--size-theme-font) * 0.8125); + line-height: 1.6; + } + + &-copyright-site { + flex-direction: column; + gap: calc(var(--size-theme-font) * 0.5); + font-size: calc(var(--size-theme-font) * 0.8125); + } + + &-icp p { + flex-direction: column; + gap: calc(var(--size-theme-font) * 0.3125); + } + } + + @media (max-width: 480px) { + &-inner { + padding: calc(var(--size-theme-font) * 0.75) calc(var(--size-theme-font) * 0.5); + } + + &-copyright-engine, + &-copyright-site { + font-size: calc(var(--size-theme-font) * 0.75); + } + + &-copyright-engine { + span, + a { + white-space: normal; + } + } } } - -@media (max-width: 480px) { - .footer-inner { - padding: calc(var(--size-theme-font) * 0.75) calc(var(--size-theme-font) * 0.5); - } - - .footer-copyright-engine, - .footer-copyright-site { - font-size: calc(var(--size-theme-font) * 0.75); - } - - .footer-copyright-engine span, - .footer-copyright-engine a { - white-space: normal; - } -} \ No newline at end of file diff --git a/src/styles/friends.scss b/src/styles/friends.scss index 6a27707..925d2a2 100644 --- a/src/styles/friends.scss +++ b/src/styles/friends.scss @@ -1,28 +1,30 @@ -.friend-post-list { - padding: 0; -} +.friend { + &-post-list { + padding: 0; + } -.friend-post-title { - margin-bottom: calc(var(--size-theme-font) * .3125); - padding: 0; -} + &-post-title { + margin-bottom: calc(var(--size-theme-font) * 0.3125); + padding: 0; + } -.friend-post-meta { - margin-bottom: calc(var(--size-theme-font) * .3125); - padding: 0; -} + &-post-meta { + margin-bottom: calc(var(--size-theme-font) * 0.3125); + padding: 0; + } -.friend-author { - display: inline-flex; - align-items: center; - gap: calc(var(--size-theme-font) * 0.35); - color: var(--color-theme-meta); - text-decoration: none; -} + &-author { + display: inline-flex; + align-items: center; + gap: calc(var(--size-theme-font) * 0.35); + color: var(--color-theme-meta); + text-decoration: none; + } -.friend-post-desc { - margin: 0; - padding: 0; - color: var(--color-theme-foreground); - font-size: calc(var(--size-theme-font) * 0.875); -} \ No newline at end of file + &-post-desc { + margin: 0; + padding: 0; + color: var(--color-theme-foreground); + font-size: calc(var(--size-theme-font) * 0.875); + } +} diff --git a/src/styles/header.scss b/src/styles/header.scss index 74717b5..81ffd53 100644 --- a/src/styles/header.scss +++ b/src/styles/header.scss @@ -2,39 +2,41 @@ display: flex; flex-direction: column; position: relative; -} -.header__inner { - display: flex; - align-items: center; - justify-content: space-between; + &-inner { + display: flex; + align-items: center; + justify-content: space-between; - #theme-toggle, #search-button, #pixel-toggle { - background-color: transparent; - color: var(--color-theme-header); - border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-header); - margin: 0 0 0 calc(var(--size-theme-font) * 0.5); - padding: 0; + #theme-toggle, + #search-button, + #pixel-toggle { + background-color: transparent; + color: var(--color-theme-header); + border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-header); + margin: 0 0 0 calc(var(--size-theme-font) * 0.5); + padding: 0; + } } -} -.header__logo { - display: flex; - flex: 1; -} + &-logo { + display: flex; + flex: 1; -.header__logo::after { - content: ""; - background: repeating-linear-gradient(90deg, var(--color-theme-header), var(--color-theme-header) var(--width-theme-border), transparent 0, transparent calc(var(--size-theme-font) * 0.625)); - display: block; - width: 100%; - right: calc(var(--size-theme-font) * 0.625); -} + &::after { + content: ""; + background: repeating-linear-gradient(90deg, var(--color-theme-header), var(--color-theme-header) var(--width-theme-border), transparent 0, transparent calc(var(--size-theme-font) * 0.625)); + display: block; + width: 100%; + right: calc(var(--size-theme-font) * 0.625); + } -.header__logo a { - flex: 0 0 auto; - max-width: 100%; - text-decoration: none; + a { + flex: 0 0 auto; + max-width: 100%; + text-decoration: none; + } + } } .logo { @@ -51,4 +53,4 @@ .header { display: none; } -} \ No newline at end of file +} diff --git a/src/styles/links.scss b/src/styles/links.scss index 3688baf..6c5f8e9 100644 --- a/src/styles/links.scss +++ b/src/styles/links.scss @@ -1,119 +1,143 @@ -.link-section { - margin-bottom: calc(var(--size-theme-font) * 3); -} +.link { + &-section { + margin-bottom: calc(var(--size-theme-font) * 3); + } -.link-section-header { - display: flex; - align-items: center; - margin-bottom: calc(var(--size-theme-font) * 1.25); - - h2 { + &-section-header { display: flex; align-items: center; - font-size: calc(var(--size-theme-font) * 0.9); - font-weight: normal; - letter-spacing: 0.15em; - text-transform: uppercase; - line-height: 1; - white-space: nowrap; - margin: 0; + margin-bottom: calc(var(--size-theme-font) * 1.25); - &::before { content: "┌─["; color: var(--color-theme-accent); opacity: 0.4; } - &::after { content: "]"; color: var(--color-theme-accent); opacity: 0.4; } + h2 { + display: flex; + align-items: center; + font-size: calc(var(--size-theme-font) * 0.9); + font-weight: normal; + letter-spacing: 0.15em; + text-transform: uppercase; + line-height: 1; + white-space: nowrap; + margin: 0; - > span { - color: var(--color-theme-accent); - padding: 0.1em 0.45em; - border-top: var(--width-theme-border) var(--style-theme-border) var(--color-theme-accent); - border-bottom: var(--width-theme-border) var(--style-theme-border) var(--color-theme-accent); + &::before { + content: "┌─["; + color: var(--color-theme-accent); + opacity: 0.4; + } + + &::after { + content: "]"; + color: var(--color-theme-accent); + opacity: 0.4; + } + + > span { + color: var(--color-theme-accent); + padding: 0.1em 0.45em; + border-top: var(--width-theme-border) var(--style-theme-border) var(--color-theme-accent); + border-bottom: var(--width-theme-border) var(--style-theme-border) var(--color-theme-accent); + } + } + + &::after { + content: ""; + flex: 1; + height: var(--width-theme-border); + background-color: var(--color-theme-framed); + margin-left: 0.6em; + opacity: 0.5; } } - &::after { - content: ""; - flex: 1; - height: var(--width-theme-border); - background-color: var(--color-theme-framed); - margin-left: 0.6em; - opacity: 0.5; + &-table { + width: 100%; + border-collapse: collapse; + } + + &-item { + display: block; + padding: calc(var(--size-theme-font) * 0.55) calc(var(--size-theme-font) * 0.55); + text-decoration: none; + color: inherit; + } + + &-container { + display: grid; + grid-template-columns: calc(var(--size-theme-font) * 3.5) 1fr; + gap: calc(var(--size-theme-font) * 0.75); + align-items: center; + } + + &-logo-wrap { + width: calc(var(--size-theme-font) * 3.5); + height: calc(var(--size-theme-font) * 3.5); + display: flex; + align-items: center; + justify-content: center; + overflow: hidden; + } + + &-logo { + width: 100%; + height: 100%; + object-fit: cover; + display: block; + } + + &-content { + display: flex; + flex-direction: column; + gap: calc(var(--size-theme-font) * 0.15); + min-width: 0; + } + + &-title { + display: flex; + align-items: baseline; + flex-wrap: wrap; + gap: calc(var(--size-theme-font) * 0.5); + } + + &-name { + color: var(--color-theme-foreground); + + &::before { + content: "> "; + color: var(--color-theme-accent); + opacity: 0.55; + } + } + + &-url { + color: var(--color-theme-meta); + font-size: calc(var(--size-theme-font) * 0.8); + opacity: 0.7; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + &-description { + color: var(--color-theme-foreground); + font-size: calc(var(--size-theme-font) * 0.82); + line-height: var(--height-theme-line); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + opacity: 0.8; + } + + @media (max-width: 600px) { + &-url { + display: none; + } + + &-description { + white-space: normal; + } + + &-container { + grid-template-columns: calc(var(--size-theme-font) * 3) 1fr; + } } } - -.link-table { - width: 100%; - border-collapse: collapse; -} - -.link-item { - display: block; - padding: calc(var(--size-theme-font) * 0.55) calc(var(--size-theme-font) * 0.55); - text-decoration: none; - color: inherit; -} - -.link-container { - display: grid; - grid-template-columns: calc(var(--size-theme-font) * 3.5) 1fr; - gap: calc(var(--size-theme-font) * 0.75); - align-items: center; -} - -.link-logo-wrap { - width: calc(var(--size-theme-font) * 3.5); - height: calc(var(--size-theme-font) * 3.5); - display: flex; - align-items: center; - justify-content: center; - overflow: hidden; -} - -.link-logo { - width: 100%; - height: 100%; - object-fit: cover; - display: block; -} - -.link-content { - display: flex; - flex-direction: column; - gap: calc(var(--size-theme-font) * 0.15); - min-width: 0; -} - -.link-title { - display: flex; - align-items: baseline; - flex-wrap: wrap; - gap: calc(var(--size-theme-font) * 0.5); -} - -.link-name { - color: var(--color-theme-foreground); - &::before { content: "> "; color: var(--color-theme-accent); opacity: 0.55; } -} - -.link-url { - color: var(--color-theme-meta); - font-size: calc(var(--size-theme-font) * 0.8); - opacity: 0.7; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.link-description { - color: var(--color-theme-foreground); - font-size: calc(var(--size-theme-font) * 0.82); - line-height: var(--height-theme-line); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - opacity: 0.8; -} - -@media (max-width: 600px) { - .link-url { display: none; } - .link-description { white-space: normal; } - .link-container { grid-template-columns: calc(var(--size-theme-font) * 3) 1fr; } -} \ No newline at end of file diff --git a/src/styles/menu.scss b/src/styles/menu.scss index da0474f..ec0018e 100644 --- a/src/styles/menu.scss +++ b/src/styles/menu.scss @@ -15,7 +15,7 @@ margin: 0; } - .navigation-menu__inner { + &-inner { display: flex; flex: 1; flex-wrap: wrap; @@ -31,20 +31,13 @@ justify-items: center; padding: 0; - li { + > li { width: 100%; - } - - li:not(:last-of-type) { - margin-bottom: 0; - } - - .navigation-menu__inner li { margin: 0; padding: 0; } - .navigation-menu__inner > li a { + > li a { display: block; text-align: center; white-space: normal; @@ -52,30 +45,29 @@ word-break: break-word; } } - } + > li { + flex: 0 0 auto; + margin-bottom: calc(var(--size-theme-font) * 0.625); + white-space: nowrap; - .navigation-menu__inner > li { - flex: 0 0 auto; - margin-bottom: calc(var(--size-theme-font) * 0.625); - white-space: nowrap; + @media (max-width: $phone-max-width) { + margin: 0; + padding: calc(var(--size-theme-font) * 0.3125); + min-width: 0; + white-space: normal; + } - @media (max-width: $phone-max-width) { - margin: 0; - padding: calc(var(--size-theme-font) * 0.3125); - min-width: 0; - white-space: normal; + &:not(:last-of-type) { + margin-right: calc(var(--size-theme-font) * 1.25); + + @media (max-width: $phone-max-width) { + margin-right: 0; + } + } } } - .navigation-menu__inner > li:not(:last-of-type) { - margin-right: calc(var(--size-theme-font) * 1.25); - - @media (max-width: $phone-max-width) { - margin-right: 0; - } - } - - .navigation-menu .spacer { + .spacer { flex-grow: 1 !important; } @@ -97,7 +89,7 @@ } } - .menu__trigger { + .menu-trigger { all: unset; cursor: pointer; background-color: var(--color-theme-background) !important; @@ -118,7 +110,7 @@ } } - .menu__dropdown { + .menu-dropdown { display: none; flex-direction: column; position: absolute; @@ -137,15 +129,15 @@ } } - .menu__dropdown > li { + .menu-dropdown > li { flex: 0 0 auto; } - .menu__dropdown > li:not(:last-of-type) { + .menu-dropdown > li:not(:last-of-type) { margin-bottom: calc(var(--size-theme-font) * 0.625); } - .menu__dropdown > li a { + .menu-dropdown > li a { display: flex; padding: calc(var(--size-theme-font) * 0.3125); text-decoration: underline; @@ -155,8 +147,8 @@ display: flex; } - .sub-menu:hover .menu__dropdown, - .sub-menu:active .menu__dropdown { + .sub-menu:hover .menu-dropdown, + .sub-menu:active .menu-dropdown { display: flex !important; opacity: 1; visibility: visible; diff --git a/src/styles/moment.scss b/src/styles/moment.scss index d18c2d6..9485b63 100644 --- a/src/styles/moment.scss +++ b/src/styles/moment.scss @@ -3,14 +3,14 @@ gap: calc(var(--size-theme-font) * 0.5); margin: var(--size-theme-font) 0; width: 80%; -} -.moment-media video { - width: 100%; - height: calc(var(--size-theme-font) * 12.5); - object-fit: cover; - border-radius: var(--size-theme-font); - transition: transform 0.3s ease; + video { + width: 100%; + height: calc(var(--size-theme-font) * 12.5); + object-fit: cover; + border-radius: var(--size-theme-font); + transition: transform 0.3s ease; + } } .moment-footer { @@ -36,7 +36,6 @@ &.active { color: var(--color-theme-accent); } - } .moment-comment-section { diff --git a/src/styles/pagination.scss b/src/styles/pagination.scss index e295a39..c0c8b5c 100644 --- a/src/styles/pagination.scss +++ b/src/styles/pagination.scss @@ -3,40 +3,40 @@ .pagination { margin-top: calc(var(--size-theme-font) * 0.625); - .pagination__title { + &-title { display: flex; - text-align: center; position: relative; - margin: calc(var(--size-theme-font) * 0.625) 0 calc(var(--size-theme-font) * 0.625); - } - - .pagination__title-h { text-align: center; - margin: 0 auto; - padding: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.625); - background: var(--color-theme-background); - color: color-mix(in srgb, var(--color-theme-foreground) 65%, transparent); - font-size: calc(var(--size-theme-font) * 0.8); - text-decoration: none; - letter-spacing: 0.1em; - z-index: 1; + margin: calc(var(--size-theme-font) * 0.625) 0; + + hr { + position: absolute; + background-color: color-mix(in srgb, var(--color-theme-foreground) 65%, transparent); + left: 0; + right: 0; + width: 100%; + margin-top: calc(var(--size-theme-font) * 0.9375); + z-index: 0; + } + + &-h { + text-align: center; + margin: 0 auto; + padding: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.625); + background: var(--color-theme-background); + color: color-mix(in srgb, var(--color-theme-foreground) 65%, transparent); + font-size: calc(var(--size-theme-font) * 0.8); + text-decoration: none; + letter-spacing: 0.1em; + z-index: 1; + } } - .pagination__title hr { - position: absolute; - background-color: color-mix(in srgb, var(--color-theme-foreground) 65%, transparent); - left: 0; - right: 0; - width: 100%; - margin-top: calc(var(--size-theme-font) * 0.9375); - z-index: 0; - } - - .pagination__buttons { + &-buttons { display: flex; align-items: flex-start; justify-content: space-between; - gap: calc(var(--size-theme-font) * 1.25); + gap: calc(var(--size-theme-font) * 1.25); @media (min-width: $phone-min-width) { flex-direction: row; @@ -88,29 +88,29 @@ padding: 0; appearance: none; } + + &:has(span:only-child) { + justify-content: center; + } } - .button__text { + .button-text { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } - .next .button__icon { + .next .button-icon { margin-left: calc(var(--size-theme-font) * 0.5); } - .prev .button__icon { + .prev .button-icon { margin-right: calc(var(--size-theme-font) * 0.5); } - - .pagination__buttons:has(span:only-child) { - justify-content: center; - } } @media print { .pagination { display: none; } -} \ No newline at end of file +} diff --git a/src/styles/sns.scss b/src/styles/sns.scss index b062708..dea2daa 100644 --- a/src/styles/sns.scss +++ b/src/styles/sns.scss @@ -6,24 +6,23 @@ flex-wrap: wrap; padding: calc(var(--size-theme-font) * 0.75) 0; font-size: inherit; + + .sns-icon { + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--color-theme-foreground); + text-decoration: none; + + svg { + width: calc(var(--size-theme-font) * 1.2); + height: calc(var(--size-theme-font) * 1.2); + } + } + + .divider { + color: var(--color-theme-foreground); + font-weight: 300; + user-select: none; + } } - -.sns-container .sns-icon { - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--color-theme-foreground); - text-decoration: none; -} - - -.sns-container .sns-icon svg { - width: calc(var(--size-theme-font) * 1.2); - height: calc(var(--size-theme-font) * 1.2); -} - -.sns-container .divider { - color: var(--color-theme-foreground); - font-weight: 300; - user-select: none; -} \ No newline at end of file diff --git a/src/styles/toc.scss b/src/styles/toc.scss index b8c950d..4aa0940 100644 --- a/src/styles/toc.scss +++ b/src/styles/toc.scss @@ -127,9 +127,6 @@ max-height: calc(60vh - var(--size-theme-font) * 4); } - .toc-list { - } - .toc-list-item { margin: calc(var(--size-theme-font) * 0.125) 0; } @@ -139,4 +136,4 @@ padding: calc(var(--size-theme-font) * 0.1) calc(var(--size-theme-font) * 0.1); } } -} \ No newline at end of file +} diff --git a/templates/archives.html b/templates/archives.html index 2882e79..3d87f2f 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -34,15 +34,15 @@