614 lines
11 KiB
SCSS
614 lines
11 KiB
SCSS
@keyframes wiggle {
|
|
0% {transform: rotate(-3deg);}
|
|
100% {transform: rotate(3deg);}
|
|
}
|
|
@-webkit-keyframes wiggle {
|
|
0% {transform: rotate(-3deg);}
|
|
100% {transform: rotate(3deg);}
|
|
}
|
|
|
|
|
|
@media only screen
|
|
and (min-width: 0px) //TODO
|
|
{
|
|
|
|
*, *:before, *:after, *:hover, *:active, *:focus {
|
|
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
|
|
outline: none !important;
|
|
}
|
|
|
|
*::-moz-focus-inner {
|
|
border: 0;
|
|
outline: none !important;
|
|
}
|
|
|
|
html {
|
|
overflow-y: scroll;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
body {
|
|
background-color: #F2F2F2;
|
|
color: #3F3F3F;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
#mobile-info {
|
|
display: none;
|
|
}
|
|
|
|
a {
|
|
color: #AB0000;
|
|
text-decoration: none;
|
|
&:hover {
|
|
color: #F00;
|
|
}
|
|
}
|
|
|
|
.flash {
|
|
text-align: center;
|
|
padding: 10px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
&#notice {
|
|
background: #8e8;
|
|
border-bottom: 3px dashed #8d8;
|
|
}
|
|
&#alert {
|
|
background: #ebb;
|
|
border-bottom: 3px dashed #fdd;
|
|
}
|
|
}
|
|
#head {
|
|
#menu {
|
|
background: #3F3F3F;
|
|
height: 50px;
|
|
border-bottom: 1px solid #363636;
|
|
position: relative;
|
|
#logo {
|
|
width: 100px;
|
|
height: 100px;
|
|
position: absolute;
|
|
background: url(image_path('logo.png')) no-repeat;
|
|
background-position: 0 -100px;
|
|
left: 85px;
|
|
&:hover {
|
|
transition: all 0.3s ease 0s;
|
|
background-position: 0 0;
|
|
}
|
|
}
|
|
ul {
|
|
margin: 0 0 0 185px;
|
|
padding: 0;
|
|
list-style: none;
|
|
line-height: 0;
|
|
a {
|
|
display: inline-block;
|
|
color: #fff;
|
|
&:hover {
|
|
color: #f66;
|
|
}
|
|
}
|
|
li {
|
|
margin: 15px 10px;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
}
|
|
}
|
|
}
|
|
#userbar {
|
|
border-bottom: 1px solid #d1d1d1;
|
|
height: 50px;
|
|
line-height: 50px;
|
|
text-align: right;
|
|
display: inline-block;
|
|
width: 100%;
|
|
background: #eaeaea;
|
|
#userinfo {
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
text-shadow: 0 1px 1px #fff;
|
|
a {
|
|
color: #3F3F3F;
|
|
&:hover {
|
|
color: #f00;
|
|
}
|
|
}
|
|
img.avatar {
|
|
border: 1px solid #000;
|
|
border-radius: 16px;
|
|
vertical-align: middle;
|
|
height: 32px;
|
|
width: 32px;
|
|
&:hover {
|
|
box-shadow: 0 0 2px;
|
|
}
|
|
}
|
|
#userinfo-box {
|
|
display: inline-block;
|
|
text-align: right;
|
|
vertical-align: middle;
|
|
line-height: 1em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
img.user-avatar {
|
|
border: 1px solid #000;
|
|
border-radius: 4px;
|
|
height: 128px;
|
|
width: 128px;
|
|
}
|
|
|
|
img.avatar {
|
|
image-rendering: optimizeSpeed;
|
|
image-rendering:-moz-crisp-edges;
|
|
image-rendering:-o-crisp-edges;
|
|
image-rendering: optimize-contrast;
|
|
image-rendering: -webkit-optimize-contrast;
|
|
-ms-interpolation-mode: nearest-neighbor;
|
|
}
|
|
|
|
span.no-about {
|
|
color: #888;
|
|
font-style: italic;
|
|
}
|
|
|
|
#main-content {
|
|
padding: 30px 100px;
|
|
width: 100%;
|
|
margin: auto;
|
|
|
|
h1 {
|
|
font-weight: normal;
|
|
font-size: 200%;
|
|
margin: 0;
|
|
text-shadow: 0 1px #999;
|
|
}
|
|
}
|
|
|
|
#user-info {
|
|
.user-avatar {
|
|
margin-bottom: 30px;
|
|
}
|
|
}
|
|
|
|
.user-avatar {
|
|
display: block;
|
|
}
|
|
|
|
.post, .thread {
|
|
margin-bottom: 50px;
|
|
.post-content, .thread-content {
|
|
margin-top: 10px;
|
|
clear: both;
|
|
word-wrap: break-word;
|
|
overflow: hidden;
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
.post-title, .thread-title {
|
|
margin-bottom: 10px;
|
|
word-wrap: break-word;
|
|
h1 {
|
|
text-transform: capitalize;
|
|
}
|
|
h2 {
|
|
font-weight: normal;
|
|
text-transform: capitalize;
|
|
display: inline;
|
|
font-size: 200%;
|
|
}
|
|
.comment-counter {
|
|
float: right;
|
|
}
|
|
}
|
|
table {
|
|
tr, td, th {
|
|
border-collapse: collapse;
|
|
border: 1px solid #aaa;
|
|
}
|
|
tbody {
|
|
tr:nth-child(odd) {
|
|
background: #FFF;
|
|
}
|
|
tr:nth-child(even) {
|
|
background: #DDD
|
|
}
|
|
}
|
|
td, th {
|
|
padding: 0.3em 1em;
|
|
}
|
|
thead {
|
|
background: #3F3F3F;
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
pre {
|
|
border-radius: 2px;
|
|
position: relative;
|
|
background: #3F3F3F;
|
|
&:after {
|
|
color: #fff;
|
|
content: attr(lang); // show language on top right
|
|
font-style: italic;
|
|
margin: 10px;
|
|
position: absolute;
|
|
right: -10px;
|
|
top: 0;
|
|
opacity: 0;
|
|
transition: all 0.3s;
|
|
cursor: default;
|
|
}
|
|
&:hover:after {
|
|
opacity: 1;
|
|
right: 0;
|
|
}
|
|
code {
|
|
padding: 0;
|
|
box-shadow: 0 0 16px #222 inset;
|
|
background: #3F3F3F !important;
|
|
border: none;
|
|
border-radius: 3px;
|
|
}
|
|
}
|
|
|
|
code {
|
|
background: #A2A2A2;
|
|
padding: 2px 5px;
|
|
border-radius: 3px;
|
|
color: #000;
|
|
border: 1px solid #888;
|
|
display: inline-block;
|
|
line-height: 1em;
|
|
}
|
|
|
|
table, tr, td, th {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
blockquote {
|
|
background: #F9F9F9;
|
|
border-left: 3px solid #3F3F3F;
|
|
display: inline-block;
|
|
margin: 0;
|
|
padding: 2px 5px 2px 2px;
|
|
}
|
|
|
|
blockquote p {
|
|
display: inline;
|
|
}
|
|
|
|
|
|
.user {
|
|
display: inline-block;
|
|
a.role {
|
|
display: inline-block;
|
|
color: #fff !important;
|
|
font-weight: bold;
|
|
padding: 0 0.5em;
|
|
border-radius: 3px;
|
|
&.superadmin, &.admin {
|
|
background: #d22 !important;
|
|
}
|
|
&.mod {
|
|
background: #6af !important;
|
|
}
|
|
&.normal {
|
|
background: #aaa !important;
|
|
}
|
|
&.banned, &.disabled {
|
|
background: #ccc !important;
|
|
text-decoration: line-through !important;
|
|
color: #888 !important;
|
|
}
|
|
&:hover {
|
|
color: #ddd !important;
|
|
}
|
|
}
|
|
.donor {
|
|
background: #f60 !important;
|
|
border-radius: 3px;
|
|
color: #fff !important;
|
|
font-weight: bold !important;
|
|
margin-left: 3px;
|
|
padding: 0 0.5em;
|
|
display: inline-block;
|
|
}
|
|
.ign {
|
|
display: block;
|
|
color: #000;
|
|
font-style: italic;
|
|
}
|
|
}
|
|
|
|
#comments {
|
|
margin: 50px 0 0 40px;
|
|
}
|
|
|
|
#markdown-note {
|
|
margin: 0;
|
|
}
|
|
|
|
select {
|
|
text-indent: 0.01px;
|
|
text-overflow: "";
|
|
}
|
|
|
|
input , select, textarea {
|
|
margin: 4px;
|
|
vertical-align: middle;
|
|
&[type=submit] {
|
|
margin: 0;
|
|
}
|
|
option {
|
|
padding: 0.5em;
|
|
&:hover {
|
|
background: #0f0;
|
|
color: #00f;
|
|
}
|
|
&:nth-child(even) {
|
|
background: #eee;
|
|
}
|
|
&:nth-child(odd) {
|
|
background: #ccc;
|
|
}
|
|
}
|
|
}
|
|
|
|
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
|
|
background: #ddd;
|
|
border: none;
|
|
height: 3em;
|
|
margin: 4px 0 0 0;
|
|
padding: 0.5em 1em;
|
|
width: 100%;
|
|
}
|
|
|
|
input, select, textarea {
|
|
&.disabled, &[disabled] {
|
|
box-shadow: none;
|
|
background: #ddd;
|
|
}
|
|
}
|
|
|
|
textarea {
|
|
max-width: 100% !important;
|
|
height: 200px;
|
|
padding: 1em;
|
|
min-height: 3.5em;
|
|
&.comment {
|
|
height: 75px;
|
|
}
|
|
&.full-width {
|
|
width: 100%;
|
|
}
|
|
&.vertical {
|
|
resize: vertical;
|
|
}
|
|
&.horizontal {
|
|
resize: horizontal;
|
|
}
|
|
}
|
|
|
|
tr.special_edit {
|
|
background: #faa;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
box-shadow: 0 0 5px #faa;
|
|
}
|
|
|
|
.field_with_errors {
|
|
input, select, textarea {
|
|
border: 1px solid #f00;
|
|
box-shadow: 0 0 5px #faa inset;
|
|
border-bottom: none;
|
|
}
|
|
.validation-error, .error {
|
|
display: inline-block;
|
|
padding: 0 1em;
|
|
width: 100%;
|
|
background: #faa;
|
|
font-weight: bold;
|
|
border: 1px solid #f00;
|
|
border-top: none;
|
|
}
|
|
}
|
|
|
|
#form_labels {
|
|
text-align: right;
|
|
float: left;
|
|
label {
|
|
display: block;
|
|
padding: 0.5em;
|
|
}
|
|
}
|
|
#form_inputs {
|
|
input, select, textarea {
|
|
width: 400px;
|
|
}
|
|
}
|
|
|
|
.profile-action {
|
|
float: right;
|
|
}
|
|
|
|
.user-unconfirmed, .user-banned {
|
|
background: #AB0000;
|
|
color: white;
|
|
font-weight: bold;
|
|
padding: 4px 10px;
|
|
display: inline-block;
|
|
border-radius: 3px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.btn {
|
|
margin: 1px 1px 0 0;
|
|
padding: 6px;
|
|
cursor: default;
|
|
color: #fff;
|
|
border: none;
|
|
font-size: 12px;
|
|
line-height: normal;
|
|
display: inline-block;
|
|
&[disabled], &[disabled]:hover {
|
|
box-shadow: 0 0 5px #ddd inset;
|
|
color: #ddd;
|
|
}
|
|
&.blue {
|
|
background: #4096ee;
|
|
&[disabled] {
|
|
background: #96C1EE;
|
|
}
|
|
}
|
|
&.red {
|
|
background: #ee4040;
|
|
&[disabled] {
|
|
background: #EE8383;
|
|
}
|
|
}
|
|
&.left {
|
|
float: left;
|
|
}
|
|
&.right {
|
|
float: right;
|
|
}
|
|
&:hover {
|
|
box-shadow: 0 0 5px #095fb7 inset;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
#userlist {
|
|
.list-user {
|
|
margin: 15px 0;
|
|
a img {
|
|
vertical-align: middle;
|
|
border: 1px solid;
|
|
border-radius: 3px;
|
|
color: #222;
|
|
&:hover {
|
|
color: #AB0000;
|
|
}
|
|
}
|
|
.detail {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
margin-left: 3px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.editlink {
|
|
float: right;
|
|
opacity: 0;
|
|
margin-right: -10px;
|
|
transition: opacity 0.3s, margin 0.3s;
|
|
}
|
|
|
|
#blogpost_text {
|
|
width: 100%;
|
|
}
|
|
|
|
.clear {
|
|
clear: both;
|
|
display: block;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.item-group {
|
|
margin: 30px 0;
|
|
&.with-avatar {
|
|
margin-left: 70px;
|
|
.avatar {
|
|
float: left;
|
|
margin-left: -70px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 5px;
|
|
}
|
|
}
|
|
&:hover .editlink {
|
|
opacity: 1;
|
|
margin-right: 0;
|
|
}
|
|
.header {
|
|
background: #3F3F3F;
|
|
border-radius: 5px 5px 0 0;
|
|
padding: 0.5em;
|
|
border-bottom: 1px solid #ccc;
|
|
color: #fff;
|
|
text-shadow: 0 1px 1px #222;
|
|
a {
|
|
color: #fff;
|
|
&:hover {
|
|
color: #f66;
|
|
}
|
|
}
|
|
}
|
|
.items {
|
|
border: 1px solid #ddd;
|
|
border-top: none;
|
|
border-bottom: none;
|
|
.item {
|
|
display: block;
|
|
padding: 0.5em;
|
|
border-bottom: 1px solid #ddd;
|
|
&.locked:before {
|
|
content: "(locked) ";
|
|
color: #000;
|
|
}
|
|
&.sticky:before {
|
|
content: "(sticky) ";
|
|
color: #000;
|
|
}
|
|
&.lockedsticky:before {
|
|
content: "(locked sticky) ";
|
|
color: #000;
|
|
}
|
|
&.content {
|
|
.headline {
|
|
margin: 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
iframe.youtube {
|
|
border: none;
|
|
width: 640px;
|
|
max-width: 100%;
|
|
height: 360px;
|
|
}
|
|
|
|
mark {
|
|
background: #faa;
|
|
padding: 0 2px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.comment-counter {
|
|
float: right;
|
|
}
|
|
|
|
.red-alert {
|
|
color: #AB0000;
|
|
font-weight: bold;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
} |