This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/app/assets/stylesheets/style.css.scss
2014-04-28 03:01:33 +02:00

722 lines
12 KiB
SCSS

@keyframes wiggle {
0% {transform: rotate(-3deg);}
100% {transform: rotate(3deg);}
}
@-webkit-keyframes wiggle {
0% {transform: rotate(-3deg);}
100% {transform: rotate(3deg);}
}
@keyframes target {
0% {background-color: #ff8;}
}
@-webkit-keyframes target {
0% {background-color: #ff8;}
}
*, *: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;
font: 14px/1.6 'Oswald','Calibri','Arial','DejaVu Sans', 'Open Sans','Lucida Sans','Lucida Grande','Lucida Sans Unicode',sans-serif;
}
::selection {
color: #fff;
background: #363636;
}
::-moz-selection {
color: #fff;
background: #363636;
}
#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 0;
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: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
}
span.no-about {
color: #888;
font-style: italic;
}
#main-content {
padding: 30px 100px;
width: 1600px;
max-width: 100%;
margin: auto;
border-bottom: 1px solid #ddd;
box-shadow: 0 10px 10px #ddd;
h1 {
font-weight: normal;
font-size: 200%;
margin: 0;
text-shadow: 0 1px #999;
word-wrap: break-word;
}
}
#user-info {
.user-avatar {
margin-bottom: 30px;
}
}
.user-avatar {
display: block;
}
.post, .thread, .thread-reply {
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 blocks
code {
padding: 0;
box-shadow: 0 0 16px #222 inset;
background: #3f3f3f !important;
border: none;
border-radius: 3px;
}
}
// inline code
code {
background: #ddd;
padding: 2px;
border-radius: 3px;
color: #000;
border: 1px solid #aaa;
display: inline-block;
line-height: 1em;
}
table, tr, td, th {
border-collapse: collapse;
word-wrap: break-word;
}
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: 4px 0.5em;
border-radius: 3px;
text-shadow: none;
line-height: 1em;
margin: 1px 0;
&.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-help {
margin: 4px 0 -4px;
background: #ddd;
padding: 0.5em 1em;
border-bottom: 1px solid;
}
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;
padding: 0.5em 1em;
width: 100%;
}
input, select, textarea {
&.disabled, &[disabled] {
box-shadow: none;
background: #ddd;
}
}
textarea {
max-width: 100% !important;
height: 300px;
width: 100%;
padding: 1em;
min-height: 3.5em;
&.comment {
height: 75px;
}
&.full-width {
width: 100%;
}
&.vertical {
resize: vertical;
}
&.horizontal {
resize: horizontal;
}
}
tr.spacer {
height: 2em;
}
.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;
}
}
.profile-action {
float: right;
}
.user-unconfirmed, .user-banned {
background: #ab0000;
color: #fff;
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;
}
}
&.dark {
background: #363636;
}
&.donate {
padding-right: 30px;
&.paypal {
background-image: url(image_path('/assets/double_p.svg'));
background-repeat: no-repeat;
background-position: right 6px center;
}
}
&: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 {
margin: -7px 0 0 -77px;
border: 1px solid #ccc;
border-radius: 5px;
float: left;
}
}
&:hover .editlink {
opacity: 1;
margin-right: 0;
}
&:target {
animation: target 2.5s;
-webkit-animation: target 2.5s;
}
.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;
&:target {
animation: target 2.5s;
-webkit-animation: target 2.5s;
}
&.locked:before {
content: " ";
background: url(image_path("lock.png")) no-repeat center center;
margin-right: 5px;
display: inline-block;
width: 20px;
height: 20px;
vertical-align: middle;
}
&.sticky:before {
content: " ";
background: url(image_path("pin.png")) no-repeat center center;
margin-right: 5px;
display: inline-block;
width: 20px;
height: 20px;
vertical-align: middle;
}
&.lockedsticky:before {
content: " ";
background: url(image_path("lock-pin.png")) no-repeat center center;
margin: -7px 5px -3px 0;
display: inline-block;
width: 20px;
height: 30px;
vertical-align: middle;
}
&.content {
.headline {
margin: 0;
border-bottom: 1px solid #ddd;
}
overflow-x: auto;
}
}
}
}
.donation {
margin-bottom: 3em;
}
.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;
}
table {
width: 100%;
max-width: 100%;
table-layout: fixed;
}
img {
max-width: 100%;
}
.left {
float: left;
}
.right {
float: right;
}
#footer {
padding: 0 100px 30px;
width: 1600px;
max-width: 100%;
margin: auto;
text-align: center;
.note {
color: #888;
font-size: 12px;
font-style: italic;
margin-top: 5em;
}
}