X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fcss%2Fsone.css;h=f6628ceea655d4271095d8c3acfe60bd4c2a9679;hb=c8f518f638aa16cf37145561b709d28252de213a;hp=15a10cd98f5422c5721f87f922ac679f03254c60;hpb=93ac4bf38a6b3427b311404f2ff6044a54d1d7f4;p=Sone.git diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 15a10cd..f6628ce 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -1,31 +1,106 @@ /* Sone Main CSS File */ -#sone { +/* first, override some fproxy rules. */ +#sone .post .reply div,#sone .post .time,#sone .post .delete,#sone .post .show-reply-form, input[type=text], textarea { + font: inherit; +} + +input[type=text], textarea { + font-size: 90%; + margin: 0.5ex; + margin-left: 0; + border: solid 1px #ccc; + padding: 0.5ex; + height: 1.5em; width: 50em; + outline: none; +} + +textarea { + height: 4em; +} + +#sone form { + margin: 0px; +} + +/* now for the real stuff. */ + +#sone { + width: 55em; margin: auto; } -#sone a { - color: inherit; +#sone .hidden { + display: none; +} + +#sone #formPassword { + display: none; +} + +#sone a, #sone a:link, #sone a:visited { + color: rgb(28, 131, 191); + font-size: inherit; text-decoration: none; } -#sone a:visited { - color: inherit; +#sone a:active, #sone a:hover { + color: rgb(255, 172, 0); } -#sone #sidebar { - width: 200px; - position: absolute; +#sone #profile { + height: 80px; + margin-bottom: 1ex; } #sone .profile-link { font-weight: bold; - color: #23e; + color: rgb(28, 131, 191); } -#sone #profile .picture { - float: left; +#sone #profile.online .picture { + position: absolute; + background-image: url("../images/sone.png"); + width: 80px; + height: 80px; +} + +#sone #profile.offline .picture { + position: absolute; + background-image: url("../images/sone-offline.png"); + width: 80px; + height: 80px; +} + +#sone #profile.offline .edit-profile-link, #sone #profile.offline .profile-link { + display: none; +} + +#sone #profile .edit-profile-link { + font-size: 85%; +} + +#sone #home-sone { + margin-top: 1ex; + margin-left: 80px; + padding-left: 1ex; +} + +#sone #update-status label { + display: none; +} + +#sone #update-status input[type=text] { + width: 45em; +} + +#sone #update-status textarea { + width: 45em; +} + +#sone #update-status button { + float: right; } #sone .nice-name { @@ -33,14 +108,18 @@ } #sone #main { - margin-left: 200px; - padding-left: 1em; + padding: 1em; } #sone .post { padding: 1ex 0px; border-bottom: solid 1px #ccc; - margin-bottom: 1ex; + clear: both; +} + +#sone .post.last { + padding: 1ex 0px; + border-bottom: none; } #sone .post .author { @@ -50,20 +129,51 @@ #sone .post .text { display: inline; + white-space: pre-wrap; } #sone .post .status-line { clear: both; + margin-top: 0.5ex; + font-size: 85%; } #sone .post .time { + display: inline; color: #666; - float: left; - font-size: 85%; } -#sone .post .delete { - float: right; +#sone .post .delete, #sone .post .likes, #sone .post .like, #sone .post .unlike { + display: inline; + font: inherit; +} + +#sone .post .like.hidden, #sone .post .unlike.hidden { + display: none; +} + +#sone .post .delete button, #sone .post .like button, #sone .post .unlike button { + border: 0px; + background: none; + padding: 0px; + color: rgb(28, 131, 191); +} + +#sone .post .delete button:hover, #sone .post .like button:hover, #sone .post .unlike button:hover { + border: 0px; + background: none; + padding: 0px; + color: rgb(255, 172, 0); + cursor: pointer; +} + +#sone .post .delete:before, #sone .post .likes:before, #sone .post .like:before, #sone .post .unlike:before { + content: ' ‧ '; +} + +#sone .post .likes span { + font: inherit; + color: green; } #sone .post .replies { @@ -73,16 +183,12 @@ #sone .post .reply { clear: both; - background-color: #eef; + background-color: #f0f0ff; font-size: 85%; margin: 1ex 0px; padding: 1ex; } -#sone .post .reply div { - font-size: inherit; /* or else fproxy's css rules will fuck us. */ -} - #sone .post .reply .time { float: none; display: inline; @@ -90,6 +196,24 @@ font-size: inherit; } +#sone .post .show-reply-form { + display: inline; +} + +#sone .post .show-reply-form span { + color: rgb(28, 131, 191); + cursor: pointer; + font: inherit; +} + +#sone .post .show-reply-form span:hover { + color: rgb(255, 172, 0); +} + +#sone .post .show-reply-form:before { + content: ' ‧ '; +} + #sone .post .reply .status-line .delete { float: none; display: inline; @@ -101,12 +225,170 @@ #sone .post .create-reply { clear: both; + background-color: #f0f0ff; + padding: 0.5ex; +} + +#sone .post .create-reply input[type=text] { + margin-left: 0.5ex; + width: 50em; +} + +#sone .post .create-reply textarea { + margin-left: 0.5ex; + width: 50em; + height: 4em; +} + +#sone .post .create-reply button { + float: right; +} + +#sone .sone { + clear: both; + background-color: #f0f0ff; + border: 1px solid #ccc; + margin-bottom: 0.5ex; + padding: 0.5ex; +} + +#sone .sone .id { + display: none; +} + +#sone .sone .profile-link { + display: block; +} + +#sone .sone .short-request-uri { + clear: both; + float: right; +} + +#sone .sone .unknown-marker, #sone .sone .download-marker, #sone .sone .insert-marker, #sone .sone .idle-marker, #sone .sone .modified-marker { + display: none; +} + +#sone .sone.unknown .unknown-marker, #sone .sone.idle .idle-marker, #sone .sone.downloading .download-marker, #sone .sone.inserting .insert-marker, #sone .sone.modified .modified-marker { + display: inline; + float: right; + border: solid 1px #ccc; + border-right: none; + border-top: none; + padding: 0 0.5ex; + position: relative; + right: -0.5ex; + top: -0.5ex +} + +#sone .sone .last-update { + float: right; + display: inline; +} + +#sone .sone .modified-marker, #sone .sone .unknown-marker { + color: red; + font-weight: bold; +} + +#sone .sone form { + display: inline; + border: solid 1px #ccc; + border-left: none; + border-bottom: none; + padding: 0 0.5ex; + position: relative; + left: -0.5ex; + bottom: -0.5ex +} + +#sone .sone form.hidden { + display: none; +} + +#sone .sone form.block button, #sone .sone form.unblock button, #sone .sone form.follow button, #sone .sone form.unfollow button { + display: inline; + color: rgb(28, 131, 191); + background: none; + border: none; + font: inherit; + padding: 0px; +} + +#sone .sone form.block button:hover, #sone .sone form.unblock button:hover, #sone .sone form.follow button:hover, #sone .sone form.unfollow button:hover { + display: inline; + color: rgb(255, 172, 0); +} + +#sone .sone .spacer { + display: inline; +} + +#sone #create-sone { + +} + +#sone #tail .import-key, #sone #import-key .import-key { + margin-top: 1em; + border-top: solid 1px #ccc; + padding-top: 1em; + text-align: center; + font-size: 75%; + color: #888; +} + +#sone #import-key .import-key { + border-top: none; +} + +#sone #add-sone textarea, #sone #create-sone textarea, #sone #load-sone textarea, #sone #edit-profile textarea { + height: 1.5em; +} + +#sone #add-sone button { + position: absolute; +} + +#sone .navigation { + text-align: center; +} + +#sone .navigation .first a, #sone .navigation .previous a, #sone .navigation .next a, #sone .navigation .last a, #sone .navigation .first span, #sone .navigation .previous span, #sone .navigation .next span, #sone .navigation .last span { + display: block; + height: 1.5em; + padding: 0.5ex; + width: 3em; + border: solid 1px #ccc; + background-color: #f0f0ff; + margin: 1ex 0; +} + +#sone .navigation .first, #sone .navigation .previous { + float: left; +} + +#sone .navigation .current-page, #sone .navigation .total-pages { + position: relative; + top: 0.5em; + margin-top: 0.5ex; + display: inline; +} + +#sone .navigation .total-pages:before { + content: '/ '; +} + +#sone .navigation .next, #sone .navigation .last { + float: right; } #sone h1 { font-family: inherit; font-size: 200%; font-weight: bold; + clear: both; + margin: 0; + margin-top: 1em; } #sone .error label { @@ -114,6 +396,16 @@ font-weight: bold; } -#sone input.createpost.default { +#sone input.default { color: #888; -} \ No newline at end of file +} + +#sone input[type=text].key { + width: 130ex;; + font-size: 75%; +} + +#sone .confirm { + font-weight: bold !important; + color: red !important; +}