szurubooru/public_html/css/post.css

266 lines
4.2 KiB
CSS
Raw Normal View History

2014-09-21 10:56:37 +02:00
.post-type-video video {
max-width: 100%;
}
2014-10-26 11:09:29 +01:00
.post-type-image .image-wrapper {
max-width: 100%;
2014-10-26 11:09:29 +01:00
position: relative;
}
.post-type-image .image-wrapper img {
position: absolute;
top: 0;
left: 0;
width: 100%;
}
2014-09-21 10:56:37 +02:00
.post-type-youtube iframe {
width: 800px;
height: 600px;
border: 0;
}
2014-10-05 10:09:02 +02:00
#post-current-search-wrapper {
text-align: center;
}
#post-current-search {
margin: 0 auto 1em auto;
display: inline-block;
}
#post-current-search a {
margin: 0 2em;
}
#post-current-search a,
#post-current-search div {
display: inline-block;
}
#post-current-search a:not(.enabled) {
color: silver;
cursor: text;
2014-10-05 10:09:02 +02:00
}
2014-09-21 10:56:37 +02:00
#post-view-wrapper #sidebar {
line-height: 1.33em;
font-size: 90%;
}
#post-view-wrapper #sidebar h1 {
margin-top: 1.5em;
}
2014-09-21 10:56:37 +02:00
#post-view-wrapper #sidebar h1:first-of-type {
margin-top: 0;
}
@media all and (min-width: 62.5em) {
#post-view-wrapper {
display: flex;
}
#post-view-wrapper #sidebar {
min-width: 15em;
margin-right: 1em;
flex: 1;
}
#post-view-wrapper #post-view {
flex: 5;
}
}
@media all and (max-width: 62.5em) {
#post-view-wrapper {
display: flex;
flex-direction: column;
2014-09-21 10:56:37 +02:00
}
#post-view-wrapper #sidebar {
order: 2;
margin-bottom: 1em;
}
#post-view-wrapper #post-view {
margin: 0 auto;
max-width: 100%;
2014-09-21 10:56:37 +02:00
order: 1;
}
}
2014-09-27 21:33:31 +02:00
#post-view-wrapper .favorites li {
display: inline-block;
margin: 0 0.25em 0.25em 0;
}
2014-09-21 10:56:37 +02:00
2014-09-23 19:00:40 +02:00
#sidebar ul {
2014-09-21 10:56:37 +02:00
list-style-type: none;
margin: 0;
padding: 0;
}
2014-09-23 19:00:40 +02:00
#sidebar .other-info li {
display: block;
word-break: break-all;
padding-left: 1em;
text-indent: -1em;
}
2014-09-21 10:56:37 +02:00
2014-10-19 13:25:16 +02:00
#sidebar .tags li {
display: block;
word-break: break-all;
padding-left: 20px;
text-indent: -20px;
}
2014-09-21 10:56:37 +02:00
#sidebar .tags .tag-wrapper {
max-width: 100%;
position: relative;
display: inline-block;
}
2014-10-19 13:25:16 +02:00
#sidebar .tags li a.tag-edit {
margin-left: 20px;
}
#sidebar .tags li .tag-name {
margin-right: 0.8em;
2014-09-21 10:56:37 +02:00
}
#sidebar .tags li .usages {
color: silver;
}
#sidebar .author-box img {
float: left;
margin-right: 0.5em;
}
#sidebar .author-box .author-name {
font-weight: bold;
}
2014-09-23 19:00:40 +02:00
#sidebar .other-info {
margin-top: 1em;
line-height: 150%;
}
#sidebar .essential {
display: flex;
justify-content: space-around;
margin-bottom: 2em;
2014-10-24 09:45:45 +02:00
max-width: 30em;
2014-09-23 19:00:40 +02:00
}
#sidebar .essential li {
display: block;
margin: 0 0.25em;
vertical-align: top;
}
#sidebar .essential li i.fa {
font-size: 30px;
}
#sidebar .essential li a {
display: block;
text-align: center;
font-size: 12px;
}
2014-09-25 19:11:41 +02:00
2014-10-22 10:27:20 +02:00
#post-view #post-edit-target {
2014-09-25 19:11:41 +02:00
padding: 1em;
position: absolute;
background: rgba(255, 255, 255, 0.8);
2014-10-11 22:33:35 +02:00
box-shadow: 0 0 1em 0.5em rgba(255, 255, 255, 0.8);
2014-10-26 11:09:29 +01:00
z-index: 2;
2014-09-25 19:11:41 +02:00
display: none;
}
2014-10-11 22:33:35 +02:00
#post-view>* {
z-index: -1;
}
2014-09-25 19:11:41 +02:00
2014-10-22 10:27:20 +02:00
#post-edit-target .file-handler {
2014-09-25 19:11:41 +02:00
margin: 0.5em 0;
}
2014-09-26 20:41:28 +02:00
#post-view-wrapper .post-history-wrapper {
2014-10-05 21:06:43 +02:00
padding: 1em 0;
2014-09-26 20:41:28 +02:00
display: none;
word-break: break-all;
2014-09-26 20:41:28 +02:00
}
2014-10-25 15:02:46 +02:00
.post-content {
position: relative;
2014-10-26 11:09:29 +01:00
margin-bottom: 0.5em;
}
2014-10-26 11:45:30 +01:00
.post-notes-target {
position: absolute;
2014-10-26 01:01:16 +02:00
pointer-events: none;
2014-10-26 11:45:30 +01:00
z-index: 1;
2014-10-26 01:01:16 +02:00
}
.post-notes {
position: relative;
width: 100%;
height: 100%;
2014-10-25 15:02:46 +02:00
}
2014-10-26 01:01:16 +02:00
.post-note-edit {
pointer-events: auto;
display: none;
position: fixed;
2014-10-26 11:09:29 +01:00
z-index: 3;
2014-10-26 01:01:16 +02:00
background: white;
border: 1px solid black;
padding: 1em;
left: 30%;
top: 20%;
2014-10-26 01:01:16 +02:00
}
.post-note-edit textarea {
width: 20em;
height: 5em;
}
.post-note-edit .actions {
margin-top: 0.5em;
}
.post-note-edit .actions button:not(:last-child) {
margin-right: 0.5em;
}
2014-10-25 15:02:46 +02:00
.post-note {
2014-10-26 01:01:16 +02:00
pointer-events: auto;
2014-10-25 15:02:46 +02:00
position: absolute;
background: rgba(255, 255, 255, 0.3);
border: 1px solid rgba(0, 0, 0, 0.3);
}
2014-10-25 15:02:46 +02:00
.post-note .text-wrapper {
position: absolute;
display: none;
z-index: 1;
top: calc(100%);
2014-10-25 15:02:46 +02:00
left: -1px;
padding-top: 0.5em;
cursor: pointer;
2014-10-26 01:01:16 +02:00
width: -webkit-max-content;
width: -moz-max-content;
width: max-content;
}
.post-note .text {
padding: 0.5em;
background: lemonchiffon;
border: 1px solid black;
2014-10-25 15:02:46 +02:00
}
.post-note:hover .text-wrapper {
display: block;
}
2014-10-26 01:01:16 +02:00
.post-note .text p:first-of-type {
margin-top: 0;
}
.post-note .text p:last-of-type {
margin-bottom: 0;
}
.post-note .dragger {
position: absolute;
width: 100%;
height: 100%;
cursor: move;
}
.post-note .resizer {
position: absolute;
cursor: nwse-resize;
border: 0.25em solid rgba(0, 0, 0, 0.3);
border-top: 0.25em solid transparent;
border-left: 0.25em solid transparent;
right: 0;
bottom: 0;
}