4chan-x/css/style.css
Nicolas Stepien b6cf7220c4 Most of the Header is done, see changelog file.
Add 4chan and 4chan X settings links in the header's menu.

Add $.asap.

Add UI.Menu.
The menu API now requires a type ("post" or "header").

Add Get.boardsConfig.
2013-02-09 18:50:21 +01:00

284 lines
4.7 KiB
CSS

/* general */
.dialog.reply {
display: block;
border: 1px solid rgba(0, 0, 0, .25);
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;
}
#qp, #ihover {
z-index: 100;
}
#menu {
z-index: 95;
}
#updater, #stats {
z-index: 90;
}
#header:hover {
z-index: 80;
}
#qr {
z-index: 50;
}
#watcher {
z-index: 30;
}
#header {
z-index: 10;
}
/* XXX support different styles */
#header-bar {
font-size: 9pt;
color: #89A;
background-color: #D6DAF0;
border-color: #B7C5D9;
border-width: 0 0 1px;
border-style: solid;
}
/* header */
body.fourchan_x {
margin-top: 2em;
}
#header {
top: 0;
right: 0;
left: 0;
}
#header-bar {
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) {
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;
}
body > #boardNavDesktop,
#navtopright,
#boardNavDesktopFoot {
display: none !important;
}
/* 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 rgba(128, 128, 128, .5);
display: table;
margin: 2px 0;
}
.inline .post {
border: 0 !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 {
border-bottom: 1px solid rgba(0, 0, 0, .25);
cursor: pointer;
display: block;
outline: none;
padding: 3px 7px;
position: relative;
text-decoration: none;
white-space: nowrap;
}
.entry:last-child {
border: none;
}
.focused.entry {
background: rgba(255, 255, 255, .33);
}
.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;
}