1837 lines
29 KiB
SCSS
1837 lines
29 KiB
SCSS
// Table of Contents
|
|
//
|
|
// 01. Global styles
|
|
// 02. Header
|
|
// 03. Footer
|
|
// 04. Tags
|
|
// 05. Auth pages
|
|
// 06. Forms
|
|
// 07. Alerts
|
|
// 08. User account
|
|
// 09. Filters & search
|
|
// 10. Official levels
|
|
// 11. Pagination
|
|
// 12. Tables
|
|
// 13. Social
|
|
// 14. Pages
|
|
// 15. Verification
|
|
// 16. Comments
|
|
// 17. Flags
|
|
// 18. Activity
|
|
//
|
|
|
|
// 01. Global styles
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
*, html {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
background: white;
|
|
color: $text;
|
|
font-family: $font-sans;
|
|
font-size: $base-font-size;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
clear: both;
|
|
font-family: $font-sans;
|
|
font-weight: $font-bold;
|
|
}
|
|
|
|
h1 {
|
|
@include h1();
|
|
}
|
|
|
|
h2 {
|
|
@include h2();
|
|
}
|
|
|
|
h3 {
|
|
@include h3();
|
|
}
|
|
|
|
h4 {
|
|
@include h4();
|
|
}
|
|
|
|
h5 {
|
|
@include h5();
|
|
}
|
|
|
|
h6 {
|
|
@include h6();
|
|
font-weight: $font-normal;
|
|
}
|
|
|
|
p {
|
|
font-size: $base-font-size;
|
|
font-weight: $font-normal;
|
|
line-height: $base-line-height;
|
|
}
|
|
|
|
a {
|
|
color: $link;
|
|
|
|
&:hover, &:active {
|
|
color: $link-hover;
|
|
text-decoration: underline;
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: $link-hover;
|
|
}
|
|
}
|
|
|
|
&:focus {
|
|
outline: 0;
|
|
}
|
|
}
|
|
|
|
.button {
|
|
background: $brand;
|
|
font-family: $font-sans;
|
|
|
|
&:hover {
|
|
text-decoration: none !important;
|
|
}
|
|
}
|
|
|
|
.postfix.button {
|
|
padding: 0;
|
|
}
|
|
|
|
.clear {
|
|
clear: both;
|
|
}
|
|
|
|
.inline-block {
|
|
display: inline-block;
|
|
}
|
|
|
|
.row {
|
|
max-width: 1170px;
|
|
}
|
|
|
|
.row-full {
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.sidebar {
|
|
margin-top: $line-height;
|
|
margin-bottom: $line-height*2;
|
|
}
|
|
|
|
.sidebar-divider {
|
|
border-top: 1px solid $border;
|
|
margin-top: $line-height;
|
|
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.f-dropdown {
|
|
li a {
|
|
font-size: $small-font-size;
|
|
|
|
&:hover {
|
|
color: $link-hover;
|
|
}
|
|
}
|
|
|
|
li:hover, .f-dropdown li:focus {
|
|
background: white;
|
|
}
|
|
|
|
&.open {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.margin {
|
|
margin-top: $line-height;
|
|
margin-bottom: $line-height;
|
|
}
|
|
|
|
.margin-top {
|
|
margin-top: $line-height;
|
|
}
|
|
|
|
.margin-bottom {
|
|
margin-bottom: $line-height;
|
|
}
|
|
|
|
.back, .icon-angle-left {
|
|
@include back;
|
|
|
|
& + h1 {
|
|
clear:both;
|
|
}
|
|
}
|
|
|
|
.wrapper {
|
|
min-height: 100%;
|
|
margin: 0 auto (-$line-height)*12;
|
|
height: auto !important;
|
|
height: 100%;
|
|
}
|
|
|
|
.wrap {
|
|
background: white;
|
|
}
|
|
|
|
.footer, .push {
|
|
clear: both;
|
|
min-height: $line-height*12;
|
|
}
|
|
|
|
.ie-alert-box {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
|
|
a.close {
|
|
font-size: $h2-font-size;
|
|
top: 20%;
|
|
}
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
border: 0;
|
|
}
|
|
|
|
#drop-help.f-dropdown.content {
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
max-width: $line-height*15;
|
|
}
|
|
}
|
|
|
|
.sub-nav {
|
|
border-bottom: 1px solid $border;
|
|
|
|
dd.active {
|
|
border-bottom: 2px solid $brand;
|
|
color: $brand;
|
|
padding-bottom: $line-height/4;
|
|
}
|
|
}
|
|
|
|
// 02. Header
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
header {
|
|
background: $highlight;
|
|
border-bottom: 1px solid $border;
|
|
|
|
.home-page {
|
|
padding: $line-height 0;
|
|
}
|
|
|
|
.selected {
|
|
border-bottom: 1px solid white;
|
|
position: relative;
|
|
}
|
|
|
|
.locale {
|
|
float: none;
|
|
height: $line-height*1.5;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
float: left;
|
|
margin-left: $line-height/2;
|
|
}
|
|
}
|
|
|
|
.external-links {
|
|
float: none;
|
|
padding: rem-calc(6) 0;
|
|
text-align: center;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
.search-form {
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.postfix {
|
|
background: $border;
|
|
border: 1px solid #ccc;
|
|
border-left: 0;
|
|
color: $text;
|
|
height: rem-calc(37);
|
|
|
|
&:hover {
|
|
background: $brand;
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
input {
|
|
border-right: 0;
|
|
}
|
|
|
|
input, .button {
|
|
top: $line-height/4;
|
|
}
|
|
|
|
@media (max-width: $small-breakpoint) {
|
|
|
|
.postfix {
|
|
font-size: $h3-font-size;
|
|
padding-top: $line-height/6;
|
|
top: 0;
|
|
}
|
|
|
|
.column {
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.contain-to-grid {
|
|
background: $brand;
|
|
}
|
|
|
|
.top-bar {
|
|
background: $brand !important;
|
|
color: white;
|
|
min-height: $line-height*2;
|
|
max-width: 1170px !important;
|
|
padding: 0 $line-height/2;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
height: auto;
|
|
padding: 0;
|
|
}
|
|
|
|
.name {
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
margin-left: $line-height/2;
|
|
}
|
|
|
|
a {
|
|
@include logo;
|
|
line-height: $line-height*2;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
line-height: rem-calc(80); // Same as logo image height
|
|
}
|
|
}
|
|
}
|
|
|
|
&.expanded .title-area {
|
|
background: none;
|
|
}
|
|
|
|
@media screen\0 {
|
|
.title-area {
|
|
min-width: rem-calc(475);
|
|
}
|
|
}
|
|
|
|
.toggle-topbar {
|
|
|
|
a {
|
|
font-size: rem-calc(10);
|
|
}
|
|
|
|
&.menu-icon a {
|
|
padding: 0 $line-height;
|
|
|
|
span::after {
|
|
right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.expanded .toggle-topbar a {
|
|
color: white;
|
|
|
|
span::after {
|
|
box-shadow: 0 0 0 1px #FFFFFF, 0 7px 0 1px #FFFFFF, 0 14px 0 1px #FFFFFF;
|
|
}
|
|
}
|
|
}
|
|
|
|
.top-bar-section {
|
|
margin-right: $line-height;
|
|
width: 100%;
|
|
|
|
ul {
|
|
margin-left: $line-height/2;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
margin-left: 0;
|
|
}
|
|
|
|
li {
|
|
background: none;
|
|
|
|
&:not(.has-form) a:not(.button) {
|
|
background: none;
|
|
color: white;
|
|
|
|
&:hover {
|
|
background: none;
|
|
}
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
background: none;
|
|
line-height: rem-calc(80); // Same as logo image height
|
|
padding: 0 $line-height/2;
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
background: none;
|
|
color: white;
|
|
transition: text-decoration 275ms;
|
|
}
|
|
|
|
&.active:not(.has-form) a:not(.button) {
|
|
background: none;
|
|
height: $line-height*4;
|
|
line-height: $line-height*4;
|
|
}
|
|
}
|
|
}
|
|
|
|
ul li > a {
|
|
font-size: $base-font-size;
|
|
|
|
&.button {
|
|
border-radius: 0;
|
|
font-size: $base-font-size;
|
|
line-height: $line-height*1.5;
|
|
text-align: left;
|
|
background: none;
|
|
|
|
&:hover, &:focus {
|
|
background-color: #007095 !important;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
|
|
font-size: $small-font-size;
|
|
|
|
&.button {
|
|
background: white;
|
|
border-radius: rem-calc(3);
|
|
color: $brand;
|
|
font-size: $small-font-size;
|
|
line-height: rem-calc(15);
|
|
margin-top: rem-calc(16);
|
|
padding-left: rem-calc(15);
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.top-links {
|
|
background: $dark;
|
|
color: white;
|
|
font-size: $small-font-size;
|
|
padding-right: $line-height/2;
|
|
|
|
a {
|
|
color: white;
|
|
margin: 0 rem-calc(6);
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.subnavigation-background {
|
|
background: white;
|
|
height: rem-calc(50);
|
|
margin-top: rem-calc(-50);
|
|
}
|
|
|
|
.subnavigation {
|
|
clear: both;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
background: white;
|
|
}
|
|
|
|
a {
|
|
color: white;
|
|
display: inline-block;
|
|
line-height: $line-height*2;
|
|
position: relative;
|
|
text-align: left;
|
|
width: 100%;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
color: $text;
|
|
font-weight: bold;
|
|
margin-right: $line-height*1.5;
|
|
margin-right: 12px\9;
|
|
width: auto;
|
|
|
|
&:hover {
|
|
color: $link;
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
color: white;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
border-bottom: 2px solid $brand;
|
|
color: $brand;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.submenu {
|
|
background: white;
|
|
border-bottom: 1px solid $border;
|
|
clear: both;
|
|
margin: $line-height 0 $line-height/2;
|
|
|
|
a {
|
|
color: $text;
|
|
display: inline-block;
|
|
font-weight: bold;
|
|
margin-right: $line-height/2;
|
|
position: relative;
|
|
text-align: left;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
margin-right: $line-height*1.5;
|
|
}
|
|
|
|
&:hover {
|
|
color: $link;
|
|
}
|
|
|
|
&.active {
|
|
border-bottom: 2px solid $brand;
|
|
color: $brand;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 03. Footer
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
footer {
|
|
color: $footer-color;
|
|
|
|
.logo a {
|
|
font-family: $font-logo;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
p {
|
|
font-size: $small-font-size;
|
|
|
|
.info a {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
a, a:active, a:focus {
|
|
color: $footer-link;
|
|
|
|
&:hover {
|
|
color: $footer-color;
|
|
}
|
|
}
|
|
|
|
.footer-sections {
|
|
padding-left: 0;
|
|
}
|
|
|
|
h2 a {
|
|
|
|
border-bottom: 1px solid $footer-border;
|
|
display: block;
|
|
font-size: $h3-font-size;
|
|
line-height: $h3-line-height;
|
|
padding-bottom: $line-height/4;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.footer {
|
|
background: $footer-bg;
|
|
border-top: 6px solid $brand;
|
|
padding-top: $line-height;
|
|
}
|
|
|
|
.subfooter {
|
|
border-top: 1px solid $footer-border;
|
|
padding-top: $line-height/2;
|
|
}
|
|
|
|
// 04. Tags
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.tags, .tag-cloud {
|
|
|
|
a {
|
|
background: #ececec;
|
|
border-radius: rem-calc(6);
|
|
color: $text;
|
|
display: inline-block;
|
|
font-size: $small-font-size;
|
|
margin-bottom: $line-height/3;
|
|
padding: $line-height/4 $line-height/3;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
background: #e0e0e0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.tag-cloud {
|
|
|
|
h3 {
|
|
border-top: 2px solid $brand;
|
|
display: inline-block;
|
|
font-family: $font-family-sans-serif;
|
|
font-size: rem-calc(16);
|
|
margin: -1px 0 rem-calc(12);
|
|
padding-top: $line-height/4;
|
|
text-transform: uppercase;
|
|
}
|
|
}
|
|
|
|
// 05. Auth pages
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.auth-page {
|
|
background: $brand image-url("auth_bg.jpg");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
|
|
h1:not(.logo) {
|
|
@include logo;
|
|
|
|
a {
|
|
color: white;
|
|
display: block;
|
|
line-height: rem-calc(80); // Same as logo image height
|
|
text-align: center;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
display: inline-block;
|
|
text-align: left;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.auth {
|
|
|
|
.back, .icon-angle-left {
|
|
@include back;
|
|
}
|
|
|
|
p, a {
|
|
font-size: $small-font-size;
|
|
}
|
|
|
|
.panel {
|
|
background: white;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
// 06. Forms
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
form.locale-form {
|
|
display: inline-block;
|
|
position: relative;
|
|
|
|
select {
|
|
background-image: image-url("language_select.png");
|
|
|
|
option {
|
|
background: white;
|
|
color: $text;
|
|
border: 0;
|
|
outline: none;
|
|
}
|
|
|
|
&.locale-switcher {
|
|
background-color: transparent;
|
|
border: 0;
|
|
color: white;
|
|
margin-bottom: 0;
|
|
outline: none;
|
|
padding-left: rem-calc(3);
|
|
padding-right: $line-height;
|
|
}
|
|
}
|
|
}
|
|
|
|
form {
|
|
font-family: $font-sans;
|
|
|
|
label {
|
|
font-size: $base-font-size;
|
|
font-weight: bold;
|
|
line-height: $line-height;
|
|
}
|
|
|
|
input, textarea {
|
|
height: 48px\9;
|
|
line-height: 48px\9;
|
|
margin-bottom: 24px\9;
|
|
width: 100%\9;
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
height: auto\9;
|
|
line-height: inherit\9;
|
|
width: auto\9;
|
|
}
|
|
|
|
input[type]:not([type=submit]):not([type=file]):not([type=checkbox]) {
|
|
background: $input-bg;
|
|
height: $line-height*2;
|
|
margin-bottom: rem-calc(16);
|
|
|
|
&.search-form {
|
|
height: rem-calc(37);
|
|
padding: 0 rem-calc(6);
|
|
}
|
|
|
|
&.error {
|
|
margin-bottom: rem-calc(1);
|
|
}
|
|
}
|
|
|
|
input[type="checkbox"] + label,
|
|
input[type="radio"] + label {
|
|
margin-right: 0;
|
|
}
|
|
|
|
input[type=file] {
|
|
margin: $line-height/2 0 $line-height/2 $line-height/4;
|
|
}
|
|
|
|
.note, .note-marked {
|
|
display: block;
|
|
font-size: rem-calc(13);
|
|
margin-bottom: $line-height/2;
|
|
}
|
|
|
|
.note-marked {
|
|
background: yellow;
|
|
display: inline-block;
|
|
|
|
em {
|
|
background: white;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.ckeditor {
|
|
min-height: $line-height*13;
|
|
}
|
|
|
|
.checkbox {
|
|
display: inline-block;
|
|
font-weight: normal;
|
|
line-height: $line-height;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.captcha {
|
|
border: 0;
|
|
padding: $line-height/2 0;
|
|
|
|
input {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
}
|
|
|
|
.button.margin-top {
|
|
margin-top: $line-height;
|
|
}
|
|
}
|
|
|
|
.captcha {
|
|
|
|
label {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
// 07. Alerts
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.alert-box {
|
|
font-family: $font-sans;
|
|
font-size: $small-font-size;
|
|
|
|
&.success {
|
|
background-color: $success-bg;
|
|
border-color: $success-border;
|
|
color: $success-color;
|
|
}
|
|
|
|
&.info {
|
|
background-color: $info-bg;
|
|
border-color: $info-border;
|
|
color: $info-color;
|
|
}
|
|
|
|
&.warning {
|
|
background-color: $warning-bg;
|
|
border-color: $warning-border;
|
|
color: $warning-color;
|
|
|
|
a {
|
|
color: $warning-color;
|
|
font-weight: bold;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
&.alert {
|
|
background-color: $alert-bg;
|
|
border-color: $alert-border;
|
|
color: $alert-color;
|
|
}
|
|
|
|
.close {
|
|
text-decoration: none !important;
|
|
}
|
|
}
|
|
|
|
span.error, small.error {
|
|
background: $alert-bg;
|
|
color: $alert-color;
|
|
}
|
|
|
|
.error small.error {
|
|
background: $alert-bg;
|
|
color: $alert-color;
|
|
display: inline-block;
|
|
margin: 0 $line-height/4;
|
|
}
|
|
|
|
label.error, label.error a {
|
|
color: $alert-color;
|
|
}
|
|
|
|
.alert-messages {
|
|
background-color: white;
|
|
padding-top: $line-height;
|
|
}
|
|
|
|
// 08. User account
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.account {
|
|
background: white;
|
|
padding-top: $line-height;
|
|
|
|
select {
|
|
height: $line-height*2;
|
|
margin-right: $line-height/2;
|
|
}
|
|
|
|
.verify-account {
|
|
padding-right: $line-height/2;
|
|
}
|
|
|
|
.final-votes-info {
|
|
background: $warning-bg;
|
|
border: 1px solid $warning-border;
|
|
color: $warning-color;
|
|
margin-top: $line-height;
|
|
padding: $line-height/2;
|
|
|
|
ul li {
|
|
margin: $line-height/2 0;
|
|
}
|
|
|
|
.icon-box {
|
|
color: #D4A26D;
|
|
font-size: rem-calc(120);
|
|
line-height: rem-calc(120);
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
}
|
|
|
|
img.avatar, img.admin-avatar, img.moderator-avatar, img.initialjs-avatar {
|
|
border-radius: rem-calc(1000);
|
|
position: relative;
|
|
}
|
|
|
|
.author-deleted, .user-deleted {
|
|
background-color: rgba(255,255,255,.5);
|
|
color: rgba(0,0,0,.4);
|
|
font-size: rem-calc(40);
|
|
left: 11px;
|
|
position: absolute;
|
|
top: 72px;
|
|
}
|
|
|
|
.user-deleted {
|
|
top: -9px;
|
|
}
|
|
|
|
.user-permissions {
|
|
|
|
p {
|
|
span {
|
|
color: $text-medium;
|
|
font-size: rem-calc(12);
|
|
}
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
margin-bottom: 0;
|
|
margin-left: 0;
|
|
|
|
li {
|
|
font-size: $small-font-size;
|
|
margin-bottom: $line-height/2;
|
|
|
|
span {
|
|
color: $text-medium;
|
|
font-size: rem-calc(12);
|
|
}
|
|
|
|
.icon-check {
|
|
color: $check;
|
|
}
|
|
|
|
.icon-x {
|
|
color: $delete;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.notifications {
|
|
position: relative;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
[class^="icon-"] {
|
|
font-size: $h4-font-size;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.icon-circle {
|
|
color: #ecf00b;
|
|
font-size: $tiny-font-size;
|
|
position: absolute;
|
|
right: 4px;
|
|
top: -6px;
|
|
}
|
|
}
|
|
|
|
.notifications-list:before {
|
|
background: $border;
|
|
content: '';
|
|
height: 100%;
|
|
left: 28px;
|
|
position: absolute;
|
|
top: 84px;
|
|
width: 2px;
|
|
}
|
|
|
|
.notification {
|
|
display: block;
|
|
padding: $line-height/2 0 $line-height/2 $line-height*1.5;
|
|
position: relative;
|
|
|
|
&:hover {
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
p:not(.time) {
|
|
color: $link;
|
|
}
|
|
|
|
&:before {
|
|
content: "\43";
|
|
}
|
|
}
|
|
|
|
&:before {
|
|
background: white;
|
|
color: $brand;
|
|
content: "\4d";
|
|
font-family: "icons" !important;
|
|
left: 6px;
|
|
position: absolute;
|
|
}
|
|
|
|
p {
|
|
color: $text;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.time {
|
|
font-size: $small-font-size;
|
|
color: $text-medium;
|
|
}
|
|
}
|
|
|
|
// 09. Filters & search
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.filters, .search-results {
|
|
|
|
h2 {
|
|
display: inline-block;
|
|
font-size: rem-calc(24);
|
|
margin: $line-height/2 0;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
margin: $line-height 0;
|
|
}
|
|
}
|
|
|
|
select {
|
|
background-color: #DEE0E2;
|
|
height: auto;
|
|
margin-bottom: $line-height;
|
|
min-width: $line-height*7.5;
|
|
outline: 0;
|
|
padding: $line-height/2;
|
|
width: auto;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
margin: 0 0 $line-height $line-height/2;
|
|
}
|
|
|
|
optgroup {
|
|
font-size: $small-font-size;
|
|
}
|
|
|
|
option {
|
|
|
|
&:after {
|
|
content: "a";
|
|
font-family: "icons";
|
|
}
|
|
}
|
|
}
|
|
|
|
.debates-order {
|
|
text-align: left;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
text-align: right;
|
|
}
|
|
|
|
select {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-form {
|
|
|
|
h3 {
|
|
border-top: 1px solid $votes-border;
|
|
display: inline-block;
|
|
font-family: $font-family-sans-serif;
|
|
font-size: rem-calc(16);
|
|
margin: -1px 0 $line-height/2;
|
|
padding-top: $line-height/4;
|
|
text-transform: uppercase;
|
|
}
|
|
}
|
|
|
|
// 10. Officials levels
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
[class^="level-"] {
|
|
color: white;
|
|
}
|
|
|
|
.is-author {
|
|
background: $author;
|
|
}
|
|
|
|
.is-association {
|
|
background: $association;
|
|
}
|
|
|
|
.is-deleted {
|
|
background: $deleted;
|
|
}
|
|
|
|
.level-1 {
|
|
background: $level-1;
|
|
}
|
|
|
|
.level-2 {
|
|
background: $level-2;
|
|
}
|
|
|
|
.level-3 {
|
|
background: $level-3;
|
|
}
|
|
|
|
.level-4 {
|
|
background: $level-4;
|
|
}
|
|
|
|
.level-5 {
|
|
background: $level-5;
|
|
}
|
|
|
|
// 11. Pagination
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
ul.pagination {
|
|
margin-top: $line-height;
|
|
|
|
li {
|
|
color: $text-medium;
|
|
}
|
|
}
|
|
|
|
// 12. Tables
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
width: 100%;
|
|
|
|
tr {
|
|
|
|
td {
|
|
line-height: $line-height;
|
|
padding: $line-height/2 $line-height/4;
|
|
}
|
|
|
|
&:nth-child(odd) {
|
|
background: #F0F2F6;
|
|
}
|
|
}
|
|
|
|
.button {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
// 13. Social
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.button.button-twitter {
|
|
background: #45B0E3;
|
|
|
|
&:before {
|
|
background: #40A2D1;
|
|
content: "f";
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 0;
|
|
line-height: $line-height*2;
|
|
padding: 0 rem-calc(20);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
}
|
|
|
|
.social-share-button-twitter {
|
|
background: #45B0E3;
|
|
color: white;
|
|
height: $line-height*2;
|
|
position: relative;
|
|
width: $line-height*2;
|
|
|
|
&:before {
|
|
content: "f";
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 50%;
|
|
line-height: $line-height*2;
|
|
margin-left: rem-calc(-11);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
&:hover {
|
|
background: white;
|
|
color: #40A2D1;
|
|
}
|
|
}
|
|
|
|
.button.button-facebook {
|
|
background: #3B5998;
|
|
|
|
&:before {
|
|
background: #354F88;
|
|
content: "A";
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 0;
|
|
line-height: $line-height*2;
|
|
padding: 0 rem-calc(20);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
}
|
|
|
|
.social-share-button-facebook {
|
|
background: #3B5998;
|
|
color: white;
|
|
height: rem-calc(48);
|
|
position: relative;
|
|
width: rem-calc(48);
|
|
|
|
&:before {
|
|
content: "A";
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 50%;
|
|
line-height: $line-height*2;
|
|
margin-left: rem-calc(-11);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
&:hover {
|
|
background: white;
|
|
color: #354F88;
|
|
}
|
|
}
|
|
|
|
.button.button-google {
|
|
background: #DE4C34;
|
|
|
|
&:before {
|
|
background: #CE3E26;
|
|
content: "B";
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 0;
|
|
line-height: $line-height*2;
|
|
padding: 0 rem-calc(20);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
}
|
|
|
|
.social-share-button-google_plus {
|
|
background: #DE4C34;
|
|
color: white;
|
|
height: $line-height*2;
|
|
position: relative;
|
|
width: $line-height*2;
|
|
|
|
&:before {
|
|
content: "B";
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 50%;
|
|
line-height: $line-height*2;
|
|
margin-left: rem-calc(-11);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
&:hover {
|
|
background: white;
|
|
color: #CE3E26;
|
|
}
|
|
}
|
|
|
|
.social {
|
|
|
|
a {
|
|
font-size: $h3-font-size;
|
|
margin: 0 $line-height/2;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: $brand;
|
|
}
|
|
}
|
|
}
|
|
|
|
.share-supported {
|
|
|
|
.social-share-button {
|
|
display: inline-block;
|
|
}
|
|
|
|
.social-share-button-twitter {
|
|
background: none;
|
|
color: white;
|
|
height: $line-height;
|
|
position: relative;
|
|
width: $line-height*2;
|
|
|
|
&:before {
|
|
content: "f";
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 50%;
|
|
line-height: $line-height*2;
|
|
margin-left: rem-calc(-11);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
&:hover {
|
|
color: #40A2D1;
|
|
}
|
|
}
|
|
|
|
.social-share-button-facebook {
|
|
background: none;
|
|
color: white;
|
|
height: rem-calc(24);
|
|
position: relative;
|
|
width: rem-calc(48);
|
|
|
|
&:before {
|
|
content: "A";
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 50%;
|
|
line-height: $line-height*2;
|
|
margin-left: rem-calc(-11);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
&:hover {
|
|
color: #354F88;
|
|
}
|
|
}
|
|
|
|
.social-share-button-google_plus {
|
|
background: none;
|
|
color: white;
|
|
height: rem-calc(24);
|
|
position: relative;
|
|
width: rem-calc(48);
|
|
|
|
&:before {
|
|
content: "B";
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 50%;
|
|
line-height: $line-height*2;
|
|
margin-left: rem-calc(-11);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
&:hover {
|
|
color: #CE3E26;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 14. Pages
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.page {
|
|
padding-bottom: $line-height*2;
|
|
|
|
.menu {
|
|
margin-top: $line-height;
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
margin-left: 0;
|
|
|
|
& ul {
|
|
margin-left: $line-height/2;
|
|
}
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
font-size: rem-calc(13);
|
|
margin-bottom: $line-height/2;
|
|
}
|
|
}
|
|
|
|
.icon-check {
|
|
color: $check;
|
|
}
|
|
|
|
.text {
|
|
margin-top: $line-height;
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
text-align: left;
|
|
}
|
|
|
|
ul, ol {
|
|
margin-left: $line-height/2;
|
|
|
|
li {
|
|
font-size: rem-calc(15);
|
|
line-height: rem-calc(30);
|
|
margin-bottom: $line-height/2;
|
|
}
|
|
}
|
|
|
|
p {
|
|
font-size: rem-calc(15);
|
|
line-height: rem-calc(30);
|
|
}
|
|
}
|
|
|
|
.more-information {
|
|
margin-top: $line-height;
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
margin-left: 0;
|
|
|
|
li {
|
|
border-bottom: 1px solid $border;
|
|
font-size: rem-calc(16);
|
|
font-weight: bold;
|
|
padding-bottom: $line-height/2;
|
|
position: relative;
|
|
text-align: left;
|
|
|
|
span {
|
|
color: $text-medium;
|
|
display: block;
|
|
font-size: $small-font-size;
|
|
font-weight: normal;
|
|
}
|
|
|
|
&:after {
|
|
content: none;
|
|
color: $text-light;
|
|
font-family: "icons" !important;
|
|
position: absolute;
|
|
right: 0;
|
|
top: rem-calc(12);
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
content: 'c';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 15. Verification
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.verification {
|
|
min-height: $line-height*25;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
.left + .left {
|
|
margin-left: $line-height/2;
|
|
}
|
|
}
|
|
|
|
.date {
|
|
|
|
select {
|
|
float: left;
|
|
width: 30%;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
width: 25%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.progress {
|
|
height: $line-height*3;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
height: $line-height*2;
|
|
}
|
|
|
|
&.success .meter {
|
|
float: none;
|
|
}
|
|
}
|
|
|
|
.verification-step {
|
|
font-family: $font-sans;
|
|
font-weight: bold;
|
|
line-height: rem-calc(20);
|
|
padding-top: $line-height/4;
|
|
text-transform: uppercase;
|
|
vertical-align: top;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
line-height: $line-height*2;
|
|
padding: 0;
|
|
}
|
|
|
|
.number {
|
|
display: block;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
background-color: white;
|
|
border-radius: rem-calc(30);
|
|
color: #43AC6A;
|
|
display: inline-block;
|
|
height: rem-calc(30);
|
|
line-height: rem-calc(30);
|
|
vertical-align: middle;
|
|
width: rem-calc(30);
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
color: white;
|
|
}
|
|
|
|
&.completed {
|
|
color: rgba(255,255,255,.5);
|
|
|
|
.number {
|
|
opacity: .5;
|
|
}
|
|
}
|
|
}
|
|
|
|
.send-letter {
|
|
background: none;
|
|
color: $link;
|
|
|
|
&:hover {
|
|
color: $link-hover;
|
|
}
|
|
}
|
|
|
|
.button + form {
|
|
display: inline-block;
|
|
margin-left: $line-height/2;
|
|
}
|
|
|
|
.verification-list {
|
|
font-size: rem-calc(13);
|
|
list-style-type: none;
|
|
margin-left: 0;
|
|
|
|
span {
|
|
display: inline-block;
|
|
min-width: $line-height*12;
|
|
}
|
|
}
|
|
}
|
|
|
|
.verify-account {
|
|
padding-right: $line-height/2;
|
|
|
|
.already-verified {
|
|
color: $check;
|
|
line-height: $line-height*2;
|
|
|
|
.icon-check {
|
|
font-size: rem-calc(24);
|
|
line-height: rem-calc(45);
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
|
|
.verify {
|
|
margin-bottom: $line-height*2;
|
|
margin-top: $line-height;
|
|
|
|
h1 {
|
|
color: $check;
|
|
|
|
.icon-check {
|
|
line-height: rem-calc(30);
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
.letter-divider {
|
|
border-top: 1px solid #DDDDDD;
|
|
clear: both;
|
|
height: 0;
|
|
margin: rem-calc(24) 0;
|
|
position: relative;
|
|
|
|
.icon-letter {
|
|
background: white;
|
|
color: $info-color;
|
|
font-size: rem-calc(24);
|
|
margin-left: -27px;
|
|
padding: 0 $line-height/2;
|
|
position: absolute;
|
|
top: -12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 16. Comments
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.comments {
|
|
background: $white;
|
|
background-repeat: repeat-x;
|
|
padding-top: $line-height;
|
|
padding-bottom: $line-height*4;
|
|
|
|
h2 {
|
|
margin: 0;
|
|
font-weight: bold;
|
|
|
|
span {
|
|
font-size: rem-calc(18);
|
|
font-weight: normal;
|
|
opacity: .8;
|
|
}
|
|
}
|
|
|
|
.comment {
|
|
margin: $line-height/4 0;
|
|
|
|
p {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.comment-votes {
|
|
color: $text-medium;
|
|
font-family: $font-sans;
|
|
font-size: $small-font-size;
|
|
line-height: $line-height;
|
|
|
|
a {
|
|
color: $text-light;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
|
|
&:hover {
|
|
color: $text-medium;
|
|
}
|
|
}
|
|
|
|
[class^="icon-"] {
|
|
font-size: rem-calc(20);
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
.comment-body {
|
|
margin-left: rem-calc(42);
|
|
|
|
.reply {
|
|
background: white;
|
|
border: 1px solid $border;
|
|
border-left: 0;
|
|
border-right: 0;
|
|
font-size: $small-font-size;
|
|
margin: rem-calc(6) 0;
|
|
padding: rem-calc(6);
|
|
|
|
.divider {
|
|
color: $text-light;
|
|
}
|
|
}
|
|
|
|
.comment-user {
|
|
margin-top: $line-height/4;
|
|
padding: $line-height/4 0;
|
|
overflow: hidden;
|
|
|
|
@each $n in ("1", "2", "3","4", "5") {
|
|
&.level-#{$n} {
|
|
@if $n == "5" {
|
|
background: $comment-level-5;
|
|
padding: $line-height/4 $line-height/2;
|
|
}
|
|
@elseif $n == "1" {
|
|
background: none;
|
|
padding: $line-height/4 $line-height/2;
|
|
}
|
|
@else {
|
|
background: $comment-official;
|
|
padding: $line-height/4 $line-height/2;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.is-author {
|
|
background: $comment-author;
|
|
padding: $line-height/4 $line-height/2;
|
|
}
|
|
|
|
&.is-admin, &.is-moderator {
|
|
background: $comment-admin;
|
|
padding: $line-height/4 $line-height/2;
|
|
}
|
|
|
|
&.level-5 {
|
|
background: $comment-level-5;
|
|
padding: $line-height/4 $line-height/2;
|
|
}
|
|
}
|
|
}
|
|
|
|
.is-deleted {
|
|
background: $deleted;
|
|
margin-left: rem-calc(42);
|
|
padding: $line-height/4 $line-height/2;
|
|
}
|
|
|
|
.comment-children {
|
|
border-left: 1px dashed $border;
|
|
margin-left: rem-calc(42);
|
|
padding-left: $line-height/4;
|
|
|
|
@media only screen and (max-width: 40em) {
|
|
margin-left: rem-calc(16);
|
|
}
|
|
}
|
|
|
|
.comment-info {
|
|
color: $text-medium;
|
|
font-family: $font-sans;
|
|
font-size: $small-font-size;
|
|
margin-top: $line-height/4;
|
|
vertical-align: middle;
|
|
|
|
span.user-name {
|
|
color: $text;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.faded {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.wide-order-selector {
|
|
float: none;
|
|
margin-top: 0;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
float: right;
|
|
margin-top: rem-calc(-24);
|
|
}
|
|
|
|
label {
|
|
padding-right: $line-height/2;
|
|
float: none;
|
|
|
|
@media (min-width: $small-breakpoint) {
|
|
float: right;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 17. Flags
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.flag-content {
|
|
|
|
.button {
|
|
background: none;
|
|
margin-bottom: 0;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.flag-disable, .flag-active {
|
|
line-height: $line-height;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.flag-disable {
|
|
color: $text-medium;
|
|
}
|
|
|
|
.flag-active {
|
|
color: $delete;
|
|
}
|
|
|
|
// 18. Activity
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
.activity {
|
|
margin-bottom: $line-height*2;
|
|
|
|
table {
|
|
border: 0;
|
|
|
|
td {
|
|
padding-left: $line-height*1.5;
|
|
position: relative;
|
|
|
|
&:before {
|
|
color: $brand;
|
|
font-family: "icons" !important;
|
|
font-size: rem-calc(24);
|
|
left: 4px;
|
|
position: absolute;
|
|
}
|
|
}
|
|
|
|
&.activity-comments td:before {
|
|
content: "e";
|
|
top: 18px;
|
|
}
|
|
|
|
&.activity-debates td:before {
|
|
content: "i";
|
|
top: 14px;
|
|
}
|
|
|
|
&.activity-proposals td:before {
|
|
content: "h";
|
|
top: 18px;
|
|
}
|
|
}
|
|
}
|