diff options
| author | Bobby <[email protected]> | 2025-01-02 23:47:41 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-01-02 23:47:41 -0500 |
| commit | a9c4481356e54317584a4f92d7329364f8ad99e3 (patch) | |
| tree | afc5991e0c662a9250c7cde64bc08b3b51dc78e8 /static | |
| parent | b6bf53661c750cc11fc4d976a594e3ef19cc7363 (diff) | |
| download | thatcomputerscientist-a9c4481356e54317584a4f92d7329364f8ad99e3.tar.xz thatcomputerscientist-a9c4481356e54317584a4f92d7329364f8ad99e3.zip | |
some optimization stuff
Diffstat (limited to 'static')
| -rwxr-xr-x | static/css/core/post_list.css | 99 | ||||
| -rwxr-xr-x | static/css/shared/core.css | 148 | ||||
| -rw-r--r-- | static/images/core/messages/texts/navigation_en.png | bin | 0 -> 140274 bytes |
3 files changed, 172 insertions, 75 deletions
diff --git a/static/css/core/post_list.css b/static/css/core/post_list.css index 7f7511a2..7df9b158 100755 --- a/static/css/core/post_list.css +++ b/static/css/core/post_list.css @@ -49,6 +49,7 @@ } .post-actions { + clear: both; display: flex; justify-content: space-between; margin: 8px 0px; @@ -62,12 +63,106 @@ font-size: 11px; font-weight: normal; text-transform: capitalize; - background-color: #311b4f; - color: #dddddd !important; + color: #fff !important; border-radius: 10px; + background: linear-gradient(145deg, #452673, #311b4f); + box-shadow: + inset 0 1px 1px rgba(255, 255, 255, 0.4), + inset 0 -1px 1px rgba(0, 0, 0, 0.4), + 0 0 5px rgba(69, 38, 115, 0.5), + 0 2px 4px rgba(0, 0, 0, 0.2); + border: 1px solid #5a338f; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); + transition: all 0.2s ease; + position: relative; + overflow: hidden; } .post-tag:hover { + background: linear-gradient(145deg, #512c85, #3d2361); + box-shadow: + inset 0 1px 1px rgba(255, 255, 255, 0.4), + inset 0 -1px 1px rgba(0, 0, 0, 0.4), + 0 0 10px rgba(69, 38, 115, 0.8), + 0 2px 4px rgba(0, 0, 0, 0.2); +} + +.post-tag:hover::after { + content: ''; + position: absolute; + top: -50%; + left: -150%; + width: 200%; + height: 200%; + background: linear-gradient(45deg, + transparent 0%, + rgba(255, 255, 255, 0.1) 45%, + rgba(255, 255, 255, 0.5) 50%, + rgba(255, 255, 255, 0.1) 55%, + transparent 100%); + transform: rotate(45deg); + animation: shine 4s linear infinite; +} + +.post-tag:active { + background: linear-gradient(145deg, #311b4f, #452673); + box-shadow: + inset 0 2px 4px rgba(0, 0, 0, 0.4), + 0 0 5px rgba(69, 38, 115, 0.5); + transform: translateY(1px); +} + +@keyframes shine { + 0% { + left: -150%; + } + + 25% { + left: 100%; + } + + 100% { + left: 100%; + } +} + +/* .post-tag:hover { background-color: #311b4f; color: #dddddd !important; +} */ + +p>img { + shape-outside: margin-box; + width: auto; + height: auto; + max-width: 180px; + max-height: 180px; + border-radius: 4px; + overflow: hidden; + position: relative; + top: 6px; + margin-bottom: 8px; +} + +p>img:nth-of-type(odd) { + float: left; + margin-right: 12px; + margin-left: 0; +} + +p>img:nth-of-type(even) { + float: right; + margin-left: 12px; + margin-right: 0; +} + +p>img.block { + width: 780px; + max-width: 780px; + height: auto; + max-height: 100%; + display: block; + margin: 0px 0px 16px 0px; + clear: both; + float: none; }
\ No newline at end of file diff --git a/static/css/shared/core.css b/static/css/shared/core.css index 41924bbb..de275aa1 100755 --- a/static/css/shared/core.css +++ b/static/css/shared/core.css @@ -98,41 +98,6 @@ a:hover { text-decoration: underline; } -.link-button { - background: rgba(134, 99, 229, 0.2); - padding: 8px 16px; - border-radius: 4px; - color: #8d8dff; - text-decoration: none; - border: 1px solid #8d8dff; - transition: all 0.3s ease; - font-size: 12px; -} - -.link-button:hover { - background: rgba(223, 35, 196, 0.2); - border-color: #df23c4; - color: #df23c4; - text-decoration: none; - transform: translateY(-2px); -} - -.action-button { - padding: 4px 8px; - border-radius: 4px; - color: #8d8dff; - text-decoration: none; - font-size: 11px; - transition: all 0.2s ease; - background: rgba(141, 141, 255, 0.1); -} - -.action-button:hover { - color: #df23c4; - background: rgba(223, 35, 196, 0.1); - text-decoration: none; -} - textarea { resize: none; background: transparent; @@ -184,44 +149,6 @@ img { display: flex; } -/* SCANLINES */ -#scanlines { - position: fixed; - left: 0; - top: 0; - width: 100vw; - height: 100vh; - pointer-events: none; - z-index: 9; - opacity: 0.18; -} - -#scanlines:before { - content: ""; - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - pointer-events: none; - background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .4) 50%); - background-size: 100% 4px; - will-change: background, background-size; - animation: scanlines 0.2s linear infinite; -} - -@keyframes scanlines { - from { - background: linear-gradient(to bottom, transparent 10%, rgba(0, 0, 0, .4) 50%); - background-size: 100% 4px; - } - - to { - background: linear-gradient(to bottom, rgba(0, 0, 0, .4) 50%, transparent 50%); - background-size: 100% 4px; - } -} - /* Main Content */ #right-sidebar { @@ -447,4 +374,79 @@ html[lang='ja'] .navigation-title { /* Text Formatting */ .section-title { margin: 16px 0px; +} + + +/* SCANLINES */ +#scanlines { + position: fixed; + left: 0; + top: 0; + width: 100vw; + height: 100vh; + pointer-events: none; + z-index: 9; + opacity: 0.18; +} + +#scanlines:before { + content: ""; + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + pointer-events: none; + background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .4) 50%); + background-size: 100% 4px; + will-change: background, background-size; + animation: scanlines 0.2s linear infinite; +} + +@keyframes scanlines { + from { + background: linear-gradient(to bottom, transparent 10%, rgba(0, 0, 0, .4) 50%); + background-size: 100% 4px; + } + + to { + background: linear-gradient(to bottom, rgba(0, 0, 0, .4) 50%, transparent 50%); + background-size: 100% 4px; + } +} + +/* Other Stuff */ +.link-button { + background: rgba(134, 99, 229, 0.2); + padding: 8px 16px; + border-radius: 4px; + color: #8d8dff; + text-decoration: none; + border: 1px solid #8d8dff; + transition: all 0.3s ease; + font-size: 12px; +} + +.link-button:hover { + background: rgba(223, 35, 196, 0.2); + border-color: #df23c4; + color: #df23c4; + text-decoration: none; + transform: translateY(-2px); +} + +.action-button { + padding: 4px 8px; + border-radius: 4px; + color: #8d8dff; + text-decoration: none; + font-size: 11px; + transition: all 0.2s ease; + background: rgba(141, 141, 255, 0.1); +} + +.action-button:hover { + color: #df23c4; + background: rgba(223, 35, 196, 0.1); + text-decoration: none; }
\ No newline at end of file diff --git a/static/images/core/messages/texts/navigation_en.png b/static/images/core/messages/texts/navigation_en.png Binary files differnew file mode 100644 index 00000000..18e9da18 --- /dev/null +++ b/static/images/core/messages/texts/navigation_en.png |
