szurubooru/public_html/media/css/core.css

442 lines
7.5 KiB
CSS
Raw Normal View History

@font-face {
font-family: 'Droid Sans';
font-style: normal;
font-weight: 400;
src: local('Droid Sans'), local('DroidSans'), url(../fonts/DroidSans.ttf) format('truetype');
}
@font-face {
font-family: 'Droid Sans';
font-style: normal;
font-weight: 700;
src: local('Droid Sans Bold'), local('DroidSans-Bold'), url(../fonts/DroidSans-Bold.ttf) format('truetype');
}
body {
background: white;
color: black;
margin: 0;
padding: 0;
overflow-x: auto;
overflow-y: scroll;
2013-10-07 00:44:17 +02:00
font-family: 'Droid Sans', sans-serif;
font-size: 12pt;
}
#content {
padding: 0;
2013-10-10 00:12:27 +02:00
margin: 1.5em 0;
}
2013-10-09 11:45:18 +02:00
#top-nav {
2013-10-19 22:56:56 +02:00
width: 100%;
background: #eee;
color: black;
}
2013-10-15 21:38:58 +02:00
.main-wrapper {
2014-02-16 12:33:31 +01:00
margin: 0 auto;
padding: 0 30px;
2013-10-15 21:38:58 +02:00
}
2013-12-14 16:49:43 +01:00
#top-nav .clear {
background: white;
}
2013-10-14 00:25:40 +02:00
#top-nav ul.main-nav {
2013-10-19 13:38:20 +02:00
margin: 0 0 0 -0.75em;
padding: 0;
list-style-type: none;
}
2013-10-14 00:25:40 +02:00
#top-nav li.main-nav-item {
display: inline-block;
float: left;
}
2013-12-05 23:16:25 +01:00
#top-nav li.main-nav-item.active a {
border-bottom: 3px solid #f7f7f7;
margin-bottom: 0;
background: #f7f7f7;
}
2013-10-09 11:45:18 +02:00
#top-nav li input,
2013-10-14 00:25:40 +02:00
#top-nav li.main-nav-item a {
color: black;
display: inline-block;
margin-bottom: 3px;
text-decoration: none;
}
2013-10-14 00:25:40 +02:00
#top-nav li.main-nav-item a {
2013-10-15 21:38:58 +02:00
line-height: 35px;
padding: 0 10px;
outline: 0;
}
2013-10-14 00:25:40 +02:00
#top-nav li.main-nav-item a:focus,
#top-nav li.main-nav-item a:hover {
2014-02-16 18:49:04 +01:00
color: hsl(0,70%,45%);
border-bottom: 3px solid hsl(0,70%,45%);
margin-bottom: 0;
}
2013-10-15 21:38:58 +02:00
#top-nav li.search {
display: inline-block;
2013-10-15 21:38:58 +02:00
float: right;
background: white;
2013-10-19 13:38:20 +02:00
margin: 5px 0;
padding: 0;
line-height: 20px;
2013-10-15 21:38:58 +02:00
}
#top-nav li.search input {
border: 0;
2014-02-16 16:03:13 +01:00
height: 28px;
line-height: 28px;
padding: 0 10px;
2013-10-19 13:38:20 +02:00
margin: 0;
2013-10-15 21:38:58 +02:00
}
2013-10-14 00:25:40 +02:00
#top-nav li.safety {
display: inline-block;
2013-10-14 00:25:40 +02:00
float: right;
2013-10-19 13:38:20 +02:00
margin-left: 5px;
2013-10-14 00:25:40 +02:00
}
#top-nav li.safety ul {
list-style-type: none;
margin: 0;
padding: 0;
}
#top-nav li.safety li {
2013-10-15 21:38:58 +02:00
display: inline;
2013-10-14 00:25:40 +02:00
}
#top-nav li.safety a {
display: inline-block;
2013-10-15 21:38:58 +02:00
float: left;
width: 25px;
2013-10-21 15:16:34 +02:00
line-height: 28px;
margin: 5px -1px 5px 0;
2013-10-15 21:38:58 +02:00
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
2013-10-14 00:25:40 +02:00
}
#top-nav li.safety a:after {
content: ' ';
}
2013-10-14 00:25:40 +02:00
#top-nav li.safety span {
display: none;
2013-10-15 21:38:58 +02:00
}
2013-10-29 09:42:29 +01:00
#top-nav li.safety a:focus,
2013-10-15 21:38:58 +02:00
#top-nav li.safety a:hover { opacity: .7; }
#top-nav li.safety a.inactive { opacity: 1; }
2013-10-19 22:56:56 +02:00
#top-nav li.safety .safety-safe .enabled { background: #cfe6c2; background: linear-gradient(to bottom, #CFE6C2 0%, #80C670 100%); }
#top-nav li.safety .safety-safe .disabled { background: #a0a0a0; background: linear-gradient(to bottom, #a0a0a0 0%, #808080 100%); }
#top-nav li.safety .safety-sketchy .enabled { background: #f0f4c8; background: linear-gradient(to bottom, #F0F4C8 0%, #EBE57A 100%); }
#top-nav li.safety .safety-sketchy .disabled { background: #a0a0a0; background: linear-gradient(to bottom, #a0a0a0 0%, #808080 100%); }
#top-nav li.safety .safety-unsafe .enabled { background: #fbc6b6; background: linear-gradient(to bottom, #FBC6B6 0%, #F37865 100%); }
#top-nav li.safety .safety-unsafe .disabled { background: #a0a0a0; background: linear-gradient(to bottom, #a0a0a0 0%, #808080 100%); }
2013-10-15 21:38:58 +02:00
2013-10-14 00:25:40 +02:00
2014-02-16 12:30:34 +01:00
footer .main-wrapper {
text-align: center;
2014-02-16 12:30:34 +01:00
margin-top: 1em;
font-size: small;
color: silver;
}
2013-10-19 13:38:20 +02:00
footer span:not(:last-child):after {
content: '\022C5';
2013-10-20 11:12:56 +02:00
margin: 0 0.5em;
}
footer a {
color: silver;
2013-10-19 13:38:20 +02:00
}
2013-10-15 21:38:58 +02:00
2013-10-07 00:44:17 +02:00
#sidebar {
float: left;
2014-02-16 12:33:31 +01:00
width: 240px;
margin-right: 15px;
2013-10-12 12:38:49 +02:00
}
2013-10-07 00:44:17 +02:00
#sidebar h1 {
margin-top: 0;
2014-02-17 19:50:02 +01:00
margin-bottom: 10px;
2013-10-13 12:28:16 +02:00
}
2014-02-19 20:11:53 +01:00
#sidebar+#inner-content {
margin-left: 255px;
overflow: hidden;
}
2013-10-13 12:28:16 +02:00
#sidebar .key {
padding-right: 0.5em;
}
#sidebar .key-value {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2013-10-07 00:44:17 +02:00
}
2014-01-06 19:25:27 +01:00
.unit {
2014-02-16 15:11:53 +01:00
margin: 2.5em 0;
2014-01-06 19:25:27 +01:00
}
2014-02-16 12:28:45 +01:00
#sidebar .unit:first-child {
margin-top: 0;
}
2014-01-06 19:25:27 +01:00
#small-screen { display: none; }
@media only screen and (max-width:700px) {
#small-screen { display: block; }
body #sidebar {
float: none;
width: 100%;
}
#inner-content {
width: auto;
2014-02-19 20:11:53 +01:00
margin-left: 0;
margin-bottom: 2em;
2014-01-06 19:25:27 +01:00
}
2013-10-19 22:56:56 +02:00
}
2013-10-15 21:38:58 +02:00
h1, h2, h3 {
font-weight: normal;
}
2013-10-09 00:58:49 +02:00
p:first-child,
h1:first-child {
margin-top: 0;
}
2013-10-12 10:46:15 +02:00
hr {
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAIElEQVQYlWNgQAPv3r37j4wHXBJdATY5BnyScAX4TAUAdfp5IbOdz/YAAAAASUVORK5CYII=');
border: 0;
height: 4px;
}
2013-10-12 10:46:15 +02:00
a {
2014-02-16 18:49:04 +01:00
color: hsl(0,70%,45%);
2013-10-12 10:46:15 +02:00
text-decoration: none;
outline: 0;
}
a:focus,
a:hover {
color: red;
}
i[class*='icon-'] {
background-image: url('../img/icons.png');
background-repeat: no-repeat;
display: inline-block;
}
a i[class*='icon-'] {
2014-02-16 18:49:04 +01:00
background-color: hsl(0,70%,45%);
2013-10-12 10:46:15 +02:00
}
a:focus i[class*='icon-'],
a:hover i[class*='icon-'] {
background-color: red;
}
2013-10-12 19:28:52 +02:00
2013-10-15 21:38:58 +02:00
2014-02-16 16:03:13 +01:00
.form-row>label {
display: inline-block;
text-align: right;
vertical-align: middle;
padding-right: 1em;
2014-02-16 16:03:13 +01:00
width: 7em;
min-height: 1em;
float: left;
}
2014-02-16 16:03:13 +01:00
label,
input:not([type=radio]):not([type=checkbox]):not([type=file]),
select,
button {
-webkit-box-sizing: border-box !important;
-moz-box-sizing: border-box !important;
box-sizing: border-box !important;
vertical-align: middle;
2014-02-16 16:03:13 +01:00
line-height: 24px;
height: 34px;
}
2014-02-16 16:03:13 +01:00
label,
input,
select {
padding: 5px;
2014-02-16 16:03:13 +01:00
font-family: inherit;
font-size: 11pt;
}
2014-02-16 16:03:13 +01:00
input[type=file] {
padding: 5px 0;
}
2014-02-16 16:03:13 +01:00
input[type=radio],
input[type=checkbox] {
2013-10-21 23:25:56 +02:00
width: auto;
max-width: auto;
margin: 0 10px 0 0;
padding: 0;
vertical-align: middle;
}
2014-02-16 16:03:13 +01:00
button {
font-size: 12pt;
border-radius: 5px;
padding: 5px 15px;
-moz-box-sizing: border-box;
2014-02-16 16:03:13 +01:00
color: white;
2014-02-16 18:49:04 +01:00
background: hsl(0,70%,60%);
2014-02-16 16:03:13 +01:00
border: 0;
}
button:hover {
2014-02-16 18:49:04 +01:00
background-color: hsl(0,75%,50%);
2014-02-16 16:03:13 +01:00
cursor: pointer;
}
2014-02-16 16:03:13 +01:00
.form-row {
margin: 0.25em 0;
clear: left;
}
2014-02-16 16:03:13 +01:00
.input-wrapper {
overflow: hidden;
display: block;
2013-10-13 00:36:10 +02:00
}
2014-02-16 16:03:13 +01:00
ul.tagit,
select,
2013-10-19 22:56:56 +02:00
textarea,
input:not([type=radio]):not([type=checkbox]):not([type=file]) {
2014-02-16 16:03:13 +01:00
width: 100%;
max-width: 100%;
2013-10-13 00:36:10 +02:00
border: 1px solid #ccc;
2014-02-16 16:03:13 +01:00
border-radius: 5px;
}
ul.tagit {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
2013-10-13 00:36:10 +02:00
}
ul.tagit input {
border: 0 !important;
2014-02-16 16:03:13 +01:00
line-height: auto !important;
height: auto !important;
margin: -4px 0 !important;
2013-10-13 00:36:10 +02:00
}
2013-10-15 21:38:58 +02:00
.tabs ul {
list-style-type: none;
2014-02-16 12:32:03 +01:00
margin: 0 0 1em 0;
padding: 0;
2014-02-16 12:32:03 +01:00
border-bottom: 3px solid #eee;
}
.tabs li {
display: inline-block;
}
.tabs li a {
display: inline-block;
padding: 0.5em 1em;
vertical-align: middle;
2014-02-16 12:32:03 +01:00
border: 3px solid rgba(238, 238, 238, 0);
border-bottom: 3px solid #eee;
color: silver;
2014-02-16 12:32:03 +01:00
margin: 0 0 -3px 0;
}
.tabs li.selected a {
2014-02-16 12:32:03 +01:00
border: 3px solid #eee;
border-bottom-color: rgba(238, 238, 238, 0);
color: inherit;
background: white;
}
2013-12-05 23:16:25 +01:00
.tabs li a:hover,
.tabs li a:focus {
2014-02-16 18:49:04 +01:00
color: hsl(0,70%,45%);
}
2013-10-12 19:28:52 +02:00
.alert {
text-align: center;
padding: 10px;
border-style: solid;
border-width: 1px;
2013-10-12 22:37:18 +02:00
max-width: 500px;
2014-02-16 16:03:13 +01:00
margin: 2em auto;
2013-10-12 19:28:52 +02:00
}
.alert-success {
border-color: #aba;
background-color: #aea;
}
2013-10-12 19:28:52 +02:00
.alert-error {
border-color: #faa;
background-color: #fdd;
}
.alert-warning {
border-color: #ffa;
background-color: #ffd;
}
2013-10-12 22:54:25 +02:00
.inactive {
opacity: .5;
}
2013-10-15 21:38:58 +02:00
.clear {
display: block;
clear: both;
height: 1px; /* ghost top margin in firefox */
width: 100%;
2014-02-19 20:11:53 +01:00
margin: -1px 0 0 0;
2013-10-15 21:38:58 +02:00
}
2013-10-19 12:53:49 +02:00
pre.debug {
margin-left: 1em;
2013-10-19 12:53:49 +02:00
text-align: left;
color: black;
white-space: normal;
text-indent: -1em;
2013-10-19 12:53:49 +02:00
}
2013-10-19 15:10:28 +02:00
.spoiler:before,
.spoiler:after {
color: gray;
}
.spoiler:before {
content: '[ ';
}
.spoiler:after {
content: ' ]';
}
.spoiler {
background: #eee;
color: #eee;
}
.spoiler:hover {
color: black;
}
2013-10-25 15:49:52 +02:00
img {
border: 0;
}
2013-12-07 15:04:11 +01:00
blockquote {
margin-left: 0;
border-left: 3px solid #eee;
background: ghostwhite;
padding: 0.5em;
}
blockquote>*:first-child {
margin-top: 0;
}
blockquote>*:last-child {
margin-bottom: 0;
}
2014-02-16 18:49:04 +01:00
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
color: hsla(0,70%,45%,0.8) !important;
}