new version
This commit is contained in:
250
src/client/sass/lib/_actionBar.scss
Normal file
250
src/client/sass/lib/_actionBar.scss
Normal file
@@ -0,0 +1,250 @@
|
||||
@import "../../../node_modules/foundation-sites/scss/foundation";
|
||||
|
||||
nav.top-bar.title-bar {
|
||||
padding: 0.3rem 0.6rem 0;
|
||||
}
|
||||
|
||||
#logo {
|
||||
max-width: 2rem;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.menu, .dropdown.menu {
|
||||
a {
|
||||
padding: 0.2rem 0.5rem;
|
||||
}
|
||||
> li > a {
|
||||
background-color: transparent;
|
||||
padding: 0.2rem 0.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
.top-bar-title
|
||||
{
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#action-bar {
|
||||
.close-listener {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: transparent;
|
||||
z-index: 9000;
|
||||
}
|
||||
#responsive-menu {
|
||||
.top-bar-right {
|
||||
position: relative;
|
||||
text-align: right;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
.top-bar-right {
|
||||
width: auto;
|
||||
|
||||
|
||||
|
||||
.menu {
|
||||
&.action-bar {
|
||||
a {
|
||||
img + span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.action {
|
||||
position: relative;
|
||||
z-index: 9000;
|
||||
&.is-dropdown-submenu-parent{
|
||||
z-index: 9001;
|
||||
}
|
||||
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
@include breakpoint(small down) {
|
||||
&.smedium {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@include breakpoint(smedium down) {
|
||||
li {
|
||||
display: table-cell;
|
||||
}
|
||||
&.medium {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@include breakpoint(medium down) {
|
||||
&.large {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
&.never {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.hidden {
|
||||
display: inline-block;
|
||||
//float: right;
|
||||
position: absolute;
|
||||
z-index: 9000;
|
||||
border: 1px solid rgb(202, 202, 202);
|
||||
padding: 0.2rem;
|
||||
transform: translateX(-100%);
|
||||
text-align: left;
|
||||
|
||||
.action {
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
&.is-dropdown-submenu-parent {
|
||||
z-index: 9001;
|
||||
ul.is-dropdown-submenu {
|
||||
top: auto;
|
||||
> li.action, > .close-listener {
|
||||
z-index: 9001;
|
||||
}
|
||||
}
|
||||
> a:after {
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: 6px inset;
|
||||
content: "";
|
||||
border-bottom-width: 0;
|
||||
border-top-style: solid;
|
||||
border-color: #ffffff transparent transparent;
|
||||
right: 5px;
|
||||
left: auto;
|
||||
margin-top: -3px;
|
||||
}
|
||||
}
|
||||
a {
|
||||
white-space: nowrap;
|
||||
img {
|
||||
display: none;
|
||||
+ span {
|
||||
display: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include breakpoint(medium) {
|
||||
&.medium {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@include breakpoint(smedium) {
|
||||
&.smedium {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@include breakpoint(large) {
|
||||
&.large {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint(small down) {
|
||||
&.smedium {
|
||||
display: block;
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include breakpoint(smedium down) {
|
||||
&.medium {
|
||||
display: block;
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include breakpoint(medium down) {
|
||||
&.large {
|
||||
display: block;
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.never {
|
||||
display: block;
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
&.always {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.action {
|
||||
z-index: 100;
|
||||
@include breakpoint(smedium down) {
|
||||
a {
|
||||
width: 100%;
|
||||
//text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint(smedium down) {
|
||||
a {
|
||||
padding-left: 0.68rem;
|
||||
}
|
||||
}
|
||||
@include breakpoint(small down) {
|
||||
a {
|
||||
padding-left: 0.236rem;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.is-dropdown-submenu-parent) {
|
||||
@include breakpoint(smedium down) {
|
||||
a {
|
||||
padding-right: 0.68rem;
|
||||
}
|
||||
}
|
||||
@include breakpoint(small down) {
|
||||
a {
|
||||
padding-right: 0.236rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.img a {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
img {
|
||||
vertical-align: inherit;
|
||||
max-height: 1.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
> li > ul.is-dropdown-submenu {
|
||||
min-width: 0;
|
||||
.action {
|
||||
display: inherit;
|
||||
}
|
||||
}
|
||||
> li.opens-right > ul.is-dropdown-submenu {
|
||||
right: auto;
|
||||
left: auto;
|
||||
a {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown.menu > li.is-dropdown-submenu-parent > a:after {
|
||||
border-color: #ffffff transparent transparent;
|
||||
}
|
||||
367
src/client/sass/lib/_core.scss
Normal file
367
src/client/sass/lib/_core.scss
Normal file
@@ -0,0 +1,367 @@
|
||||
//@import "../../../node_modules/foundation-sites/scss/foundation";
|
||||
|
||||
*, :after, :before {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
html {
|
||||
min-height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 18px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.max-height {
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
background: #fefefe;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: #d8d8d8 solid 1px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.top-bar .top-bar-title strong {
|
||||
//margin-top: 7px;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
/*margin-left: 8px;*/
|
||||
}
|
||||
|
||||
nav.top-bar {
|
||||
|
||||
color: #FFF;
|
||||
//background: #3F51B5;
|
||||
//background: red;
|
||||
font-size: 20px;
|
||||
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 2px 9px 1px rgba(0, 0, 0, 0.12), 0 4px 2px -2px rgba(0, 0, 0, 0.2);
|
||||
padding: 0.6rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
button.button, a.button {
|
||||
border-radius: 2px;
|
||||
//background-color: red;
|
||||
&.disabled, &.disabled:hover, &.disabled:focus {
|
||||
//background-color: red;
|
||||
}
|
||||
&:focus, &:hover {
|
||||
//background-color: #e00000;
|
||||
}
|
||||
}
|
||||
|
||||
.fill-me {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
&.vertical {
|
||||
flex-direction: row;
|
||||
}
|
||||
.grow {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
//justify-content: space-around;
|
||||
display: flex;
|
||||
//margin: auto;
|
||||
align-items: center;
|
||||
> * {
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.menu a, .dropdown.menu a {
|
||||
padding: .4rem .5rem
|
||||
}
|
||||
|
||||
svg path {
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
div.mainContainer {
|
||||
position: relative;
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
flex: 1;
|
||||
margin: 0.5rem;
|
||||
> .row, #main-content, #site {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
//left: .625rem;
|
||||
right: 0;
|
||||
//right: .625rem;
|
||||
}
|
||||
}
|
||||
|
||||
.inline-block {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#logo-img {
|
||||
max-height: 2.2rem;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
a.hidden-link {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
label {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.view-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.loader {
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
position: fixed;
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
|
||||
&.inline {
|
||||
left: initial;
|
||||
top: initial;
|
||||
position: initial;
|
||||
-webkit-transform: initial;
|
||||
transform: initial;
|
||||
text-align: center;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
&.small #spinner {
|
||||
|
||||
transform: scale(0.5);
|
||||
}
|
||||
|
||||
#spinner {
|
||||
box-sizing: border-box;
|
||||
stroke: #b71c1a;
|
||||
stroke-width: 3px;
|
||||
transform-origin: 50%;
|
||||
animation: line 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite, rotate 1.6s linear infinite;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
from {
|
||||
transform: rotate(0);
|
||||
}
|
||||
to {
|
||||
transform: rotate(450deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes line {
|
||||
0% {
|
||||
stroke-dasharray: 2, 85.964;
|
||||
transform: rotate(0);
|
||||
}
|
||||
50% {
|
||||
stroke-dasharray: 65.973, 21.9911;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
100% {
|
||||
stroke-dasharray: 2, 85.964;
|
||||
stroke-dashoffset: -65.973;
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
|
||||
#print-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.action-button {
|
||||
max-height: 1.7rem;
|
||||
margin-left: 0.4rem;
|
||||
margin-right: 0.4rem;
|
||||
&:hover {
|
||||
background: $hoverColorDark;
|
||||
}
|
||||
}
|
||||
|
||||
.vcenter-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: table;
|
||||
//display: flex;
|
||||
//justify-content: center;
|
||||
//flex-wrap: wrap;
|
||||
|
||||
.vcenter {
|
||||
//display: flex;
|
||||
vertical-align: middle;
|
||||
display: table-cell;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
.max-width {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
input, button {
|
||||
letter-spacing: 1px !important;
|
||||
}
|
||||
|
||||
.no-padding {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media print {
|
||||
nav, .mainContainer, footer, #styles {
|
||||
display: none !important;
|
||||
}
|
||||
#print-content {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
|
||||
.overflow-y-auto {
|
||||
overflow-y: auto !important;
|
||||
}
|
||||
|
||||
.row.no-after:after {
|
||||
content: initial;
|
||||
}
|
||||
|
||||
.margin-bottom {
|
||||
margin-bottom: 1rem;
|
||||
@include breakpoint(smedium) {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
@include breakpoint(medium) {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
@include breakpoint(large) {
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
@include breakpoint(xlarge) {
|
||||
margin-bottom: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.font-small {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid $prototype-border-color;
|
||||
}
|
||||
|
||||
.border-right {
|
||||
border-right: 1px solid $prototype-border-color;
|
||||
}
|
||||
|
||||
.border-left {
|
||||
border-left: 1px solid $prototype-border-color;
|
||||
}
|
||||
|
||||
img.logo {
|
||||
vertical-align: inherit;
|
||||
display: inline-block;
|
||||
height: auto;
|
||||
max-width: 1.1rem;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
hr.separator {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.button-line {
|
||||
display: flex;
|
||||
.button {
|
||||
flex: 1;
|
||||
margin-left: 1px;
|
||||
margin-right: 1px;
|
||||
padding: 0.5rem 0.77rem;
|
||||
}
|
||||
}
|
||||
|
||||
.small-small {
|
||||
@include breakpoint(small down) {
|
||||
font-size: small;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
border: 0;
|
||||
padding: 0.3rem 0.3rem;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.no-transition {
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
img.action-image {
|
||||
max-height: 1.4rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
img.back-button {
|
||||
max-height: 0.6rem;
|
||||
margin-right: 0.2rem;
|
||||
cursor: pointer;
|
||||
vertical-align: inherit;
|
||||
}
|
||||
|
||||
.no-margin-bottom {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
96
src/client/sass/lib/_coreSettings.scss
Normal file
96
src/client/sass/lib/_coreSettings.scss
Normal file
@@ -0,0 +1,96 @@
|
||||
|
||||
$hoverColor: #f2f2f2;
|
||||
$hoverColorDark: #e8e8e8;
|
||||
|
||||
$themes: (
|
||||
red:(
|
||||
class: red,
|
||||
themeColor: #ff0000,
|
||||
lightThemeColor: #870015,
|
||||
linkColor: #ff3d00,
|
||||
spinnerColor: #b71c1a,
|
||||
navBarTextColor: #fff,
|
||||
textColor: #000,
|
||||
textColor2: #555555,
|
||||
lightLinkColor: #ff3d00,
|
||||
linkBorderBottom: none,
|
||||
linkHoverColor: #ff3d00,
|
||||
lightLinkHoverColor: #ff3d00,
|
||||
background: #fff
|
||||
),
|
||||
blue:(
|
||||
class: blue,
|
||||
themeColor: #2c58ae,
|
||||
lightThemeColor: #1a3062,
|
||||
linkColor: #546cfe,
|
||||
spinnerColor: #673AB7,
|
||||
navBarTextColor: #fff,
|
||||
textColor: #000,
|
||||
textColor2: #555555,
|
||||
lightLinkColor: #546cfe,
|
||||
linkBorderBottom: none,
|
||||
linkHoverColor: #546cfe,
|
||||
lightLinkHoverColor: #546cfe,
|
||||
background: #fff
|
||||
),
|
||||
green:(
|
||||
class: green,
|
||||
themeColor: #008000,
|
||||
lightThemeColor: #003613,
|
||||
linkColor: #009829,
|
||||
spinnerColor: #008000,
|
||||
navBarTextColor: #fff,
|
||||
textColor: #000,
|
||||
textColor2: #555555,
|
||||
lightLinkColor: #009829,
|
||||
linkBorderBottom: none,
|
||||
linkHoverColor: #009829,
|
||||
lightLinkHoverColor: #009829,
|
||||
background: #fff
|
||||
),
|
||||
pink:(
|
||||
class: pink,
|
||||
themeColor: #ff69b4,
|
||||
lightThemeColor: #70374a,
|
||||
linkColor: #fe64af,
|
||||
spinnerColor: #ff69b4,
|
||||
navBarTextColor: #fff,
|
||||
textColor: #000,
|
||||
textColor2: #555555,
|
||||
lightLinkColor: #fe64af,
|
||||
linkBorderBottom: none,
|
||||
linkHoverColor: #fe64af,
|
||||
lightLinkHoverColor: #fe64af,
|
||||
background: #fff
|
||||
),
|
||||
black:(
|
||||
class: black,
|
||||
themeColor: #000,
|
||||
lightThemeColor: #353535,
|
||||
linkColor: #000,
|
||||
spinnerColor: #000,
|
||||
navBarTextColor: #fff,
|
||||
textColor: #000,
|
||||
textColor2: #555555,
|
||||
lightLinkColor: #fff,
|
||||
linkBorderBottom: 1px solid #000000,
|
||||
linkHoverColor: #4e4e4e,
|
||||
lightLinkHoverColor: #cacaca,
|
||||
background: #fff
|
||||
),
|
||||
dark: (
|
||||
class: dark,
|
||||
themeColor: #373737,
|
||||
lightThemeColor: #4b4b4b,
|
||||
linkColor: #fff,
|
||||
spinnerColor: #ffffff,
|
||||
navBarTextColor: #fff,
|
||||
textColor: #ffffff,
|
||||
textColor2: #9b9b9b,
|
||||
lightLinkColor: #ffffff,
|
||||
linkBorderBottom: 1px solid #ffffff,
|
||||
linkHoverColor: #ffffff,
|
||||
lightLinkHoverColor: #ffffff,
|
||||
background: #000000
|
||||
)
|
||||
);
|
||||
59
src/client/sass/lib/_flashMessenger.scss
Normal file
59
src/client/sass/lib/_flashMessenger.scss
Normal file
@@ -0,0 +1,59 @@
|
||||
div.flashMessage {
|
||||
font-size: 0.8rem;
|
||||
border-radius: 25px;
|
||||
letter-spacing: 0;
|
||||
|
||||
z-index: 1001;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.28);
|
||||
|
||||
border: 1px solid #626262;
|
||||
background-color: #6b6b6b;
|
||||
padding: .3em .6em;
|
||||
text-align:center;
|
||||
|
||||
color: white;
|
||||
//opacity: .9;
|
||||
|
||||
&:hover {
|
||||
opacity: .4;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:before, &:after
|
||||
{
|
||||
display: block;
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
|
||||
span.flashMessage {
|
||||
float: right;
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
div.success {
|
||||
//background-color: #adeca1
|
||||
}
|
||||
|
||||
div.default {
|
||||
background-color: #1a9cc8
|
||||
}
|
||||
|
||||
#flashMessageContainer {
|
||||
text-align: center;
|
||||
position: absolute
|
||||
}
|
||||
|
||||
#flashMessageContainer, #flashMessageContainerAbsoulte {
|
||||
height: 0 !important;
|
||||
width: 100%;
|
||||
overflow: visible !important
|
||||
}
|
||||
|
||||
#flashMessageContainerAbsoulte {
|
||||
margin: 5px 0;
|
||||
position: relative
|
||||
}
|
||||
86
src/client/sass/lib/_form.scss
Normal file
86
src/client/sass/lib/_form.scss
Normal file
@@ -0,0 +1,86 @@
|
||||
|
||||
form {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.sending {
|
||||
.sending-loader {
|
||||
position: absolute;
|
||||
background-color: rgba(125, 125, 125, 0.3);
|
||||
display: block;
|
||||
pointer-events: all;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
.loader {
|
||||
position: absolute
|
||||
}
|
||||
border-radius: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.sending-loader {
|
||||
display: none;
|
||||
}
|
||||
|
||||
//input.notEmpty:invalid {
|
||||
// background-color: lightcoral;
|
||||
//}
|
||||
|
||||
label {
|
||||
position: relative;
|
||||
[type='text'], [type='password'], [type='date'], [type='datetime'], [type='datetime-local'], [type='month'], [type='week'], [type='email'], [type='number'], [type='search'], [type='tel'], [type='time'], [type='url'], [type='color'], textarea, input[type=text], input:not([type]) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 2.4375rem;
|
||||
padding: 0.5rem;
|
||||
box-shadow: none !important;
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
line-height: 1.5;
|
||||
border: none;
|
||||
//border-bottom: solid black;
|
||||
outline: 0;
|
||||
margin: 0 0 15px;
|
||||
|
||||
&:focus {
|
||||
border: none;
|
||||
box-shadow: none !important;
|
||||
//border-bottom: solid black;
|
||||
}
|
||||
|
||||
&:focus, &.notEmpty:not(:focus) {
|
||||
~ span {
|
||||
top: -11px;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
font-size: 11px;
|
||||
opacity: 1;
|
||||
//color: black;
|
||||
}
|
||||
}
|
||||
~ span {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
left: 10px;
|
||||
bottom: 10px;
|
||||
top: 7px;
|
||||
transition: 0.2s ease all;
|
||||
//color: #626262;
|
||||
}
|
||||
}
|
||||
textarea {
|
||||
height: 10rem;
|
||||
//border: 1px solid rgba(136, 136, 136, 0.31);
|
||||
//box-shadow: 0 0 3px 2px hsla(0, 0%, 53%, .31) !important;
|
||||
border-top-right-radius: 3px;
|
||||
border-top-left-radius: 3px;
|
||||
}
|
||||
[type="checkbox"].before-text {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
621
src/client/sass/lib/_foundationSettings.scss
Normal file
621
src/client/sass/lib/_foundationSettings.scss
Normal file
@@ -0,0 +1,621 @@
|
||||
// Foundation for Sites Settings
|
||||
// -----------------------------
|
||||
//
|
||||
// Table of Contents:
|
||||
//
|
||||
// 1. Global
|
||||
// 2. Breakpoints
|
||||
// 3. The Grid
|
||||
// 4. Base Typography
|
||||
// 5. Typography Helpers
|
||||
// 6. Abide
|
||||
// 7. Accordion
|
||||
// 8. Accordion Menu
|
||||
// 9. Badge
|
||||
// 10. Breadcrumbs
|
||||
// 11. Button
|
||||
// 12. Button Group
|
||||
// 13. Callout
|
||||
// 14. Card
|
||||
// 15. Close Button
|
||||
// 16. Drilldown
|
||||
// 17. Dropdown
|
||||
// 18. Dropdown Menu
|
||||
// 19. Forms
|
||||
// 20. Label
|
||||
// 21. Media Object
|
||||
// 22. Menu
|
||||
// 23. Meter
|
||||
// 24. Off-canvas
|
||||
// 25. Orbit
|
||||
// 26. Pagination
|
||||
// 27. Progress Bar
|
||||
// 28. Responsive Embed
|
||||
// 29. Reveal
|
||||
// 30. Slider
|
||||
// 31. Switch
|
||||
// 32. Table
|
||||
// 33. Tabs
|
||||
// 34. Thumbnail
|
||||
// 35. Title Bar
|
||||
// 36. Tooltip
|
||||
// 37. Top Bar
|
||||
|
||||
@import '../../../node_modules/foundation-sites/scss/util/util';
|
||||
|
||||
// 1. Global
|
||||
// ---------
|
||||
|
||||
$global-font-size: 100%;
|
||||
$global-width: rem-calc(1200);
|
||||
$global-lineheight: 1.5;
|
||||
$foundation-palette: (
|
||||
primary: #1779ba,
|
||||
secondary: #767676,
|
||||
success: #3adb76,
|
||||
warning: #ffae00,
|
||||
alert: #cc4b37,
|
||||
);
|
||||
$light-gray: #e6e6e6;
|
||||
$medium-gray: #cacaca;
|
||||
$dark-gray: #8a8a8a;
|
||||
$black: #0a0a0a;
|
||||
$white: #fefefe;
|
||||
$body-background: $white;
|
||||
$body-font-color: $black;
|
||||
$body-font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
|
||||
$body-antialiased: true;
|
||||
$global-margin: 1rem;
|
||||
$global-padding: 1rem;
|
||||
$global-weight-normal: normal;
|
||||
$global-weight-bold: bold;
|
||||
$global-radius: 0;
|
||||
$global-text-direction: ltr;
|
||||
$global-flexbox: false;
|
||||
$print-transparent-backgrounds: true;
|
||||
|
||||
@include add-foundation-colors;
|
||||
|
||||
// 2. Breakpoints
|
||||
// --------------
|
||||
|
||||
$breakpoints: (
|
||||
small:0,
|
||||
smedium: 400px,
|
||||
medium: 640px,
|
||||
large: 1024px,
|
||||
xlarge: 1200px,
|
||||
xxlarge: 1440px,
|
||||
);
|
||||
$print-breakpoint: large;
|
||||
$breakpoint-classes: (small smedium medium large);
|
||||
|
||||
// 3. The Grid
|
||||
// -----------
|
||||
|
||||
$grid-row-width: $global-width;
|
||||
$grid-column-count: 12;
|
||||
$grid-column-gutter: (
|
||||
small: 20px,
|
||||
medium: 30px,
|
||||
);
|
||||
$grid-column-align-edge: true;
|
||||
$block-grid-max: 8;
|
||||
|
||||
// 4. Base Typography
|
||||
// ------------------
|
||||
|
||||
$header-font-family: $body-font-family;
|
||||
$header-font-weight: $global-weight-normal;
|
||||
$header-font-style: normal;
|
||||
$font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace;
|
||||
$header-color: inherit;
|
||||
$header-lineheight: 1.4;
|
||||
$header-margin-bottom: 0.5rem;
|
||||
$header-styles: (
|
||||
small: (
|
||||
'h1': ('font-size': 24),
|
||||
'h2': ('font-size': 20),
|
||||
'h3': ('font-size': 19),
|
||||
'h4': ('font-size': 18),
|
||||
'h5': ('font-size': 17),
|
||||
'h6': ('font-size': 16),
|
||||
),
|
||||
medium: (
|
||||
'h1': ('font-size': 48),
|
||||
'h2': ('font-size': 40),
|
||||
'h3': ('font-size': 31),
|
||||
'h4': ('font-size': 25),
|
||||
'h5': ('font-size': 20),
|
||||
'h6': ('font-size': 16),
|
||||
),
|
||||
);
|
||||
$header-text-rendering: optimizeLegibility;
|
||||
$small-font-size: 80%;
|
||||
$header-small-font-color: $medium-gray;
|
||||
$paragraph-lineheight: 1.6;
|
||||
$paragraph-margin-bottom: 1rem;
|
||||
$paragraph-text-rendering: optimizeLegibility;
|
||||
$code-color: $black;
|
||||
$code-font-family: $font-family-monospace;
|
||||
$code-font-weight: $global-weight-normal;
|
||||
$code-background: $light-gray;
|
||||
$code-border: 1px solid $medium-gray;
|
||||
$code-padding: rem-calc(2 5 1);
|
||||
$anchor-color: $primary-color;
|
||||
$anchor-color-hover: scale-color($anchor-color, $lightness: -14%);
|
||||
$anchor-text-decoration: none;
|
||||
$anchor-text-decoration-hover: none;
|
||||
$hr-width: $global-width;
|
||||
$hr-border: 1px solid $medium-gray;
|
||||
$hr-margin: rem-calc(20) auto;
|
||||
$list-lineheight: $paragraph-lineheight;
|
||||
$list-margin-bottom: $paragraph-margin-bottom;
|
||||
$list-style-type: disc;
|
||||
$list-style-position: outside;
|
||||
$list-side-margin: 1.25rem;
|
||||
$list-nested-side-margin: 1.25rem;
|
||||
$defnlist-margin-bottom: 1rem;
|
||||
$defnlist-term-weight: $global-weight-bold;
|
||||
$defnlist-term-margin-bottom: 0.3rem;
|
||||
$blockquote-color: $dark-gray;
|
||||
$blockquote-padding: rem-calc(9 20 0 19);
|
||||
$blockquote-border: 1px solid $medium-gray;
|
||||
$cite-font-size: rem-calc(13);
|
||||
$cite-color: $dark-gray;
|
||||
$cite-pseudo-content: '\2014 \0020';
|
||||
$keystroke-font: $font-family-monospace;
|
||||
$keystroke-color: $black;
|
||||
$keystroke-background: $light-gray;
|
||||
$keystroke-padding: rem-calc(2 4 0);
|
||||
$keystroke-radius: $global-radius;
|
||||
$abbr-underline: 1px dotted $black;
|
||||
|
||||
// 5. Typography Helpers
|
||||
// ---------------------
|
||||
|
||||
$lead-font-size: $global-font-size * 1.25;
|
||||
$lead-lineheight: 1.6;
|
||||
$subheader-lineheight: 1.4;
|
||||
$subheader-color: $dark-gray;
|
||||
$subheader-font-weight: $global-weight-normal;
|
||||
$subheader-margin-top: 0.2rem;
|
||||
$subheader-margin-bottom: 0.5rem;
|
||||
$stat-font-size: 2.5rem;
|
||||
|
||||
// 6. Abide
|
||||
// --------
|
||||
|
||||
$abide-inputs: true;
|
||||
$abide-labels: true;
|
||||
$input-background-invalid: get-color(alert);
|
||||
$form-label-color-invalid: get-color(alert);
|
||||
$input-error-color: get-color(alert);
|
||||
$input-error-font-size: rem-calc(12);
|
||||
$input-error-font-weight: $global-weight-bold;
|
||||
|
||||
// 7. Accordion
|
||||
// ------------
|
||||
|
||||
$accordion-background: $white;
|
||||
$accordion-plusminus: true;
|
||||
$accordion-title-font-size: rem-calc(12);
|
||||
$accordion-item-color: $primary-color;
|
||||
$accordion-item-background-hover: $light-gray;
|
||||
$accordion-item-padding: 1.25rem 1rem;
|
||||
$accordion-content-background: $white;
|
||||
$accordion-content-border: 1px solid $light-gray;
|
||||
$accordion-content-color: $body-font-color;
|
||||
$accordion-content-padding: 1rem;
|
||||
|
||||
// 8. Accordion Menu
|
||||
// -----------------
|
||||
|
||||
$accordionmenu-arrows: true;
|
||||
$accordionmenu-arrow-color: $primary-color;
|
||||
$accordionmenu-arrow-size: 6px;
|
||||
|
||||
// 9. Badge
|
||||
// --------
|
||||
|
||||
$badge-background: $primary-color;
|
||||
$badge-color: $white;
|
||||
$badge-color-alt: $black;
|
||||
$badge-palette: $foundation-palette;
|
||||
$badge-padding: 0.3em;
|
||||
$badge-minwidth: 2.1em;
|
||||
$badge-font-size: 0.6rem;
|
||||
|
||||
// 10. Breadcrumbs
|
||||
// ---------------
|
||||
|
||||
$breadcrumbs-margin: 0 0 $global-margin 0;
|
||||
$breadcrumbs-item-font-size: rem-calc(11);
|
||||
$breadcrumbs-item-color: $primary-color;
|
||||
$breadcrumbs-item-color-current: $black;
|
||||
$breadcrumbs-item-color-disabled: $medium-gray;
|
||||
$breadcrumbs-item-margin: 0.75rem;
|
||||
$breadcrumbs-item-uppercase: true;
|
||||
$breadcrumbs-item-slash: true;
|
||||
|
||||
// 11. Button
|
||||
// ----------
|
||||
|
||||
$button-padding: 0.85em 1em;
|
||||
$button-margin: 0 0 $global-margin 0;
|
||||
$button-fill: solid;
|
||||
$button-background: $primary-color;
|
||||
$button-background-hover: scale-color($button-background, $lightness: -15%);
|
||||
$button-color: $white;
|
||||
$button-color-alt: $black;
|
||||
$button-radius: $global-radius;
|
||||
$button-sizes: (
|
||||
tiny: 0.6rem,
|
||||
small: 0.75rem,
|
||||
default: 0.9rem,
|
||||
large: 1.25rem,
|
||||
);
|
||||
$button-palette: $foundation-palette;
|
||||
$button-opacity-disabled: 0.25;
|
||||
$button-background-hover-lightness: -20%;
|
||||
$button-hollow-hover-lightness: -50%;
|
||||
$button-transition: background-color 0.25s ease-out, color 0.25s ease-out;
|
||||
|
||||
// 12. Button Group
|
||||
// ----------------
|
||||
|
||||
$buttongroup-margin: 1rem;
|
||||
$buttongroup-spacing: 1px;
|
||||
$buttongroup-child-selector: '.button';
|
||||
$buttongroup-expand-max: 6;
|
||||
$buttongroup-radius-on-each: true;
|
||||
|
||||
// 13. Callout
|
||||
// -----------
|
||||
|
||||
$callout-background: $white;
|
||||
$callout-background-fade: 85%;
|
||||
$callout-border: 1px solid rgba($black, 0.25);
|
||||
$callout-margin: 0 0 1rem 0;
|
||||
$callout-padding: 1rem;
|
||||
$callout-font-color: $body-font-color;
|
||||
$callout-font-color-alt: $body-background;
|
||||
$callout-radius: $global-radius;
|
||||
$callout-link-tint: 30%;
|
||||
|
||||
// 14. Card
|
||||
// --------
|
||||
|
||||
$card-background: $white;
|
||||
$card-font-color: $body-font-color;
|
||||
$card-divider-background: $light-gray;
|
||||
$card-border: 1px solid $light-gray;
|
||||
$card-shadow: none;
|
||||
$card-border-radius: $global-radius;
|
||||
$card-padding: $global-padding;
|
||||
$card-margin: $global-margin;
|
||||
|
||||
// 15. Close Button
|
||||
// ----------------
|
||||
|
||||
$closebutton-position: right top;
|
||||
$closebutton-offset-horizontal: (
|
||||
small: 0.66rem,
|
||||
medium: 1rem,
|
||||
);
|
||||
$closebutton-offset-vertical: (
|
||||
small: 0.33em,
|
||||
medium: 0.5rem,
|
||||
);
|
||||
$closebutton-size: (
|
||||
small: 1.5em,
|
||||
medium: 2em,
|
||||
);
|
||||
$closebutton-lineheight: 1;
|
||||
$closebutton-color: $dark-gray;
|
||||
$closebutton-color-hover: $black;
|
||||
|
||||
// 16. Drilldown
|
||||
// -------------
|
||||
|
||||
$drilldown-transition: transform 0.15s linear;
|
||||
$drilldown-arrows: true;
|
||||
$drilldown-arrow-color: $primary-color;
|
||||
$drilldown-arrow-size: 6px;
|
||||
$drilldown-background: $white;
|
||||
|
||||
// 17. Dropdown
|
||||
// ------------
|
||||
|
||||
$dropdown-padding: 1rem;
|
||||
$dropdown-background: $body-background;
|
||||
$dropdown-border: 1px solid $medium-gray;
|
||||
$dropdown-font-size: 1rem;
|
||||
$dropdown-width: 300px;
|
||||
$dropdown-radius: $global-radius;
|
||||
$dropdown-sizes: (
|
||||
tiny: 100px,
|
||||
small: 200px,
|
||||
large: 400px,
|
||||
);
|
||||
|
||||
// 18. Dropdown Menu
|
||||
// -----------------
|
||||
|
||||
$dropdownmenu-arrows: true;
|
||||
$dropdownmenu-arrow-color: $anchor-color;
|
||||
$dropdownmenu-arrow-size: 6px;
|
||||
$dropdownmenu-min-width: 200px;
|
||||
$dropdownmenu-background: $white;
|
||||
$dropdownmenu-border: 1px solid $medium-gray;
|
||||
|
||||
// 19. Forms
|
||||
// ---------
|
||||
|
||||
$fieldset-border: 1px solid $medium-gray;
|
||||
$fieldset-padding: rem-calc(20);
|
||||
$fieldset-margin: rem-calc(18 0);
|
||||
$legend-padding: rem-calc(0 3);
|
||||
$form-spacing: rem-calc(16);
|
||||
$helptext-color: $black;
|
||||
$helptext-font-size: rem-calc(13);
|
||||
$helptext-font-style: italic;
|
||||
$input-prefix-color: $black;
|
||||
$input-prefix-background: $light-gray;
|
||||
$input-prefix-border: 1px solid $medium-gray;
|
||||
$input-prefix-padding: 1rem;
|
||||
$form-label-color: $black;
|
||||
$form-label-font-size: rem-calc(14);
|
||||
$form-label-font-weight: $global-weight-normal;
|
||||
$form-label-line-height: 1.8;
|
||||
$select-background: $white;
|
||||
$select-triangle-color: $dark-gray;
|
||||
$select-radius: $global-radius;
|
||||
$input-color: $black;
|
||||
$input-placeholder-color: $medium-gray;
|
||||
$input-font-family: inherit;
|
||||
$input-font-size: rem-calc(16);
|
||||
$input-font-weight: $global-weight-normal;
|
||||
$input-background: $white;
|
||||
$input-background-focus: $white;
|
||||
$input-background-disabled: $light-gray;
|
||||
$input-border: 1px solid $medium-gray;
|
||||
$input-border-focus: 1px solid $dark-gray;
|
||||
$input-shadow: inset 0 1px 2px rgba($black, 0.1);
|
||||
$input-shadow-focus: 0 0 5px $medium-gray;
|
||||
$input-cursor-disabled: not-allowed;
|
||||
$input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
|
||||
$input-number-spinners: true;
|
||||
$input-radius: $global-radius;
|
||||
$form-button-radius: $global-radius;
|
||||
|
||||
// 20. Label
|
||||
// ---------
|
||||
|
||||
$label-background: $primary-color;
|
||||
$label-color: $white;
|
||||
$label-color-alt: $black;
|
||||
$label-palette: $foundation-palette;
|
||||
$label-font-size: 0.8rem;
|
||||
$label-padding: 0.33333rem 0.5rem;
|
||||
$label-radius: $global-radius;
|
||||
|
||||
// 21. Media Object
|
||||
// ----------------
|
||||
|
||||
$mediaobject-margin-bottom: $global-margin;
|
||||
$mediaobject-section-padding: $global-padding;
|
||||
$mediaobject-image-width-stacked: 100%;
|
||||
|
||||
// 22. Menu
|
||||
// --------
|
||||
|
||||
$menu-margin: 0;
|
||||
$menu-margin-nested: 1rem;
|
||||
$menu-item-padding: 0.7rem 1rem;
|
||||
$menu-item-color-active: $white;
|
||||
$menu-item-background-active: get-color(primary);
|
||||
$menu-icon-spacing: 0.25rem;
|
||||
$menu-item-background-hover: $light-gray;
|
||||
$menu-border: $light-gray;
|
||||
|
||||
// 23. Meter
|
||||
// ---------
|
||||
|
||||
$meter-height: 1rem;
|
||||
$meter-radius: $global-radius;
|
||||
$meter-background: $medium-gray;
|
||||
$meter-fill-good: $success-color;
|
||||
$meter-fill-medium: $warning-color;
|
||||
$meter-fill-bad: $alert-color;
|
||||
|
||||
// 24. Off-canvas
|
||||
// --------------
|
||||
|
||||
$offcanvas-size: 250px;
|
||||
$offcanvas-vertical-size: 250px;
|
||||
$offcanvas-background: $light-gray;
|
||||
$offcanvas-shadow: 0 0 10px rgba($black, 0.7);
|
||||
$offcanvas-push-zindex: 1;
|
||||
$offcanvas-overlap-zindex: 10;
|
||||
$offcanvas-reveal-zindex: 1;
|
||||
$offcanvas-transition-length: 0.5s;
|
||||
$offcanvas-transition-timing: ease;
|
||||
$offcanvas-fixed-reveal: true;
|
||||
$offcanvas-exit-background: rgba($white, 0.25);
|
||||
$maincontent-class: 'off-canvas-content';
|
||||
|
||||
// 25. Orbit
|
||||
// ---------
|
||||
|
||||
$orbit-bullet-background: $medium-gray;
|
||||
$orbit-bullet-background-active: $dark-gray;
|
||||
$orbit-bullet-diameter: 1.2rem;
|
||||
$orbit-bullet-margin: 0.1rem;
|
||||
$orbit-bullet-margin-top: 0.8rem;
|
||||
$orbit-bullet-margin-bottom: 0.8rem;
|
||||
$orbit-caption-background: rgba($black, 0.5);
|
||||
$orbit-caption-padding: 1rem;
|
||||
$orbit-control-background-hover: rgba($black, 0.5);
|
||||
$orbit-control-padding: 1rem;
|
||||
$orbit-control-zindex: 10;
|
||||
|
||||
// 26. Pagination
|
||||
// --------------
|
||||
|
||||
$pagination-font-size: rem-calc(14);
|
||||
$pagination-margin-bottom: $global-margin;
|
||||
$pagination-item-color: $black;
|
||||
$pagination-item-padding: rem-calc(3 10);
|
||||
$pagination-item-spacing: rem-calc(1);
|
||||
$pagination-radius: $global-radius;
|
||||
$pagination-item-background-hover: $light-gray;
|
||||
$pagination-item-background-current: $primary-color;
|
||||
$pagination-item-color-current: $white;
|
||||
$pagination-item-color-disabled: $medium-gray;
|
||||
$pagination-ellipsis-color: $black;
|
||||
$pagination-mobile-items: false;
|
||||
$pagination-mobile-current-item: false;
|
||||
$pagination-arrows: true;
|
||||
|
||||
// 27. Progress Bar
|
||||
// ----------------
|
||||
|
||||
$progress-height: 1rem;
|
||||
$progress-background: $medium-gray;
|
||||
$progress-margin-bottom: $global-margin;
|
||||
$progress-meter-background: $primary-color;
|
||||
$progress-radius: $global-radius;
|
||||
|
||||
// 28. Responsive Embed
|
||||
// --------------------
|
||||
|
||||
$responsive-embed-margin-bottom: rem-calc(16);
|
||||
$responsive-embed-ratios: (
|
||||
default: 4 by 3,
|
||||
widescreen: 16 by 9,
|
||||
);
|
||||
|
||||
// 29. Reveal
|
||||
// ----------
|
||||
|
||||
$reveal-background: $white;
|
||||
$reveal-width: 600px;
|
||||
$reveal-max-width: $global-width;
|
||||
$reveal-padding: $global-padding;
|
||||
$reveal-border: 1px solid $medium-gray;
|
||||
$reveal-radius: $global-radius;
|
||||
$reveal-zindex: 1005;
|
||||
$reveal-overlay-background: rgba($black, 0.45);
|
||||
|
||||
// 30. Slider
|
||||
// ----------
|
||||
|
||||
$slider-width-vertical: 0.5rem;
|
||||
$slider-transition: all 0.2s ease-in-out;
|
||||
$slider-height: 0.5rem;
|
||||
$slider-background: $light-gray;
|
||||
$slider-fill-background: $medium-gray;
|
||||
$slider-handle-height: 1.4rem;
|
||||
$slider-handle-width: 1.4rem;
|
||||
$slider-handle-background: $primary-color;
|
||||
$slider-opacity-disabled: 0.25;
|
||||
$slider-radius: $global-radius;
|
||||
|
||||
// 31. Switch
|
||||
// ----------
|
||||
|
||||
$switch-background: $medium-gray;
|
||||
$switch-background-active: $primary-color;
|
||||
$switch-height: 2rem;
|
||||
$switch-height-tiny: 1.5rem;
|
||||
$switch-height-small: 1.75rem;
|
||||
$switch-height-large: 2.5rem;
|
||||
$switch-radius: $global-radius;
|
||||
$switch-margin: $global-margin;
|
||||
$switch-paddle-background: $white;
|
||||
$switch-paddle-offset: 0.25rem;
|
||||
$switch-paddle-radius: $global-radius;
|
||||
$switch-paddle-transition: all 0.25s ease-out;
|
||||
|
||||
// 32. Table
|
||||
// ---------
|
||||
|
||||
$table-background: $white;
|
||||
$table-color-scale: 5%;
|
||||
$table-border: 1px solid smart-scale($table-background, $table-color-scale);
|
||||
$table-padding: rem-calc(8 10 10);
|
||||
$table-hover-scale: 2%;
|
||||
$table-row-hover: darken($table-background, $table-hover-scale);
|
||||
$table-row-stripe-hover: darken($table-background, $table-color-scale + $table-hover-scale);
|
||||
$table-is-striped: true;
|
||||
$table-striped-background: smart-scale($table-background, $table-color-scale);
|
||||
$table-stripe: even;
|
||||
$table-head-background: smart-scale($table-background, $table-color-scale / 2);
|
||||
$table-head-row-hover: darken($table-head-background, $table-hover-scale);
|
||||
$table-foot-background: smart-scale($table-background, $table-color-scale);
|
||||
$table-foot-row-hover: darken($table-foot-background, $table-hover-scale);
|
||||
$table-head-font-color: $body-font-color;
|
||||
$table-foot-font-color: $body-font-color;
|
||||
$show-header-for-stacked: false;
|
||||
|
||||
// 33. Tabs
|
||||
// --------
|
||||
|
||||
$tab-margin: 0;
|
||||
$tab-background: $white;
|
||||
$tab-color: $primary-color;
|
||||
$tab-background-active: $light-gray;
|
||||
$tab-active-color: $primary-color;
|
||||
$tab-item-font-size: rem-calc(12);
|
||||
$tab-item-background-hover: $white;
|
||||
$tab-item-padding: 1.25rem 1.5rem;
|
||||
$tab-expand-max: 6;
|
||||
$tab-content-background: $white;
|
||||
$tab-content-border: $light-gray;
|
||||
$tab-content-color: $body-font-color;
|
||||
$tab-content-padding: 1rem;
|
||||
|
||||
// 34. Thumbnail
|
||||
// -------------
|
||||
|
||||
$thumbnail-border: solid 4px $white;
|
||||
$thumbnail-margin-bottom: $global-margin;
|
||||
$thumbnail-shadow: 0 0 0 1px rgba($black, 0.2);
|
||||
$thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5);
|
||||
$thumbnail-transition: box-shadow 200ms ease-out;
|
||||
$thumbnail-radius: $global-radius;
|
||||
|
||||
// 35. Title Bar
|
||||
// -------------
|
||||
|
||||
$titlebar-background: $black;
|
||||
$titlebar-color: $white;
|
||||
$titlebar-padding: 0.5rem;
|
||||
$titlebar-text-font-weight: bold;
|
||||
$titlebar-icon-color: $white;
|
||||
$titlebar-icon-color-hover: $medium-gray;
|
||||
$titlebar-icon-spacing: 0.25rem;
|
||||
|
||||
// 36. Tooltip
|
||||
// -----------
|
||||
|
||||
$has-tip-font-weight: $global-weight-bold;
|
||||
$has-tip-border-bottom: dotted 1px $dark-gray;
|
||||
$tooltip-background-color: $black;
|
||||
$tooltip-color: $white;
|
||||
$tooltip-padding: 0.75rem;
|
||||
$tooltip-font-size: $small-font-size;
|
||||
$tooltip-pip-width: 0.75rem;
|
||||
$tooltip-pip-height: $tooltip-pip-width * 0.866;
|
||||
$tooltip-radius: $global-radius;
|
||||
|
||||
// 37. Top Bar
|
||||
// -----------
|
||||
|
||||
$topbar-padding: 0.5rem;
|
||||
$topbar-background: $light-gray;
|
||||
$topbar-submenu-background: $topbar-background;
|
||||
$topbar-title-spacing: 0.5rem 1rem 0.5rem 0;
|
||||
$topbar-input-width: 200px;
|
||||
$topbar-unstack-breakpoint: medium;
|
||||
4
src/client/sass/lib/_framework.scss
Normal file
4
src/client/sass/lib/_framework.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
.relative{
|
||||
position: relative;
|
||||
}
|
||||
54
src/client/sass/lib/_listjs.scss
Normal file
54
src/client/sass/lib/_listjs.scss
Normal file
@@ -0,0 +1,54 @@
|
||||
.listjs {
|
||||
position: relative;
|
||||
|
||||
label {
|
||||
display: inline-block;
|
||||
input {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
thead, tfoot {
|
||||
tr th {
|
||||
text-align: left;
|
||||
&.sort{
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
tbody.list {
|
||||
tr:first-child td {
|
||||
border-top: solid 1px #696969;
|
||||
}
|
||||
tr:last-child td {
|
||||
border-bottom: solid 1px #696969;
|
||||
}
|
||||
|
||||
tr td {
|
||||
border-top: solid 1px #c8c8c8;
|
||||
padding: 0.3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
ul.pagination {
|
||||
float: right;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
li {
|
||||
display: inline-block;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
text-decoration: underline;
|
||||
|
||||
&.active, &.disabled {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.page {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
91
src/client/sass/lib/_modal.scss
Normal file
91
src/client/sass/lib/_modal.scss
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
.background {
|
||||
position: fixed;
|
||||
z-index: 1000000;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
//background-color: rgb(0, 0, 0); /* Fallback color */
|
||||
background-color: rgba(55, 55, 55, 0.6);
|
||||
|
||||
.modal {
|
||||
position: relative;
|
||||
top: 50%;
|
||||
//left: 10%;
|
||||
//right: 10%;
|
||||
margin: auto;
|
||||
width: 80%;
|
||||
|
||||
//background-color: #fefefe;
|
||||
|
||||
transform: translateY(-50%);
|
||||
padding: 0.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: 80%;
|
||||
max-width: nth(nth($breakpoints, 4),2);
|
||||
|
||||
&.small-margin {
|
||||
@include breakpoint(medium down) {
|
||||
width: 90%;
|
||||
}
|
||||
@include breakpoint(small down) {
|
||||
width: 95%;
|
||||
}
|
||||
}
|
||||
|
||||
@each $size in $breakpoints
|
||||
{
|
||||
&.max-#{nth($size, 1)}
|
||||
{
|
||||
max-width: nth($size, 2);
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-weight: bold;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.content-container {
|
||||
overflow-y: auto;
|
||||
max-height: 100%;
|
||||
|
||||
.loader{
|
||||
position:static;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.close {
|
||||
text-align: right;
|
||||
//color: #aaa;
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
//color: black;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-button-container {
|
||||
padding-top: 0.5rem;
|
||||
.button {
|
||||
margin-left: 0.2rem;
|
||||
margin-bottom: 0 !important;
|
||||
padding: 0.6em 0.8em;
|
||||
@include breakpoint(small down) {
|
||||
margin-left: 0.1rem;
|
||||
padding: 0.3em 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
src/client/sass/lib/_pwaAssets.scss
Normal file
7
src/client/sass/lib/_pwaAssets.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
.no-transition{
|
||||
transition: none !important;
|
||||
* {
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
10
src/client/sass/lib/_rotate.scss
Normal file
10
src/client/sass/lib/_rotate.scss
Normal file
@@ -0,0 +1,10 @@
|
||||
.rotated{
|
||||
transform-origin: bottom center;
|
||||
height: 50%;
|
||||
//display: inline-block;
|
||||
position: absolute;
|
||||
top:0;
|
||||
bottom:0;
|
||||
left:0;
|
||||
right:0;
|
||||
}
|
||||
97
src/client/sass/lib/_settingsSite.scss
Normal file
97
src/client/sass/lib/_settingsSite.scss
Normal file
@@ -0,0 +1,97 @@
|
||||
//@import "../../../node_modules/foundation-sites/scss/foundation";
|
||||
|
||||
.settings-container {
|
||||
border: 1px solid black;
|
||||
border-radius: 2px;
|
||||
padding: 0.3rem;
|
||||
|
||||
#settings-fragments-container {
|
||||
@include breakpoint(medium) {
|
||||
border-left: 1px solid $prototype-border-color;
|
||||
}
|
||||
|
||||
#settings-fragments {
|
||||
> * {
|
||||
display: none;
|
||||
&.active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
@include breakpoint(small down){
|
||||
font-size: 0.6em;
|
||||
}
|
||||
@include breakpoint(smedium down){
|
||||
font-size: 0.7em;
|
||||
}
|
||||
input {
|
||||
|
||||
display: none;
|
||||
&:checked + .slider{
|
||||
//background-color: #2196F3;
|
||||
&:before{
|
||||
transform: translateX(1.5em);
|
||||
}
|
||||
}
|
||||
&:focus + .slider{
|
||||
//box-shadow: 0 0 1px #2196F3;
|
||||
}
|
||||
}
|
||||
.slider {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
width: 3em;
|
||||
height: 1.5em;
|
||||
border-radius: 1.5em;
|
||||
background-color: #ccc;
|
||||
transition: .4s;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
&:before{
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 1.1em;
|
||||
width: 1.1em;
|
||||
left: 0.15em;
|
||||
bottom: 0.15em;
|
||||
background-color: white;
|
||||
transition: .4s;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
img, svg{
|
||||
width: 1.4em;
|
||||
display: inline;
|
||||
vertical-align: initial;
|
||||
path{
|
||||
stroke-color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
label{
|
||||
font-size: 1em !important;
|
||||
|
||||
}
|
||||
.setting-row:not(.hidden){
|
||||
line-height: 1;
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
background: rgba(195, 195, 195, 0.13);
|
||||
//display: inline-block;
|
||||
|
||||
input[type=checkbox]
|
||||
{
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
10
src/client/sass/lib/_share.scss
Normal file
10
src/client/sass/lib/_share.scss
Normal file
@@ -0,0 +1,10 @@
|
||||
.share-icon {
|
||||
width: 1.5rem;
|
||||
max-width: 1.5rem;
|
||||
margin: 0.1rem;
|
||||
|
||||
svg{
|
||||
width: 1.5rem;
|
||||
max-width: 1.5rem;
|
||||
}
|
||||
}
|
||||
135
src/client/sass/lib/_style.scss
Normal file
135
src/client/sass/lib/_style.scss
Normal file
@@ -0,0 +1,135 @@
|
||||
.zf-green {
|
||||
color: #68b604
|
||||
}
|
||||
|
||||
.column:last-child:not(:first-child), .columns:last-child:not(:first-child) {
|
||||
float: left
|
||||
}
|
||||
|
||||
input[type=checkBox].form-control {
|
||||
height: 24px;
|
||||
height: 1.5rem;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
[type=submit] {
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 39px;
|
||||
height: 2.4375rem;
|
||||
padding: 8px;
|
||||
padding: .5rem;
|
||||
border: 1px solid #cacaca;
|
||||
margin: 0 0 16px;
|
||||
margin: 0 0 1rem;
|
||||
font-family: inherit;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
color: #0a0a0a;
|
||||
background-color: #fefefe;
|
||||
box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, .1);
|
||||
border-radius: 0;
|
||||
transition: box-shadow .5s, border-color .25s ease-in-out;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none
|
||||
}
|
||||
|
||||
form ul li {
|
||||
color: red;
|
||||
font-size: 12.8px;
|
||||
font-size: .8rem
|
||||
}
|
||||
|
||||
.button-dropdown:after {
|
||||
border-color: #000 transparent transparent;
|
||||
border-width: .4em;
|
||||
border-style: solid;
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: .4em;
|
||||
display: block;
|
||||
height: 0;
|
||||
width: 0;
|
||||
right: 1em
|
||||
}
|
||||
|
||||
.button-dropdown {
|
||||
position: relative;
|
||||
display: block;
|
||||
padding-right: 2em
|
||||
}
|
||||
|
||||
.button-dropdown.open:after {
|
||||
border-color: transparent transparent #000;
|
||||
top: 0
|
||||
}
|
||||
|
||||
a.ui-datepicker-next, a.ui-datepicker-prev {
|
||||
height: 100% !important
|
||||
}
|
||||
|
||||
div.container a.navbar-brand > img {
|
||||
display: inline;
|
||||
margin-right: 4px
|
||||
}
|
||||
|
||||
ul.menu.plain li.active a {
|
||||
background-color: #ededed;
|
||||
color: #000
|
||||
}
|
||||
|
||||
ul.menu.plain li a {
|
||||
color: #000
|
||||
}
|
||||
|
||||
ul.menu.plain li a:hover {
|
||||
color: #525252
|
||||
}
|
||||
|
||||
ul.submenu {
|
||||
border-top: 1px solid #bcbcbc;
|
||||
border-bottom: 1px solid #bcbcbc;
|
||||
margin-left: 10px
|
||||
}
|
||||
|
||||
#cookie-compliance {
|
||||
line-height: 1.2;
|
||||
font-size: 0.8rem;
|
||||
width: 100%;
|
||||
margin: 0 0;
|
||||
padding: 0.3rem 0;
|
||||
#close-cookie-msg {
|
||||
float: right;
|
||||
margin-bottom: 0;
|
||||
margin-right: 3px;
|
||||
padding: 0.4rem 0.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-container .button
|
||||
{
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@for $i from 1 through 20 {
|
||||
$factor: $i/20;
|
||||
$value: percentage($factor);
|
||||
.height-#{$factor*100} {
|
||||
height: $value;
|
||||
}
|
||||
.max-height-#{$factor*100} {
|
||||
max-height: $value;
|
||||
}
|
||||
.width-#{$factor*100} {
|
||||
width: $value;
|
||||
}
|
||||
.max-width-#{$factor*100} {
|
||||
max-width: $value;
|
||||
}
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
18
src/client/sass/lib/_tabs.scss
Normal file
18
src/client/sass/lib/_tabs.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
.tab-header-container{
|
||||
//border-bottom: 1px solid #b0b0b0;
|
||||
//margin-bottom: -1px;
|
||||
|
||||
.tab-header{
|
||||
display:inline-block;
|
||||
background-color: #eeeeee;
|
||||
border: 1px solid #b0b0b0;
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
padding: 0 5px;
|
||||
|
||||
&.active{
|
||||
border-bottom: 0;
|
||||
background-color: #FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
117
src/client/sass/lib/_theme.scss
Normal file
117
src/client/sass/lib/_theme.scss
Normal file
@@ -0,0 +1,117 @@
|
||||
* {
|
||||
//transition: background-color .25s ease-out, color .25s ease-out;
|
||||
transition: .25s ease-out, color .25s ease-out;
|
||||
}
|
||||
|
||||
@mixin defineTheme($theme) {
|
||||
background: map-get($theme, background);
|
||||
color: map-get($theme, textColor);
|
||||
|
||||
#cookie-compliance {
|
||||
background-color: map-get($theme, lightThemeColor);
|
||||
color: map-get($theme, navBarTextColor);
|
||||
a.link {
|
||||
color: map-get($theme, lightLinkColor);
|
||||
border-bottom-color: map-get($theme, lightLinkColor);
|
||||
&:hover {
|
||||
color: map-get($theme, lightLinkHoverColor);
|
||||
border-bottom-color: map-get($theme, lightLinkHoverColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
a.link {
|
||||
text-decoration: none;
|
||||
color: map-get($theme, linkColor);
|
||||
border-bottom: map-get($theme, linkBorderBottom);
|
||||
&:hover {
|
||||
color: map-get($theme, linkHoverColor);
|
||||
border-bottom-color: map-get($theme, linkHoverColor);
|
||||
}
|
||||
}
|
||||
.loader #spinner {
|
||||
stroke: map-get($theme, spinnerColor);
|
||||
}
|
||||
|
||||
nav.top-bar {
|
||||
color: map-get($theme, navBarTextColor);
|
||||
background: map-get($theme, themeColor);
|
||||
}
|
||||
.top-bar {
|
||||
ul {
|
||||
background: map-get($theme, themeColor) !important;
|
||||
a {
|
||||
color: map-get($theme, navBarTextColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
button.button, a.button {
|
||||
background-color: map-get($theme, themeColor);
|
||||
&.disabled, &.disabled:hover, &.disabled:focus, &:hover {
|
||||
background-color: map-get($theme, themeColor);
|
||||
}
|
||||
}
|
||||
.switch {
|
||||
input {
|
||||
&:checked + .slider {
|
||||
background-color: map-get($theme, themeColor);
|
||||
}
|
||||
&:focus + .slider {
|
||||
box-shadow: 0 0 1px map-get($theme, themeColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
label {
|
||||
color: #{map-get($theme, textColor)};
|
||||
}
|
||||
.background .modal {
|
||||
background-color: #fefefe;
|
||||
}
|
||||
|
||||
svg {
|
||||
.fill-color, &.fill-color{
|
||||
fill: currentColor;
|
||||
}
|
||||
.fill-background, &.fill-background{
|
||||
fill: #fefefe;
|
||||
}
|
||||
}
|
||||
|
||||
//Forms
|
||||
label {
|
||||
[type='text'], [type='password'], [type='date'], [type='datetime'], [type='datetime-local'], [type='month'], [type='week'], [type='email'], [type='number'], [type='search'], [type='tel'], [type='time'], [type='url'], [type='color'], textarea, input[type=text], input:not([type]) {
|
||||
border-bottom: solid #{map-get($theme, textColor)};
|
||||
background: #{map-get($theme, background)};
|
||||
color:#{map-get($theme, textColor)};
|
||||
|
||||
&:focus {
|
||||
border-bottom: solid #{map-get($theme, textColor)};
|
||||
}
|
||||
&:focus, &.notEmpty:not(:focus) {
|
||||
~ span {
|
||||
color: #{map-get($theme, textColor)};
|
||||
}
|
||||
}
|
||||
~ span {
|
||||
color: #{adjust_color( map-get($theme, textColor), $alpha: -0.35)};
|
||||
}
|
||||
}
|
||||
textarea {
|
||||
box-shadow: 0 0 3px 2px hsla(0, 0%, 53%, .31) !important;
|
||||
}
|
||||
}
|
||||
input.notEmpty:invalid {
|
||||
background-color: #{adjust_color( map-get($theme, themeColor), $alpha: -0.35)};
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
@each $theme, $values in $themes {
|
||||
@if (map-get($values, class) == "") {
|
||||
@include defineTheme($values)
|
||||
} @else {
|
||||
&.#{map-get($values, class)} {
|
||||
@include defineTheme($values)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user