You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

609 lines
8.7 KiB

10 years ago
@import "_mixins";
10 years ago
.page.settings {
10 years ago
top: $header_height;
display: flex;
@include media-phablet {
display: block;
}
.navigation {
display: flex;
justify-content: space-between;
.advanced_toggle {
display: flex;
align-items: center;
10 years ago
margin-right: $padding;
10 years ago
span {
margin-right: $padding / 2;
}
}
}
10 years ago
.tab_content {
display: none;
10 years ago
&.active {
display: block;
}
10 years ago
}
10 years ago
.tabs {
margin: 0 $padding;
list-style: none;
font-size: 24px;
ul {
list-style: none;
font-size: initial;
}
li {
a {
color: rgba(0,0,0,.5);
}
&.active {
a {
color: #000;
}
}
}
}
form.containers {
margin: 0 $padding 0 0;
flex: 1 1 auto;
10 years ago
}
10 years ago
fieldset {
border: 0;
margin-bottom: $padding;
10 years ago
position: relative;
10 years ago
h2 {
display: flex;
align-items: baseline;
10 years ago
padding: $padding $padding $padding/2;
10 years ago
.icon {
margin-right: $padding/2;
img {
vertical-align: middle;
position: relative;
top: -1px;
}
}
10 years ago
.hint {
margin-left: $padding/2;
font-size: 1rem;
10 years ago
a {
font-weight: 400;
color: $primary_color;
text-decoration: underline;
}
14 years ago
}
}
10 years ago
&:first-child {
h2 {
padding-top: 0;
}
}
10 years ago
.ctrlHolder {
padding: $padding/3 $padding;
border-bottom: 1px solid $theme_off;
display: flex;
10 years ago
flex-flow: row nowrap;
10 years ago
align-items: center;
10 years ago
@include media-phablet {
flex-flow: row wrap;
}
10 years ago
&:last-child {
border-bottom: 0;
12 years ago
}
10 years ago
label {
display: inline-block;
10 years ago
min-width: 150px;
}
10 years ago
input, textarea, select {
min-width: 200px;
10 years ago
&[type=checkbox] {
width: auto;
min-width: 0;
}
10 years ago
}
10 years ago
.select_wrapper {
position: relative;
display: flex;
align-items: center;
10 years ago
select {
cursor: pointer;
10 years ago
-moz-appearance: none;
}
10 years ago
&:before {
pointer-events: none;
position: absolute;
right: $padding/2;
height: 100%;
line-height: 0;
margin-top: -3px;
}
}
10 years ago
.formHint {
opacity: .8;
margin-left: $padding;
10 years ago
a {
font-weight: 400;
color: $primary_color;
text-decoration: underline;
}
10 years ago
@include media-phablet {
min-width: 100%;
margin-left: 0;
}
12 years ago
}
10 years ago
&.test_button {
a {
margin: 0;
}
.success {
margin-left: $padding / 2;
}
}
}
10 years ago
&.disabled {
10 years ago
.ctrlHolder {
display: none;
}
10 years ago
> .ctrlHolder:first-child {
display: block;
}
}
&.enabler {
display: block;
> :first-child {
position: absolute;
right: 0;
top: 0;
border: 0;
padding: 0;
~ h2 {
margin-right: 66px + $padding;
}
}
}
}
10 years ago
fieldset.advanced,
fieldset .ctrlHolder.advanced {
display: none;
color: $primary_color;
}
10 years ago
&.show_advanced {
fieldset.advanced,
10 years ago
fieldset:not(.disabled) > .ctrlHolder.advanced {
10 years ago
display: flex;
}
}
10 years ago
.switch {
$switch_active: $primary_color;
display: inline-block;
background: $switch_active;
border: 1px solid $switch_active;
box-shadow: inset 0 0 0 1px #FFF;
10 years ago
height: 22px;
10 years ago
width: 66px;
min-width: 0 !important;
padding: 2px;
transition: all 250ms;
cursor: pointer;
10 years ago
border-radius: 3px;
10 years ago
input {
display: none;
}
10 years ago
.toggle {
background: #FFF;
height: 100%;
width: 40%;
transition: transform 250ms;
transform: translateX(150%);
10 years ago
border-radius: 2px;
10 years ago
}
10 years ago
}
10 years ago
fieldset.enabler.disabled .switch,
&:not(.show_advanced) .advanced_toggle .switch {
background: $theme_off;
border-color: $theme_off;
10 years ago
.toggle {
transform: translateX(0);
}
10 years ago
&:hover {
background: darken($theme_off, 20);
border-color: darken($theme_off, 20);
}
}
10 years ago
/** Options list **/
.option_list {
10 years ago
background: #FFF;
10 years ago
fieldset {
10 years ago
position: relative;
10 years ago
h2 {
.group_label {
min-width: 100px;
}
}
&.disabled h2 {
padding: 0 $padding;
}
10 years ago
}
fieldset:after {
position: absolute;
10 years ago
content: '';
display: block;
width: 100%;
border-bottom: 1px solid $theme_off;
10 years ago
bottom: -$padding/2;
10 years ago
&:last-child {
border-bottom: 0;
}
10 years ago
}
10 years ago
h2 {
font-size: 1em;
font-weight: 400;
10 years ago
.hint {
font-weight: 300;
}
}
}
10 years ago
.combined_table {
margin-top: $padding;
.head {
margin: 0 ($padding/2) 0 ($padding+26px);
font-size: .8em;
abbr {
display: inline-block;
font-weight: bold;
border-bottom: 1px dotted #fff;
line-height: 140%;
cursor: help;
margin-right: $padding/2;
text-align: center;
&:first-child {
display: none;
}
}
}
input {
min-width: 0 !important;
display: inline-block;
margin-right: $padding/2;
}
.use { }
.host, .automation_ids, .automation_urls { width: 200px; }
.api_key, .pass_key { width: 150px; }
.name { width: 150px; }
.extra_score, .seed_ratio, .seed_time { width: 70px; text-align: center; }
.custom_tag { width: 120px; text-align: center; }
.ctrlHolder {
margin: 0 0 0 $padding;
padding-left: 0;
.delete {
display: none;
font-size: 20px;
width: 22px;
height: 22px;
line-height: 20px;
text-align: center;
vertical-align: middle;
}
&:hover .delete {
display: inline-block;
}
&.is_empty .delete,
&.is_empty input[type=checkbox] {
visibility: hidden;
}
}
}
.disabled .combined_table { display: none; }
.tab_about {
.usenet {
padding: $padding $padding 0;
font-size: 1.5em;
line-height: 1.3em;
a {
color: $primary_color;
padding: 0 5px;
}
ul {
list-style: none;
float: left;
width: 50%;
margin: 10px 0;
padding: 0;
}
li {
font-size: .8em;
&:before {
margin-right: 10px;
}
}
}
.donate {
float: left;
width: 42%;
text-align: center;
font-size: 17px;
padding: 0 0 0 4%;
margin: 20px 0 0;
border-left: 1px solid rgba(0,0,0,.2);
form {
padding: 10px 0 0;
}
}
.info {
padding: $padding;
margin: 0;
overflow: hidden;
dt {
clear: both;
float: left;
width: 17%;
font-weight: bold;
}
dd {
float: right;
width: 80%;
padding: 0;
margin: 0;
font-style: italic;
&.version { cursor: pointer; }
}
}
.group_actions {
> div {
padding: $padding;
text-align: center;
}
a {
margin: 0 10px;
font-size: 20px;
}
}
}
.group_userscript {
h2 .hint {
display: block;
margin: 0 !important;
}
.userscript {
float: left;
margin: 14px 0 0 $padding;
height: 36px;
line-height: 25px;
}
.or {
float: left;
margin: $padding -10px 0 10px;
}
.bookmarklet {
display: block;
float: left;
padding: $padding 15px 0 $padding;
span {
margin-left: 10px;
display: inline-block;
}
}
img {
display: block;
clear: both;
float: left;
margin: $padding;
width: 100%;
max-width: 680px;
}
}
10 years ago
.directory_list {
z-index: 2;
position: absolute;
width: 450px;
margin: 28px 0 20px 18.4%;
background: $theme_off;
box-shadow: 0 20px 40px -20px rgba(0,0,0,0.55);
.pointer {
border-right: 6px solid transparent;
border-left: 6px solid transparent;
border-bottom: 6px solid $theme_off;
display: block;
position: absolute;
width: 0;
margin: -6px 0 0 45%;
}
ul {
width: 92%;
height: 300px;
overflow: auto;
margin: 0 4%;
font-size: 16px;
}
li {
padding: 4px 30px 4px 10px;
cursor: pointer;
margin: 0 !important;
border-top: 1px solid rgba(255,255,255,0.1);
background: url('../images/right.arrow.png') no-repeat 98% center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
&.blur {
opacity: .3;
}
&:last-child {
border-bottom: 1px solid rgba(255,255,255,0.1);
}
&:hover {
color: $primary_color;
}
&.empty {
background: none;
height: 100px;
text-align: center;
font-style: italic;
border: none;
line-height: 100px;
cursor: default;
color: #BBB;
text-shadow: none;
font-size: 12px;
}
}
.actions {
clear: both;
padding: 4% 4% 2%;
min-height: 45px;
position: relative;
width: 100%;
text-align: right;
label {
float: right;
width: auto;
padding: 0;
}
.inlay {
margin: 0 0 0 7px;
}
.back {
font-weight: bold;
width: 160px;
display: inline-block;
padding: 0;
line-height: 120%;
vertical-align: top;
position: absolute;
text-align: left;
left: 4%;
}
&:last-child {
float: right;
padding: 4%;
> span {
padding: 0 5px;
text-shadow: none;
}
> .clear {
left: 4%;
position: absolute;
background-color: #af3128;
}
> .cancel {
font-weight: bold;
color: #ddd;
}
> .save {
background: #9dc156;
}
}
}
}
10 years ago
}