4chan-x/css/style.css
2013-02-12 00:41:26 +01:00

320 lines
5.5 KiB
CSS

/* general */
.dialog {
box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
border: 1px solid;
display: block;
padding: 0;
}
.move {
cursor: move;
}
label {
cursor: pointer;
}
a[href="javascript:;"] {
text-decoration: none;
}
.warning {
color: red;
}
/* 4chan style fixes */
.opContainer, .op {
display: block !important;
}
.post {
overflow: visible !important;
}
[hidden] {
display: none !important;
}
/* fixed, z-index */
#qp, #ihover,
#updater, #stats,
#header,
#qr, #watcher {
position: fixed;
}
#notifications {
z-index: 80;
}
#qp, #ihover {
z-index: 70;
}
#menu {
z-index: 60;
}
#updater, #stats {
z-index: 50;
}
#header:hover {
z-index: 40;
}
#qr {
z-index: 30;
}
#header {
z-index: 20;
}
#watcher {
z-index: 10;
}
/* Header */
.fourchan-x body {
margin-top: 2em;
}
.fourchan-x #boardNavDesktop,
.fourchan-x #navtopright,
.fourchan-x #boardNavDesktopFoot {
display: none !important;
}
#header {
top: 0;
right: 0;
left: 0;
}
#header-bar {
border-width: 0 0 1px;
padding: 4px;
position: relative;
transition: all .1s ease-in-out;
-o-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out;
-webkit-transition: all .1s ease-in-out;
}
#header-bar.autohide:not(:hover) {
margin-bottom: -1em;
transform: translateY(-100%);
-o-transform: translateY(-100%);
-moz-transform: translateY(-100%);
-webkit-transform: translateY(-100%);
transition: all .75s .25s ease-in-out;
-o-transition: all .75s .25s ease-in-out;
-moz-transition: all .75s .25s ease-in-out;
-webkit-transition: all .75s .25s ease-in-out;
}
#toggle-header-bar {
cursor: n-resize;
left: 0;
right: 0;
bottom: -8px;
height: 10px;
position: absolute;
}
#header-bar.autohide #toggle-header-bar {
cursor: s-resize;
}
#header-bar a {
text-decoration: none;
padding: 1px;
}
#header-bar > .menu-button {
float: right;
padding: 0;
}
/* notifications */
#notifications {
text-align: center;
}
.notification {
color: #FFF;
font-weight: 700;
text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
border-radius: 2px;
margin: 1px auto;
width: 500px;
max-width: 100%;
position: relative;
transition: all .25s ease-in-out;
-o-transition: all .25s ease-in-out;
-moz-transition: all .25s ease-in-out;
-webkit-transition: all .25s ease-in-out;
}
.notification.error {
background-color: hsla(0, 100%, 40%, .9);
}
.notification.warning {
background-color: hsla(36, 100%, 40%, .9);
}
.notification.info {
background-color: hsla(200, 100%, 40%, .9);
}
.notification.success {
background-color: hsla(104, 100%, 40%, .9);
}
.notification > .close {
color: white;
padding: 4px 6px;
top: 0;
right: 0;
position: absolute;
}
.message {
box-sizing: border-box;
padding: 4px 20px;
max-height: 200px;
width: 100%;
overflow: auto;
}
/* thread updater */
#updater {
text-align: right;
}
#updater:not(:hover) {
background: none;
border: none;
}
#updater input[type=number] {
width: 4em;
}
#updater:not(:hover) > div:not(.move) {
display: none;
}
.new {
color: limegreen;
}
/* quote */
.quotelink.deadlink {
text-decoration: underline !important;
}
.deadlink:not(.quotelink) {
text-decoration: none !important;
}
.inlined {
opacity: .5;
}
#qp input, .forwarded {
display: none;
}
.quotelink.forwardlink,
.backlink.forwardlink {
text-decoration: none;
border-bottom: 1px dashed;
}
.filtered {
text-decoration: underline line-through;
}
.inline {
border: 1px solid;
display: table;
margin: 2px 0;
}
.inline .post {
border: 0 !important;
background-color: transparent !important;
display: table !important;
margin: 0 !important;
padding: 1px 2px !important;
}
#qp {
padding: 2px 2px 5px;
}
#qp .post {
border: none;
margin: 0;
padding: 0;
}
#qp img {
max-height: 300px;
max-width: 500px;
}
.qphl {
box-shadow: 0 0 0 2px rgba(216, 94, 49, .7);
}
/* file */
.fileText:hover .fntrunc,
.fileText:not(:hover) .fnfull {
display: none;
}
#ihover {
box-sizing: border-box;
-moz-box-sizing: border-box;
max-height: 100%;
max-width: 75%;
padding-bottom: 16px;
}
/* Filter */
.opContainer.filter-highlight {
box-shadow: inset 5px 0 rgba(255, 0, 0, .5);
}
.opContainer.filter-highlight.qphl {
box-shadow: inset 5px 0 rgba(255, 0, 0, .5),
0 0 0 2px rgba(216, 94, 49, .7);
}
.filter-highlight > .reply {
box-shadow: -5px 0 rgba(255, 0, 0, .5);
}
.filter-highlight > .reply.qphl {
box-shadow: -5px 0 rgba(255, 0, 0, .5),
0 0 0 2px rgba(216, 94, 49, .7);
}
/* Thread & Reply Hiding */
.hide-thread-button,
.hide-reply-button {
float: left;
margin-right: 2px;
}
.stub ~ .sideArrows,
.stub ~ .hide-reply-button,
.stub ~ .post {
display: none !important;
}
/* Menu */
.menu-button {
display: inline-block;
}
.menu-button > span {
border-top: 6px solid;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
display: inline-block;
margin: 2px;
vertical-align: middle;
}
#menu {
position: absolute;
outline: none;
}
.entry {
cursor: pointer;
display: block;
outline: none;
padding: 3px 7px;
position: relative;
text-decoration: none;
white-space: nowrap;
}
.entry.has-submenu {
padding-right: 20px;
}
.has-submenu::after {
content: "";
border-left: 6px solid;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
display: inline-block;
margin: 4px;
position: absolute;
right: 3px;
}
.has-submenu:not(.focused) > .submenu {
display: none;
}
.submenu {
position: absolute;
margin: -1px 0;
}
.entry input {
margin: 0;
}