This commit is contained in:
2017-11-03 05:11:19 +00:00
parent e41d4a6394
commit caca186710
12 changed files with 172 additions and 172 deletions

View File

@@ -10,7 +10,7 @@
</head>
<body class="sui">
<div class="content">
<form id="prototypControls" class="spiro-control container collapsible">
<form id="prototypControls" class="spiro-control container collapsible open">
<span class="heading">Laser</span>
<div class="content">
<ul>

View File

@@ -1,7 +1,64 @@
.hidden {
display: none;
}
.shown {
display: block;
}
.sui {
background: #000000;
color: #0eb8c0;
font-family: "Open Sans";
font-size: 16px;
}
.sui * {
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
.sui > .content {
padding: 16px;
}
.sui label {
color: #b3b2b2;
}
.sui button {
background: #097479;
color: white;
border: 0;
padding: .8em;
}
.heading {
font-size: 1.2em;
display: block;
margin-bottom: 16px;
}
.container {
background: #333333;
padding: 16px;
border-radius: 4px;
border: solid 1px #555555;
margin-bottom: 8px;
}
.container.collapsible > .heading {
margin-bottom: 0;
}
.container.collapsible > .heading:hover {
cursor: pointer;
}
.container.collapsible > .content {
display: none;
}
.container.collapsible.open > .heading {
margin-bottom: 16px;
}
.container.collapsible.open > .content {
display: block;
}
input[type=range] {
-webkit-appearance: none;
width: 100%;
margin: 8.4px 0;
padding: 0 !important;
}
input[type=range]:focus {
outline: none;
@@ -179,87 +236,24 @@ form .form-row input[type="checkbox"] {
flex: 5;
}
}
.sui {
background: #000000;
color: #0eb8c0;
font-family: "Open Sans";
}
.sui * {
margin: 0;
padding: 0;
}
.sui .hidden {
display: none;
}
.sui .shown {
display: block;
}
.sui input {
padding: .5em;
}
.sui button {
padding: .8em;
}
.sui > .content {
padding: 16px;
}
.sui > .content .heading {
font-size: 1.2em;
display: block;
margin-bottom: 16px;
}
.sui > .content .container {
background: #333333;
padding: 16px;
border-radius: 4px;
border: solid 1px #555555;
margin-bottom: 8px;
}
.sui > .content .container.collapsible > .heading {
margin-bottom: 0;
}
.sui > .content .container.collapsible > .heading:hover {
cursor: pointer;
}
.sui > .content .container.collapsible > .content {
display: none;
}
.sui > .content .container.collapsible.open > .heading {
margin-bottom: 16px;
}
.sui > .content .container.collapsible.open > .content {
display: block;
}
.sui > .content label {
color: #b3b2b2;
}
.sui > .content input[type="text"],
.sui > .content input[type="password"] {
.sui input[type="text"],
.sui input[type="password"] {
height: 16px;
background: transparent;
border: none;
color: #eeeeee;
}
.sui > .content input[type="text"]:focus,
.sui > .content input[type="password"]:focus,
.sui > .content input[type="text"]:hover,
.sui > .content input[type="password"]:hover {
.sui input[type="text"]:focus,
.sui input[type="password"]:focus,
.sui input[type="text"]:hover,
.sui input[type="password"]:hover {
outline: none;
border-bottom: solid 1px #097479;
box-shadow: 3px #097479;
}
.sui > .content input[type="checkbox"] {
.sui input[type="checkbox"] {
transform: scale(2);
}
.sui > .content input[type="range"] {
padding: 0;
}
.sui > .content button {
background: #097479;
color: white;
border: 0;
}
.spiro-control .form-row.info {
padding-bottom: 0px;
margin-bottom: 0px;
}

View File

@@ -10,7 +10,7 @@
</head>
<body class="sui">
<div class="content">
<form id="prototypControls" class="spiro-control container collapsible">
<form id="prototypControls" class="spiro-control container collapsible open">
<span class="heading">Laser</span>
<div class="content">
<ul>

36
frontend/styles/base.less Normal file
View File

@@ -0,0 +1,36 @@
.hidden {
display: none;
}
.shown {
display: block;
}
.sui {
background: @color-black;
color: @color-main-light;
font-family: @default-font;
font-size: @default-font-size;
* {
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
> .content {
padding: @default-padding;
}
label {
color: @color-grey;
}
button {
background: @color-main;
color: white;
border: 0;
padding: .8em;
}
}

View File

@@ -0,0 +1,26 @@
.container {
background: @color-container;
padding: @default-padding;
border-radius: @default-border-radius;
border: solid 1px @default-border-color;
margin-bottom: @default-margin-small;
&.collapsible {
> .heading {
margin-bottom: 0;
&:hover {
cursor: pointer;
}
}
> .content {
.hidden;
}
&.open {
> .heading {
margin-bottom: @default-margin;
}
> .content {
.shown;
}
}
}
}

View File

@@ -0,0 +1,24 @@
.sui {
input {
padding: .5em;
}
input[type="text"], input[type="password"] {
height: @input-text-height;
background: transparent;
border: none;
color: @color-white;
&:focus, &:hover {
outline: none;
border-bottom: solid 1px @color-main;
box-shadow: 3px @color-main;
}
}
input[type="checkbox"] {
transform: scale(@input-checkbox-scale);
}
input[type="range"] {
}
}

View File

@@ -30,17 +30,17 @@ form {
.form-row input[type="range"] {
}
@media screen and (min-width: 768px) {
@media screen and (min-width: 768px) {
.form-row > input, .form-row > span {
flex: 3;
}
}
@media screen and (min-width: 992px) {
@media screen and (min-width: 992px) {
.form-row > input, .form-row > span {
flex: 4;
}
}
@media screen and (min-width: 1200px) {
@media screen and (min-width: 1200px) {
.form-row > input, .form-row > span {
flex: 5;
}

View File

@@ -2,6 +2,7 @@ input[type=range] {
-webkit-appearance: none;
width: 100%;
margin: 8.4px 0;
padding: 0 !important;
}
input[type=range]:focus {
outline: none;

View File

@@ -3,7 +3,9 @@
position: relative;
display: inline;
input {display:none;}
input {
display:none;
}
/* The slider */
.slider {

View File

@@ -0,0 +1,5 @@
.heading {
font-size: 1.2em;
display: block;
margin-bottom: @default-margin;
}

View File

@@ -1,99 +1,10 @@
@import "theme.less";
@import "base.less";
@import "heading.less";
@import "container.less";
@import "form/slider.less";
@import "form/switch.less";
@import "form/layout.less";
@import "theme.less";
.sui {
background: @color-black;
color: @color-main-light;
font-family: @default-font;
* {
margin: 0;
padding: 0;
}
.hidden {
display: none;
}
.shown {
display: block;
}
input {
padding: .5em;
}
button {
padding: .8em;
}
> .content {
padding: @default-padding;
.heading {
font-size: 1.2em;
display: block;
margin-bottom: @default-margin;
}
.container {
background: @color-container;
padding: @default-padding;
border-radius: @default-border-radius;
border: solid 1px @default-border-color;
margin-bottom: @default-margin-small;
&.collapsible {
> .heading {
margin-bottom: 0;
&:hover {
cursor: pointer;
}
}
> .content {
.hidden;
}
&.open {
> .heading {
margin-bottom: @default-margin;
}
> .content {
.shown;
}
}
}
}
label {
color: @color-grey;
}
input[type="text"], input[type="password"] {
height: @input-text-height;
background: transparent;
border: none;
color: @color-white;
&:focus, &:hover {
outline: none;
border-bottom: solid 1px @color-main;
box-shadow: 3px @color-main;
}
}
input[type="checkbox"] {
transform: scale(@input-checkbox-scale);
}
input[type="range"] {
padding: 0;
}
button {
background: @color-main;
color: white;
border: 0;
}
}
}
.spiro-control {
.form-row.info {
padding-bottom: 0px;
margin-bottom: 0px;
}
}
@import "form/input.less";

View File

@@ -12,6 +12,7 @@
@default-margin-small: 8px;
@default-border-radius: 4px;
@default-border-color: #555555;
@default-font-size: 16px;
@input-text-height: 16px;
@input-checkbox-scale: 2;