removed old shitz, added html src
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
@import "fancy_button_mixins";
|
||||
|
||||
#{$all-buttons}, a.button {
|
||||
@include fancy-btn-base();
|
||||
|
||||
// fontello
|
||||
/* &::before {
|
||||
margin-right: .4em;
|
||||
}
|
||||
|
||||
&.icononly::before {
|
||||
margin-right: 0;
|
||||
}*/
|
||||
|
||||
&.narrow {
|
||||
min-width: initial;
|
||||
}
|
||||
|
||||
text-shadow: 1.5px 1.5px 2px rgba(black, 0.8);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$btn-gray-f: #DDDDDD;
|
||||
$btn-gray-b: #505050;
|
||||
$btn-gray-l: #343434; // line
|
||||
|
||||
$btn-green-f: #FEFEFE;
|
||||
$btn-green-b: #2ca94b;
|
||||
$btn-green-fa: #FEFEFE;
|
||||
$btn-green-ba: #28ba5c;
|
||||
|
||||
$btn-red-f: #FEFEFE;
|
||||
$btn-red-b: #D04E51;
|
||||
$btn-red-fa: #FEFEFE;
|
||||
$btn-red-ba: #d4403f;
|
||||
|
||||
$btn-blue-f: #FEFEFE;
|
||||
$btn-blue-b: #3983cd;
|
||||
$btn-blue-fa: #FEFEFE;
|
||||
$btn-blue-ba: #2076C6;
|
||||
|
||||
$btn-orange-f: #FEFEFE;
|
||||
$btn-orange-b: #dd8751;
|
||||
$btn-orange-fa: #FEFEFE;
|
||||
$btn-orange-ba: #C6733F;
|
||||
|
||||
|
||||
input[type="submit"], .btn-green {
|
||||
@include fancy-btn-colors($btn-green-f, $btn-green-b, $btn-green-fa, $btn-green-ba)
|
||||
}
|
||||
|
||||
input[type="reset"], .btn-red {
|
||||
@include fancy-btn-colors($btn-red-f, $btn-red-b, $btn-red-fa, $btn-red-ba)
|
||||
}
|
||||
|
||||
//&.blue {@include fancy-btn-colors($btn-blue-f, $btn-blue-b, $btn-blue-fa, $btn-blue-ba)}
|
||||
//&, &.orange {@include fancy-btn-colors($btn-orange-f, $btn-orange-b, $btn-orange-fa, $btn-orange-ba)}
|
||||
|
||||
/*
|
||||
|
||||
&[type="submit"],
|
||||
&.gray-green {
|
||||
@include fancy-btn-colors-full(
|
||||
$btn-gray-f, $btn-gray-b, $btn-gray-l,
|
||||
$btn-green-fa, $btn-green-ba, darken($btn-green-ba, 16)
|
||||
)
|
||||
}
|
||||
|
||||
&.gray-blue {
|
||||
@include fancy-btn-colors-full(
|
||||
$btn-gray-f, $btn-gray-b, $btn-gray-l,
|
||||
$btn-blue-fa, $btn-blue-ba, darken($btn-blue-ba, 16)
|
||||
)
|
||||
}
|
||||
|
||||
&.gray-red {
|
||||
@include fancy-btn-colors-full(
|
||||
$btn-gray-f, $btn-gray-b, $btn-gray-l,
|
||||
$btn-red-fa, $btn-red-ba, darken($btn-red-ba, 16)
|
||||
)
|
||||
}
|
||||
|
||||
&.gray-orange {
|
||||
@include fancy-btn-colors-full(
|
||||
$btn-gray-f, $btn-gray-b, $btn-gray-l,
|
||||
$btn-orange-fa, $btn-orange-ba, darken($btn-orange-ba, 16)
|
||||
)
|
||||
}
|
||||
|
||||
// No change on hover - to be used for disabled buttons
|
||||
&.gray-gray {
|
||||
@include fancy-btn-colors-full(
|
||||
$btn-gray-f, $btn-gray-b, $btn-gray-l,
|
||||
$btn-gray-f, $btn-gray-b, $btn-gray-l
|
||||
)
|
||||
}
|
||||
|
||||
*/
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
// Button styling
|
||||
@mixin fancy-btn-base() {
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
border-radius: 2px;
|
||||
padding: 0 0.6em;
|
||||
border: 0 none;
|
||||
outline: 0 none !important;
|
||||
line-height: 1.8em;
|
||||
font-size: 1.1em;
|
||||
margin-bottom: 3px;
|
||||
min-width: 5em;
|
||||
|
||||
@include noselect();
|
||||
|
||||
//&[class^="icon-"]::before, &[class*=" icon-"]::before {
|
||||
// margin-left:0;
|
||||
//}
|
||||
|
||||
&:active {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
//&, &:active, &:hover, &:visited {
|
||||
// text-decoration: none;
|
||||
//}
|
||||
}
|
||||
|
||||
@mixin fancy-btn-colors-full($text_p, $back_p, $side_p, $text_a, $back_a, $side_a) {
|
||||
background-color: $back_p;
|
||||
box-shadow: 0 3px 0 $side_p;
|
||||
color: $text_p;
|
||||
|
||||
&:hover, &:active, &.active, &.selected {
|
||||
background-color: $back_a;
|
||||
color: $text_a;
|
||||
}
|
||||
|
||||
&:hover, &.selected, &.active {
|
||||
box-shadow: 0 3px 0 $side_a;
|
||||
}
|
||||
|
||||
// thinner shadow
|
||||
&:active {
|
||||
box-shadow: 0 1px 0 $side_a;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin fancy-btn-colors($text_p, $back_p, $text_a, $back_a) {
|
||||
@include fancy-btn-colors-full($text_p, $back_p, darken($back_p, 14), $text_a, $back_a, darken($back_a, 16));
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
@import "buttons";
|
||||
|
||||
#{$all-text-inputs}, select {
|
||||
border: 0 none;
|
||||
border-bottom: 2px solid $c-form-highlight;
|
||||
background-color: $c-form-field-bg;
|
||||
color: $c-form-field-fg;
|
||||
padding: 6px;
|
||||
line-height: 1em;
|
||||
outline: 0 none !important;
|
||||
-moz-outline: 0 none !important;
|
||||
font-weight: normal;
|
||||
|
||||
&:focus, &:hover {
|
||||
border-bottom-color: $c-form-highlight-a;
|
||||
}
|
||||
}
|
||||
|
||||
#{$all-text-inputs} {
|
||||
@include can-select();
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-family: monospace;
|
||||
line-height: 1.2em;
|
||||
display: block; // fixes weird bottom margin
|
||||
}
|
||||
|
||||
@import "select";
|
||||
@@ -0,0 +1,169 @@
|
||||
// Unified Form wrapper
|
||||
form { @include naked(); }
|
||||
|
||||
#{$all-text-inputs}, select, label.select-wrap {
|
||||
width: $form-field-w;
|
||||
}
|
||||
|
||||
form .Row {
|
||||
vertical-align: middle;
|
||||
margin: 14px auto;
|
||||
text-align: left;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
width: $form-label-w;
|
||||
|
||||
@include media($phone) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.buttons {
|
||||
input, .button {
|
||||
margin-right: dist(-1);
|
||||
}
|
||||
}
|
||||
|
||||
&.centered {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&.message {
|
||||
font-size: 1em;
|
||||
//margin-left: $label-gap + $w-labels;
|
||||
text-shadow: 1px 1px 3px black;
|
||||
text-align: center;
|
||||
|
||||
&.error {
|
||||
color: crimson;
|
||||
}
|
||||
|
||||
&.ok {
|
||||
color: #0fe851;
|
||||
}
|
||||
}
|
||||
|
||||
&.separator {
|
||||
padding-top: 14px;
|
||||
border-top: 2px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
textarea {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
min-height: 10rem;
|
||||
flex-grow: 1;
|
||||
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: bold;
|
||||
color: $c-form-label-fg;
|
||||
display: inline-block;
|
||||
width: $form-label-w;
|
||||
text-align: right;
|
||||
text-shadow: 1px 1px 3px black;
|
||||
|
||||
padding: $form-label-gap;
|
||||
align-self: flex-start;
|
||||
|
||||
@include noselect;
|
||||
}
|
||||
|
||||
.checkbox-wrap {
|
||||
display: inline-block;
|
||||
width: $form-label-w;
|
||||
padding: $form-label-gap;
|
||||
text-align: right;
|
||||
align-self: flex-start;
|
||||
|
||||
input[type=checkbox] {
|
||||
margin: auto;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
& + label {
|
||||
width: $form-field-w;
|
||||
padding-left: 0;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
// special phone style
|
||||
@include media($phone) {
|
||||
flex-direction: column;
|
||||
|
||||
&.buttons, &.centered {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
&.buttons {
|
||||
justify-content: center;
|
||||
|
||||
// remove margin on lats button
|
||||
:last-child {
|
||||
margin-right:0;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
padding-left: 0;
|
||||
text-align: left;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.checkbox-wrap {
|
||||
order: 1;
|
||||
text-align: left;
|
||||
padding-bottom: 0;
|
||||
|
||||
border-radius: .4px;
|
||||
width: auto;
|
||||
|
||||
& + label {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
#{$all-text-inputs}, textarea {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// red asterisk
|
||||
form span.required {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.RadioGroup {
|
||||
display: inline-block;
|
||||
line-height: 1.5em;
|
||||
vertical-align: middle;
|
||||
|
||||
label {
|
||||
width: auto;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
input[type="radio"] {
|
||||
vertical-align: middle;
|
||||
margin: 0 0 0 5px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
@import 'fancy_button_mixins';
|
||||
@import 'buttons';
|
||||
@import 'form_elements';
|
||||
@import 'form_layout';
|
||||
@import 'select';
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
// target chrome only
|
||||
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
||||
select { padding-right: 18px }
|
||||
}
|
||||
|
||||
select {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
|
||||
cursor: pointer;
|
||||
line-height: 1.4em;
|
||||
padding: 3.5px;
|
||||
|
||||
padding-right: 1em;
|
||||
|
||||
// hack for firefox to disable dotted outline
|
||||
&:-moz-focusring {
|
||||
color: transparent;
|
||||
text-shadow: 0 0 0 $c-form-field-fg;
|
||||
}
|
||||
|
||||
option {
|
||||
background: $c-form-field-bg;
|
||||
}
|
||||
}
|
||||
|
||||
label.select-wrap {
|
||||
position: relative;
|
||||
display: inline !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
width: auto !important;
|
||||
|
||||
&:after {
|
||||
content: '<>'; /* will be rotated */
|
||||
font-family: "Consolas", monospace;
|
||||
font-weight: bold;
|
||||
color: $c-form-highlight-a;
|
||||
|
||||
top: 50%;
|
||||
@include transform(translate(0, -50%) rotate(90deg));
|
||||
|
||||
right: 2px;
|
||||
|
||||
position:absolute;
|
||||
z-index: 100;
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user