hedera-web/js/htk/style/style.scss

315 lines
4.2 KiB
SCSS
Raw Normal View History

2022-06-06 16:19:43 +00:00
@import "./classes";
2022-05-24 10:18:44 +00:00
2022-05-21 21:31:56 +00:00
@font-face {
font-family: 'Poppins';
src: url('poppins.ttf') format('truetype');
}
2022-05-24 10:18:44 +00:00
@font-face {
font-family: 'Open Sans';
src: url('opensans.ttf') format('truetype');
}
/* Global */
2022-05-21 21:31:56 +00:00
body {
font-family: 'Poppins', 'Verdana', 'Sans';
2022-05-05 13:54:53 +00:00
background-color: #FAFAFA;
2016-10-04 15:27:49 +00:00
color: #333;
position: absolute;
height: 100%;
width: 100%;
margin: 0;
2016-10-04 15:27:49 +00:00
overflow: auto;
z-index: -2;
}
label,
button,
input,
2015-09-28 09:46:24 +00:00
select,
2015-12-10 13:48:43 +00:00
textarea,
2022-05-21 21:31:56 +00:00
option {
2015-12-10 13:48:43 +00:00
font-size: inherit;
font-family: inherit;
color: inherit;
}
2022-05-21 21:31:56 +00:00
iframe {
2015-12-10 13:48:43 +00:00
border: none;
}
2022-05-21 21:31:56 +00:00
fieldset {
margin: 0;
}
2022-05-21 21:31:56 +00:00
form {
padding: 0;
margin: 0;
}
2022-05-21 21:31:56 +00:00
table {
width: 100%;
}
a:link,
a:visited,
2022-05-21 21:31:56 +00:00
a:active {
color: inherit;
text-decoration: none;
}
2022-05-21 21:31:56 +00:00
a:hover {
text-decoration: none;
cursor: pointer;
}
2022-05-21 21:31:56 +00:00
a img {
padding: 1px;
}
2022-05-21 21:31:56 +00:00
a img:hover {
opacity: 0.9;
}
2022-05-21 21:31:56 +00:00
p {
margin: 0.8em 0;
}
2015-12-02 17:26:58 +00:00
/* Focus outline */
2022-05-21 21:31:56 +00:00
a:focus {
2015-12-02 17:26:58 +00:00
outline: 1px solid rgba(1, 1, 1, 0.15);
-moz-outline-radius: .1em;
}
2022-05-21 21:31:56 +00:00
input:focus,
button:focus {
outline: 0;
}
2015-12-10 13:48:43 +00:00
button::-moz-focus-inner,
input[type=submit]::-moz-focus-inner,
input[type=button]::-moz-focus-inner,
2022-05-21 21:31:56 +00:00
input[type=reset]::-moz-focus-inner {
2015-12-02 17:26:58 +00:00
border: none;
}
2022-05-21 21:31:56 +00:00
select:-moz-focusring {
2015-12-10 13:48:43 +00:00
/* color: transparent;
text-shadow: 0 0 0 #333;*/
2015-12-02 17:26:58 +00:00
}
2022-05-21 21:31:56 +00:00
input:-webkit-autofill {
-webkit-box-shadow: inset 0 0 0px 9999px white;
}
2015-12-02 17:26:58 +00:00
/* Inputs */
input[type=text],
input[type=password],
input[type=file],
input[type=number],
textarea,
2015-10-23 23:23:19 +00:00
select,
2022-05-21 21:31:56 +00:00
.input {
border: 1px solid #ddd;
transition: border-color 100ms ease-in;
margin: .2em 0;
2015-09-28 09:46:24 +00:00
box-sizing: border-box;
color: #333;
border-radius: 0;
text-align: left;
width: 100%;
2022-05-21 21:31:56 +00:00
&:focus {
border-color: #333;
}
}
input[type=text],
input[type=password],
2022-05-28 00:37:24 +00:00
input[type=file],
input[type=number],
textarea,
2022-05-21 21:31:56 +00:00
.input,
select {
padding: .8em;
}
input[type=text],
2015-09-28 09:46:24 +00:00
input[type=password],
input[type=file],
input[type=number],
select,
2022-05-21 21:31:56 +00:00
.input {
height: 2.8em;
}
2022-05-21 21:31:56 +00:00
textarea {
height: 3.5em;
width: 20em;
}
2022-05-21 21:31:56 +00:00
input[type=text]:disabled {
background-color: #f3f3f3;
}
input[type=checkbox],
2022-05-21 21:31:56 +00:00
input[type=radio] {
cursor: pointer;
2022-05-25 18:04:16 +00:00
margin: 0;
margin-right: 10px;
}
2022-05-21 21:31:56 +00:00
select {
2022-05-25 18:04:16 +00:00
@extend %clickable;
2022-05-26 06:08:31 +00:00
background-color: transparent;
2015-09-28 09:46:24 +00:00
-moz-appearance: none;
appearance: none;
2022-05-25 18:04:16 +00:00
line-height: 1em;
2015-09-28 09:46:24 +00:00
}
2022-05-21 21:31:56 +00:00
option {
2015-09-28 09:46:24 +00:00
padding: .4em;
border-width: 0;
font-weight: normal;
font-size: 1em;
}
select,
2022-05-21 21:31:56 +00:00
option {
2015-09-28 09:46:24 +00:00
cursor: pointer;
}
/* Buttons */
input[type=submit],
2015-12-10 13:48:43 +00:00
input[type=button],
2018-03-07 11:17:00 +00:00
input[type=reset],
button,
2022-05-21 21:31:56 +00:00
.button {
2022-05-25 18:04:16 +00:00
@extend %clickable;
border: none;
background-color: transparent;
2022-06-07 08:19:29 +00:00
padding: 8px;
2022-05-25 18:04:16 +00:00
border-radius: 22px;
2022-06-06 16:22:26 +00:00
font-weight: normal;
2022-05-25 18:04:16 +00:00
&:disabled {
2022-05-28 15:49:46 +00:00
background-color: rgba(0, 0, 0, .1);
2022-05-25 18:04:16 +00:00
}
}
2022-05-21 21:31:56 +00:00
.button {
2018-03-07 11:29:53 +00:00
display: inline-block;
text-align: center;
box-sizing: border-box;
}
/* Image */
2022-05-21 21:31:56 +00:00
img.editable {
cursor: pointer;
}
/* Float */
2022-05-21 21:31:56 +00:00
.clear {
2016-05-02 13:05:49 +00:00
clear: both !important;
}
2022-05-28 00:37:24 +00:00
/* Clickable */
.clickable {
@extend %clickable;
}
/* Box */
2022-05-21 21:31:56 +00:00
.box {
2022-05-24 10:18:44 +00:00
@extend %box;
margin: 0 auto;
2022-05-26 06:08:31 +00:00
box-sizing: border-box;
2022-05-25 18:04:16 +00:00
.header {
padding: 0.6em 0.8em;
margin: 0;
background-color: #009688;
color: white;
& > h1 {
color: white;
text-align: left;
font-size: 1.6em;
line-height: 2em;
font-weight: normal;
display: inline;
}
}
.body {
padding: 2em;
}
}
/* Form */
2022-05-21 21:31:56 +00:00
.form {
margin: 0 auto;
}
2022-05-21 21:31:56 +00:00
.form > h2 {
margin-bottom: .8em;
}
.form-group {
2016-05-02 13:05:49 +00:00
margin-bottom: 1.2em;
2022-05-25 18:04:16 +00:00
&:last-child {
margin-bottom: 0;
}
& > label {
display: block;
margin: 0;
margin-bottom: .2em;
color: #222;
}
& > input[type=text],
& > input[type=password],
& > input[type=file],
& > input[type=number],
& > select,
& > textarea {
margin: 0;
width: 100%;
}
}
/* Form */
2022-05-21 21:31:56 +00:00
table.form {
padding: 1em;
border-collapse: separate;
border-spacing: 0.3em;
}
2022-05-21 21:31:56 +00:00
table.form td.label {
width: 45%;
text-align: right;
}
2022-05-21 21:31:56 +00:00
table.form tr {
height: 2.8em;
}
/* Icon */
2022-05-21 21:31:56 +00:00
img.icon {
height: 1.5em;
}
/* Masonry */
2022-05-21 21:31:56 +00:00
.masonry {
margin: 0 auto;
text-align: left;
}
2022-05-21 21:31:56 +00:00
.masonry-box {
width: 100%;
display: inline-block;
vertical-align: top;
}
2022-05-21 21:31:56 +00:00
@media screen and (min-width: 1000px) and (max-width: 1399px) {
.masonry-box
{
width: 50%;
display: block;
float: left;
clear: left;
}
.masonry-box:nth-child(2n+0)
{
float: right;
clear: right;
}
}
2022-05-21 21:31:56 +00:00
@media screen and (min-width: 1400px) {
.masonry-box { width: 33.3%; }
}
2022-05-21 21:31:56 +00:00
@media screen and (min-width: 2000px) {
.masonry-box { width: 25%; }
}