szurubooru/public_html/css/post.css

277 lines
5 KiB
CSS
Raw Normal View History

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