diff options
Diffstat (limited to 'public/assets/css')
| -rw-r--r-- | public/assets/css/hootstream.css | 329 |
1 files changed, 329 insertions, 0 deletions
diff --git a/public/assets/css/hootstream.css b/public/assets/css/hootstream.css new file mode 100644 index 0000000..efaa989 --- /dev/null +++ b/public/assets/css/hootstream.css @@ -0,0 +1,329 @@ +/** + * hootstream.css + */ + +#hootstream { + margin-top: 3rem; + font-size: 16px; +} +#hootstream form { + display: flex; + width: 100%; + justify-content: space-between; + align-items: center; + flex-direction: row; + margin-bottom: 0.75rem; +} +#hootstream form input { + flex: 1; + font-size: 16px; + padding: 0.25rem; + margin-bottom: 0; +} +#hootstream form button { + margin: 0; + padding: 0.25rem; + margin-left: 0.5rem; + min-width: 2.5rem; +} +#hootevents { + font-size: 14px; + padding-right: 3rem; +} + +/** HOOT HOOT content */ + +#hootevents .hoot { + display: flex; + flex-flow: row wrap; + justify-content: space-between; + align-items: flex-start; + margin-bottom: 0.5rem; + width: 100%; +} +#hootevents .hootText { + max-width: 60rem; +} + +/** metadata */ + +#hootevents .keywordLink { + text-decoration: none; + opacity: 0.8; + transition: opacity 0.1s; + font-size: 13px; +} +#hootevents .keywordLink:hover { + text-decoration: none; + opacity: 1; +} +#hootevents .fileCount, +#hootevents .commentCount, +#hootevents .age { + width: 40px; + display: flex; + justify-content: flex-end; + align-items: flex-start; + text-align: right; + margin: 0px 0.75rem 0px 0px; + font-size: 13px; +} +#hootevents .fileCount, +#hootevents .commentCount { +} +#hootevents .fileCount { + margin-right: 1.5rem; +} +#hootevents .userLink { + color: #118; + opacity: 0.8; + text-align: right; + width: 6rem; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + margin-right: 0.5rem; + display: flex; + justify-content: flex-end; + align-items: center; + margin-top: 0.175rem; +} +#hootevents .avatar { + width: 1.5rem; + height: 1.5rem; + background-size: cover; + border-radius: 2px; + border: 1px solid #000; + margin: 0px 0.5rem 0px 0px; + box-shadow: 0 0 1px 1px rgba(128, 128, 128, 0.1); + position: relative; + top: -0.25rem; +} +#hootevents .hoot .text { + text-align: left; + flex: 1; + margin: 0px 0.5rem 0px 0px; + white-space: pre-wrap; + line-height: 1.5; +} + +#hootevents .hoot.isRecent .threadLink { + font-weight: bold; + text-shadow: 0 0 3px rgba(192, 192, 192, 0.2); +} +#hootevents .hoot .threadLink { + color: #38f; + font-size: 16px; +} + +/** DiViDErZ */ + +#hootevents .divider { + border-top: 0; + border-bottom: 1px solid rgba(88, 88, 88, 0.4); + margin: 0 auto; + width: 80%; + height: 0rem; + margin-bottom: 1rem; +} +#hootevents .divider.dark { + border-top: 1px solid rgba(88, 88, 88, 0.4); + border-bottom: 0; + height: 1rem; + margin-bottom: 0rem; + margin-top: 0rem; +} +#hootevents .thread { + background: linear-gradient( + 90deg, + rgba(127, 127, 127, 0), + rgba(127, 127, 127, 0.05), + rgba(127, 127, 127, 0) + ); +} + +/** LastLog */ + +#hootevents .hoot.streamLastlog { + font-size: 13px; + margin-bottom: 1rem; + align-items: center; +} +#hootevents .hoot.streamLastlog .userLink { + margin-top: 0; + margin-right: 0.375rem; +} +#hootevents .hoot.streamLastlog .text { + line-height: 0; +} +#hootevents .hoot.streamLastlog .age { +} + +/** Files */ + +#hootevents .fileList { + width: calc(100% - 8.25rem); + margin-top: 0.5rem; + margin-bottom: 1rem; + margin-left: 8rem; + margin-bottom: 1rem; +} +#hootevents .fileRow { + width: 100%; + display: flex; + flex-direction: row; + align-items: center; + position: relative; +} +#hootevents .fileRow .age { + margin-right: 0; +} +#hootevents .fileRow .size { + font-size: 13px; + padding-right: 1.5rem; +} +#hootevents .fileRow .filename { + flex: 1; + overflow: hidden; + text-overflow: ellipsis; +} +#hootevents .fileRow div { + color: rgba(64, 64, 64, 1); + background: transparent; + padding: 0.5rem; + white-space: nowrap; + transition: opacity 0.1s; +} +#hootevents .fileRow::after { + content: ""; + width: 100%; + height: 100%; + opacity: 0.2; + position: absolute; + top: 0; + left: 0; + z-index: -1; +} +#hootevents .fileRow:nth-child(odd)::after { + background-color: #448; +} +#hootevents .fileRow:nth-child(even)::after { + background-color: #88b; +} +#hootevents .fileRow:nth-child(even):hover::after, +#hootevents .fileRow:nth-child(odd):hover::after { + background-color: #bbf; +} + +/** Misc */ +#hootevents code, +#hootevents pre { + background: rgba(127, 127, 127, 0.2); + border: 1px solid rgba(127, 127, 127, 0.2); + max-width: calc(100vw - 12.5rem); + margin: 0.25rem; + padding: 0.5rem; +} + +/** HOOT FORM */ + +#hootform { + margin-bottom: 0.5rem; + padding: 0.5rem; +} +#hootform input[type="text"] { + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid rgba(127, 127, 127, 0.5); + padding-bottom: 3px; + font-size: 14px; + font-family: "Trebuchet MS", sans-serif; + background: transparent; + outline: 0; + width: 270px; + transition: background 200ms; + background: white; +} +#hootform input[type="text"]:invalid { + background: transparent; +} +#hootform input[type="text"]:focus { + border-bottom: 1px solid rgba(40, 20, 20, 0.2); + border-radius: 2px 2px 0 0; + color: #211; +} +#hootform input[type="text"]:focus { + border-bottom-color: rgba(127, 127, 127, 0.2); +} +#hootform input[type="text"]:invalid { + caret-color: #888; +} + +/** MEDIA QUERY: DARK MODE */ +@media (prefers-color-scheme: dark) { + .search_form input[type="text"]:focus { + border-bottom-color: rgba(127, 127, 127, 0.2); + } + .search_form input[type="text"]:invalid { + caret-color: #888; + } + #hootstream .userLink { + color: #def; + } + #hootevents .fileRow div { + color: rgba(192, 192, 192, 1); + } + #hootevents .fileRow:nth-child(odd)::after { + background-color: #88b; + } + #hootevents .fileRow:nth-child(even)::after { + background-color: #448; + } + #hootevents .fileRow:nth-child(even):hover::after, + #hootevents .fileRow:nth-child(odd):hover::after { + background-color: #bbf; + } + #hootevents .hoot .threadLink:hover, + .desktop a:hover { + color: #2bf; + } +} + +/** MEDIA QUERY: PHONE */ +@media (max-width: 700px) { + html, + body { + overflow-x: hidden; + } + #hootform { + margin-bottom: 0rem; + } + #hootstream { + padding-right: 0; + margin-top: 1rem; + } + #hootevents .userLink { + display: none; + } + #hootevents .streamLastlog .userLink { + display: block; + width: auto; + margin-left: 2rem; + } + #hootevents .avatarLink { + margin-left: 0.25rem; + } + #hootevents .fileList { + margin-top: 0.5rem; + margin-bottom: 1rem; + margin-left: 1.75rem; + width: calc(100% - 2rem); + } + #hootevents code, + #hootevents pre { + max-width: calc(100vw - 5.75rem); + margin-right: 0; + padding: 0.25rem 0.25rem 0.75rem 0.25rem; + } +} |
