mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
moved emberjs to gui folder
This commit is contained in:
parent
6a18d18f91
commit
dc49dbbeff
999 changed files with 677 additions and 651 deletions
57
gui/app/styles/widget/widget-avatar.scss
Normal file
57
gui/app/styles/widget/widget-avatar.scss
Normal file
|
@ -0,0 +1,57 @@
|
|||
.avatar {
|
||||
color: $color-white;
|
||||
background-color: $color-gray;
|
||||
@include border-radius(20px);
|
||||
@include ease-in();
|
||||
padding: 10px 0 0 0;
|
||||
letter-spacing: 1px;
|
||||
text-align: center;
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
}
|
||||
|
||||
.avatar-large {
|
||||
color: $color-white;
|
||||
background-color: $color-gray;
|
||||
@include border-radius(100px);
|
||||
@include ease-in();
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
font-size: 30px;
|
||||
padding: 28px;
|
||||
letter-spacing: 1px;
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.avatar-picker {
|
||||
background-color: $color-off-white;
|
||||
@include border-radius(20px);
|
||||
@include ease-in();
|
||||
padding: 7px 0 0 0;
|
||||
letter-spacing: 1px;
|
||||
text-align: center;
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
> i {
|
||||
color: $color-link;
|
||||
}
|
||||
}
|
||||
|
||||
> i {
|
||||
color: $color-gray;
|
||||
font-size: 1.4rem;
|
||||
@include ease-in();
|
||||
}
|
||||
}
|
||||
|
||||
.avatar-remover {
|
||||
&:hover {
|
||||
color: $color-white;
|
||||
background-color: $color-red;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
316
gui/app/styles/widget/widget-button.scss
Normal file
316
gui/app/styles/widget/widget-button.scss
Normal file
|
@ -0,0 +1,316 @@
|
|||
// Copyright (c) 2015 Documize Inc.
|
||||
|
||||
@mixin button-hover-state($bg) {
|
||||
&:hover {
|
||||
background-color: lighten($bg, 3%);
|
||||
@extend .z-depth-tiny;
|
||||
}
|
||||
}
|
||||
|
||||
.square-button-mono {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
line-height: 31px;
|
||||
padding: 0;
|
||||
border-radius: 2px;
|
||||
transition: .3s;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
border: 1px solid $color-gray;
|
||||
text-align: center;
|
||||
@extend .no-select;
|
||||
@include ease-in();
|
||||
|
||||
&:hover {
|
||||
@extend .z-depth-tiny;
|
||||
}
|
||||
|
||||
i {
|
||||
color: $color-gray;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&:before {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.round-button-mono {
|
||||
@extend .no-select;
|
||||
@include ease-in();
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
line-height: 34px;
|
||||
padding: 0;
|
||||
border-radius: 50%;
|
||||
transition: .3s;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
border: 1px solid $color-stroke;
|
||||
text-align: center;
|
||||
font-size: 1.2rem;
|
||||
background-color: transparent;
|
||||
|
||||
&:hover {
|
||||
@extend .z-depth-tiny;
|
||||
}
|
||||
|
||||
i {
|
||||
color: $color-stroke;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&:before {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.square-button-white {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
line-height: 31px;
|
||||
padding: 0;
|
||||
border-radius: 2px;
|
||||
transition: .3s;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
background-color: $color-white;
|
||||
border: 1px solid $color-stroke;
|
||||
text-align: center;
|
||||
@extend .no-select;
|
||||
@include ease-in();
|
||||
|
||||
&:hover {
|
||||
@extend .z-depth-tiny;
|
||||
}
|
||||
|
||||
i {
|
||||
color: $color-gray;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&:before {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.button-red-text {
|
||||
&:hover {
|
||||
> .material-icons {
|
||||
@include ease-in();
|
||||
color: $color-red !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.round-button {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
line-height: 36px;
|
||||
padding: 0;
|
||||
border-radius: 50%;
|
||||
transition: .3s;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
@extend .no-select;
|
||||
@include ease-in();
|
||||
font-size: 1.2rem;
|
||||
|
||||
> i {
|
||||
color: $color-white;
|
||||
}
|
||||
|
||||
&:before {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.round-button-small {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
font-size: 0.9rem;
|
||||
|
||||
> .material-icons {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.square-button {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
line-height: 34px;
|
||||
padding: 0;
|
||||
border-radius: 2px;
|
||||
transition: .3s;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
@extend .no-select;
|
||||
@include ease-in();
|
||||
|
||||
> i {
|
||||
color: $color-white;
|
||||
}
|
||||
|
||||
&:before {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.regular-button {
|
||||
text-decoration: none;
|
||||
padding: 0 1rem;
|
||||
text-align: center;
|
||||
letter-spacing: .5px;
|
||||
transition: .2s ease-out;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
height: 32px;
|
||||
line-height: 34px;
|
||||
font-size: 0.9em;
|
||||
outline: 0;
|
||||
text-transform: uppercase;
|
||||
vertical-align: middle;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
color: $color-white;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
@extend .no-select;
|
||||
@include ease-in();
|
||||
|
||||
> .name {
|
||||
vertical-align: top;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.button-red {
|
||||
background-color: $color-red;
|
||||
@include button-hover-state($color-red);
|
||||
}
|
||||
|
||||
.button-blue {
|
||||
background-color: $color-blue;
|
||||
@include button-hover-state($color-blue);
|
||||
}
|
||||
|
||||
.button-green {
|
||||
background-color: $color-green;
|
||||
@include button-hover-state($color-green);
|
||||
}
|
||||
|
||||
.button-gray {
|
||||
background-color: $color-gray;
|
||||
@include button-hover-state($color-gray);
|
||||
}
|
||||
|
||||
.button-white {
|
||||
border: 1px solid $color-stroke;
|
||||
background-color: $color-white;
|
||||
color: $color-blue;
|
||||
@include button-hover-state($color-white);
|
||||
}
|
||||
|
||||
.button-black {
|
||||
border: none;
|
||||
background-color: $color-off-black;
|
||||
color: $color-white;
|
||||
@include button-hover-state($color-black);
|
||||
}
|
||||
|
||||
.button-transparent {
|
||||
background-color: transparent;
|
||||
color: $color-gray;
|
||||
border: 1px solid $color-gray;
|
||||
}
|
||||
|
||||
.flat-button {
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
color: $color-off-black;
|
||||
cursor: pointer;
|
||||
border: 1px solid transparent;
|
||||
text-decoration: none;
|
||||
padding: 0 0.7rem;
|
||||
text-align: center;
|
||||
letter-spacing: .5px;
|
||||
transition: .2s ease-out;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
height: 33px;
|
||||
line-height: 34px;
|
||||
font-size: 0.9em;
|
||||
outline: 0;
|
||||
text-transform: uppercase;
|
||||
vertical-align: middle;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
@extend .no-select;
|
||||
@include ease-in();
|
||||
|
||||
&:hover {
|
||||
box-shadow: none;
|
||||
border: 1px solid #e2e2e2;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: $color-off-white;
|
||||
}
|
||||
}
|
||||
|
||||
.flat-red {
|
||||
color: $color-red;
|
||||
|
||||
&:hover {
|
||||
border: 1px solid $color-red;
|
||||
}
|
||||
}
|
||||
|
||||
.flat-blue {
|
||||
color: $color-blue;
|
||||
|
||||
&:hover {
|
||||
border: 1px solid $color-blue;
|
||||
}
|
||||
}
|
||||
|
||||
.flat-green {
|
||||
color: $color-green;
|
||||
|
||||
&:hover {
|
||||
border: 1px solid $color-green;
|
||||
}
|
||||
}
|
||||
|
||||
.flat-gray {
|
||||
color: $color-gray;
|
||||
|
||||
&:hover {
|
||||
border: 1px solid $color-gray;
|
||||
}
|
||||
}
|
||||
|
||||
.button-gap {
|
||||
width: 5px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
@extend .no-select;
|
||||
}
|
68
gui/app/styles/widget/widget-card.scss
Normal file
68
gui/app/styles/widget/widget-card.scss
Normal file
|
@ -0,0 +1,68 @@
|
|||
.base-card {
|
||||
border: 1px solid $color-border;
|
||||
display: inline-block;
|
||||
border-radius : 3px;
|
||||
background-color: $color-white;
|
||||
|
||||
&:hover {
|
||||
@extend .z-depth-half;
|
||||
background-color: $color-card-active;
|
||||
border-color: $color-card-active;
|
||||
transition: 0.2s all ease;
|
||||
}
|
||||
}
|
||||
|
||||
.content-card {
|
||||
@extend .base-card;
|
||||
margin: 0 12px 12px 0;
|
||||
padding: 20px 20px;
|
||||
width: 200px;
|
||||
height: 250px;
|
||||
position: relative;
|
||||
|
||||
.title {
|
||||
font-size: 1rem;
|
||||
font-family: "open_sanssemibold";
|
||||
height: 3rem;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.snippet {
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.1rem;
|
||||
height: 2rem;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.stacked-card {
|
||||
@extend .base-card;
|
||||
padding: 20px 20px;
|
||||
position: relative;
|
||||
|
||||
.title {
|
||||
font-size: 1rem;
|
||||
font-family: "open_sanssemibold";
|
||||
margin-bottom: 0.75rem;
|
||||
color: $color-off-black;
|
||||
}
|
||||
|
||||
.snippet {
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.1rem;
|
||||
margin-bottom: 0.75rem;
|
||||
color: $color-stroke;
|
||||
}
|
||||
}
|
||||
|
||||
.cards-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
> li {
|
||||
list-type: none;
|
||||
float: left;
|
||||
}
|
||||
}
|
27
gui/app/styles/widget/widget-checkbox.scss
Normal file
27
gui/app/styles/widget/widget-checkbox.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
.ui-checkbox {
|
||||
vertical-align: bottom;
|
||||
cursor: pointer;
|
||||
font-size: 1.1rem;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
margin: 0 0 5px 0;
|
||||
|
||||
> .material-icons {
|
||||
font-size: 1.4rem;
|
||||
color: $color-gray;
|
||||
vertical-align: top;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
> .selected {
|
||||
color: $color-link;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color-link;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-checkbox-selected {
|
||||
color: $color-link;
|
||||
}
|
46
gui/app/styles/widget/widget-chip.scss
Normal file
46
gui/app/styles/widget/widget-chip.scss
Normal file
|
@ -0,0 +1,46 @@
|
|||
.chip {
|
||||
display: inline-block;
|
||||
border-radius: 3px;
|
||||
border: 1px solid $color-chip-border;
|
||||
padding: 0;
|
||||
height: 25px;
|
||||
line-height: 0;
|
||||
margin: 0 5px 10px 0;
|
||||
background-color: $color-chip;
|
||||
color: $color-chip-text;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
> .chip-text {
|
||||
display: inline-block;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
color: $color-chip-text;
|
||||
padding: 11px 10px 0 10px;
|
||||
letter-spacing: 0.7px;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
> i.material-icons {
|
||||
color: $color-chip-text;
|
||||
font-size: 13px;
|
||||
margin: 13px 8px 0 0;
|
||||
padding: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.chip-action {
|
||||
@extend .chip;
|
||||
background-color: $color-white;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
> .chip-text {
|
||||
color: $color-chip-text;
|
||||
}
|
||||
}
|
137
gui/app/styles/widget/widget-dropdown.scss
Normal file
137
gui/app/styles/widget/widget-dropdown.scss
Normal file
|
@ -0,0 +1,137 @@
|
|||
// https://github.com/HubSpot/drop
|
||||
|
||||
.drop-element {
|
||||
box-sizing: border-box;
|
||||
display: none;
|
||||
z-index: 999;
|
||||
|
||||
&:after, &:before {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
|
||||
&:after, &:before {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
&.drop-open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.drop-theme-basic {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
|
||||
.drop-content {
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
font-family: inherit;
|
||||
background: $color-white;
|
||||
color: $color-off-black;
|
||||
padding: 1.5em 2.5em;
|
||||
line-height: 1.5em;
|
||||
|
||||
> .dropdown-dialog {
|
||||
@extend .clearfix;
|
||||
|
||||
.content {
|
||||
> p {
|
||||
margin: 7px 0;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
> .heading {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.actions {
|
||||
margin-top: 15px;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.drop-theme-menu {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
|
||||
.drop-content {
|
||||
border-radius: 2px;
|
||||
padding: 10px 0 7px 0;
|
||||
min-width: 125px;
|
||||
@extend .z-depth-1;
|
||||
background: $color-white;
|
||||
color: $color-off-black;
|
||||
|
||||
.dropdown-menu {
|
||||
> ul.menu
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
> li.item {
|
||||
font-size: 0.9em;
|
||||
padding: 7px 14px 7px 14px;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: $color-link;
|
||||
// font-weight: bold;
|
||||
}
|
||||
|
||||
a, a:visited {
|
||||
text-decoration: none;
|
||||
color: $color-off-black;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
|
||||
&:hover {
|
||||
color: $color-link;
|
||||
// font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
> li.danger {
|
||||
color: $color-red;
|
||||
|
||||
&:hover {
|
||||
color: $color-red;
|
||||
// font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
> li.divider {
|
||||
height: 1px;
|
||||
border-top: 1px solid $color-border;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
> li.disabled {
|
||||
color: $color-stroke !important;
|
||||
font-weight: normal !important;
|
||||
@extend .cursor-not-allowed;
|
||||
|
||||
a, a:visited {
|
||||
color: $color-stroke !important;
|
||||
|
||||
&:hover {
|
||||
color: $color-stroke !important;
|
||||
font-weight: normal !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
215
gui/app/styles/widget/widget-input.scss
Normal file
215
gui/app/styles/widget/widget-input.scss
Normal file
|
@ -0,0 +1,215 @@
|
|||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.input-control {
|
||||
position: relative;
|
||||
margin-bottom: 50px;
|
||||
|
||||
> label {
|
||||
color: $color-input;
|
||||
font-size: 1.1em;
|
||||
font-weight: normal;
|
||||
font-family: $font-semibold;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
> .tip {
|
||||
color: $color-gray;
|
||||
font-size: 0.9em;
|
||||
margin: 5px 0 10px;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
font-family: $font-light;
|
||||
}
|
||||
|
||||
> input,
|
||||
textarea {
|
||||
font-size: 1em;
|
||||
padding: 8px 0 10px;
|
||||
margin: 0 0 15px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: none;
|
||||
border-bottom: 1px solid $color-input;
|
||||
height: 2.3rem;
|
||||
outline: none;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-bottom: 1px solid $color-primary !important;
|
||||
box-shadow: 0 1px 0 0 $color-primary !important;
|
||||
transition: 0.2s ease all;
|
||||
-moz-transition: 0.2s ease all;
|
||||
-webkit-transition: 0.2s ease all;
|
||||
}
|
||||
}
|
||||
|
||||
> textarea {
|
||||
resize: none;
|
||||
height: auto !important;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
> select,
|
||||
> div select {
|
||||
background-color: $color-white;
|
||||
padding: 5px;
|
||||
border: 1px solid $color-input;
|
||||
border-radius: 2px;
|
||||
height: 2.3rem;
|
||||
font-size: 1rem;
|
||||
display: inline-block;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border: 1px solid $color-input !important;
|
||||
box-shadow: none !important;
|
||||
transition: 0.2s ease all;
|
||||
-moz-transition: 0.2s ease all;
|
||||
-webkit-transition: 0.2s ease all;
|
||||
}
|
||||
}
|
||||
|
||||
> .checkbox {
|
||||
width: 100%;
|
||||
font-size: 1em;
|
||||
padding: 8px 0 10px;
|
||||
margin: 0 0 15px;
|
||||
display: inline-block;
|
||||
border: none;
|
||||
border-bottom: 1px solid $color-input;
|
||||
height: 2.5rem;
|
||||
outline: none;
|
||||
|
||||
&:hover {
|
||||
outline: none;
|
||||
border-bottom: 1px solid $color-input !important;
|
||||
box-shadow: 0 1px 0 0 $color-input !important;
|
||||
transition: 0.2s ease all;
|
||||
-moz-transition: 0.2s ease all;
|
||||
-webkit-transition: 0.2s ease all;
|
||||
}
|
||||
|
||||
> input[type='checkbox'] {
|
||||
font-size: 1em;
|
||||
padding: 8px 0 10px;
|
||||
margin: 0 0 15px 5px;
|
||||
display: inline-block;
|
||||
border: none;
|
||||
border-bottom: none;
|
||||
height: 1rem;
|
||||
outline: none;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-bottom: none !important;
|
||||
box-shadow: none !important;
|
||||
transition: 0.2s ease all;
|
||||
-moz-transition: 0.2s ease all;
|
||||
-webkit-transition: 0.2s ease all;
|
||||
}
|
||||
}
|
||||
|
||||
> label {
|
||||
color: $color-off-black;
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
pointer-events: none;
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.error {
|
||||
border-color: $color-red;
|
||||
|
||||
&:focus {
|
||||
border-bottom: 1px solid $color-red !important;
|
||||
box-shadow: 0 1px 0 0 $color-red !important;
|
||||
}
|
||||
}
|
||||
|
||||
select.error {
|
||||
border-color: $color-red;
|
||||
|
||||
&:focus {
|
||||
border: 1px solid $color-red !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.input-inline {
|
||||
display: inline-block;
|
||||
cursor: default;
|
||||
width: 97%;
|
||||
|
||||
> input {
|
||||
font-size: 1em;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
border: none;
|
||||
height: auto;
|
||||
outline: none;
|
||||
display: inline-block;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-bottom: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.error-inline {
|
||||
border-left: 3px solid $color-red;
|
||||
}
|
||||
}
|
||||
|
||||
.input-transparent {
|
||||
background-color: transparent !important;
|
||||
|
||||
> input, textarea {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
}
|
||||
|
||||
.form-bordered {
|
||||
padding: 30px 40px;
|
||||
border: 10px solid $color-border;
|
||||
@include border-radius(15px);
|
||||
}
|
||||
|
||||
.form-header {
|
||||
> .title {
|
||||
font-size: 1.4rem;
|
||||
font-weight: normal;
|
||||
font-family: $font-semibold;
|
||||
pointer-events: none;
|
||||
font-weight: bold;
|
||||
color: $color-off-black;
|
||||
}
|
||||
|
||||
> .tip {
|
||||
color: $color-input;
|
||||
font-size: 1.2rem;
|
||||
margin: 5px 0 30px;
|
||||
padding: 0;
|
||||
font-family: $font-light;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.form-divider {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.widget-checkbox {
|
||||
color: $color-link;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.checkbox-gray {
|
||||
color: $color-gray !important;
|
||||
}
|
25
gui/app/styles/widget/widget-notification.scss
Normal file
25
gui/app/styles/widget/widget-notification.scss
Normal file
|
@ -0,0 +1,25 @@
|
|||
.user-notification {
|
||||
position: fixed;
|
||||
display: none;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
background-color: $color-toast;
|
||||
color: $color-white;
|
||||
padding: 10px 15px;
|
||||
text-align: left;
|
||||
border-radius: 2px;
|
||||
@extend .z-depth-1;
|
||||
z-index: 999;
|
||||
|
||||
> .message {
|
||||
margin: 3px 0;
|
||||
padding: 0;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
}
|
||||
|
||||
.busy-indicator {
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
margin: 0 10px;
|
||||
}
|
27
gui/app/styles/widget/widget-radio.scss
Normal file
27
gui/app/styles/widget/widget-radio.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
.ui-radio {
|
||||
vertical-align: bottom;
|
||||
cursor: pointer;
|
||||
font-size: 1.1rem;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
margin: 0 0 5px 0;
|
||||
|
||||
> .material-icons {
|
||||
font-size: 1.4rem;
|
||||
color: $color-gray;
|
||||
vertical-align: top;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
> .selected {
|
||||
color: $color-link;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color-link;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-radio-selected {
|
||||
color: $color-link;
|
||||
}
|
34
gui/app/styles/widget/widget-selection.scss
Normal file
34
gui/app/styles/widget/widget-selection.scss
Normal file
|
@ -0,0 +1,34 @@
|
|||
.widget-selection {
|
||||
> .option {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 5px 10px;
|
||||
text-align: left;
|
||||
@extend .no-select;
|
||||
cursor: pointer;
|
||||
// border: 1px solid $color-border;
|
||||
color: $color-off-black;
|
||||
position: relative;
|
||||
|
||||
> i.material-icons {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@include ease-in();
|
||||
background-color: $color-off-white;
|
||||
}
|
||||
|
||||
> .selected {
|
||||
background-color: $color-card-active !important;
|
||||
color: $color-primary !important;
|
||||
|
||||
> i.material-icons {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 5px;
|
||||
}
|
||||
}
|
||||
}
|
27
gui/app/styles/widget/widget-sidebar-menu.scss
Normal file
27
gui/app/styles/widget/widget-sidebar-menu.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
.sidebar-menu {
|
||||
margin: 0;
|
||||
|
||||
> .options {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
> .option {
|
||||
margin-bottom: 15px;
|
||||
font-size: 1.3rem;
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
color: $color-off-black;
|
||||
@extend .no-select;
|
||||
@include ease-in();
|
||||
|
||||
&:hover {
|
||||
color: $color-link;
|
||||
}
|
||||
}
|
||||
|
||||
> .selected {
|
||||
color: $color-link;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
17
gui/app/styles/widget/widget-symbol.scss
Normal file
17
gui/app/styles/widget/widget-symbol.scss
Normal file
|
@ -0,0 +1,17 @@
|
|||
.symbol {
|
||||
display: inline-block;
|
||||
border-radius: 2px;
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
padding: 0;
|
||||
line-height: 0;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
background-color: $color-symbol-box;
|
||||
|
||||
> .material-icons {
|
||||
font-size: 22px;
|
||||
margin-top: 20px;
|
||||
color: $color-symbol-icon;
|
||||
}
|
||||
}
|
29
gui/app/styles/widget/widget-tab.scss
Normal file
29
gui/app/styles/widget/widget-tab.scss
Normal file
|
@ -0,0 +1,29 @@
|
|||
.widget-tab {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0 10px;
|
||||
text-align: center;
|
||||
@extend .no-select;
|
||||
|
||||
> .tab {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 5px 10px;
|
||||
background-color: $color-off-white;
|
||||
color: $color-gray;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-right: -3px;
|
||||
|
||||
&:hover {
|
||||
@include ease-in();
|
||||
background-color: $color-gray;
|
||||
color: $color-off-white;
|
||||
}
|
||||
}
|
||||
|
||||
> .selected {
|
||||
background-color: $color-gray;
|
||||
color: $color-off-white;
|
||||
}
|
||||
}
|
59
gui/app/styles/widget/widget-table.scss
Normal file
59
gui/app/styles/widget/widget-table.scss
Normal file
|
@ -0,0 +1,59 @@
|
|||
.basic-table {
|
||||
padding: 0;
|
||||
margin: 0 0 25px 0;
|
||||
width: 100%;
|
||||
font-size: 1rem;
|
||||
border: 1px solid $color-border;
|
||||
border-radius: 2px;
|
||||
border-collapse: collapse;
|
||||
|
||||
> tbody {
|
||||
> tr {
|
||||
> td {
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> thead {
|
||||
> tr {
|
||||
background-color: $color-off-white;
|
||||
|
||||
> th {
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid $color-border;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bordered {
|
||||
border: 1px solid $color-border;
|
||||
}
|
||||
|
||||
.border-top {
|
||||
border-top: 1px solid $color-border;
|
||||
}
|
||||
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid $color-border;
|
||||
}
|
||||
|
||||
.action-link {
|
||||
font-size: 0.8rem;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.no-width {
|
||||
white-space: nowrap;
|
||||
width: 1%;
|
||||
}
|
||||
}
|
||||
|
||||
.no-table-border {
|
||||
border: none;
|
||||
}
|
201
gui/app/styles/widget/widget-tooltip.scss
Normal file
201
gui/app/styles/widget/widget-tooltip.scss
Normal file
|
@ -0,0 +1,201 @@
|
|||
// https://github.com/HubSpot/tooltip
|
||||
|
||||
.tooltip-element {
|
||||
z-index: 999;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:after,
|
||||
&:before {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
|
||||
&:after,
|
||||
&:before {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
position: absolute;
|
||||
display: none;
|
||||
|
||||
&.tooltip-open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.tooltip-theme-arrows {
|
||||
z-index: 999;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
|
||||
.tooltip-content {
|
||||
border-radius: 2px;
|
||||
position: relative;
|
||||
font-family: inherit;
|
||||
background: $color-tooltip;
|
||||
color: $color-white;
|
||||
padding: 0.5em;
|
||||
font-size: 0.8em;
|
||||
line-height: 1.1em;
|
||||
|
||||
&:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-width: 8px;
|
||||
border-style: solid;
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-bottom.tooltip-element-attached-center .tooltip-content {
|
||||
margin-bottom: 8px;
|
||||
|
||||
&:before {
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -8px;
|
||||
border-top-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-top.tooltip-element-attached-center .tooltip-content {
|
||||
margin-top: 8px;
|
||||
|
||||
&:before {
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
margin-left: -8px;
|
||||
border-bottom-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-right.tooltip-element-attached-middle .tooltip-content {
|
||||
margin-right: 8px;
|
||||
|
||||
&:before {
|
||||
left: 100%;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
border-left-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-left.tooltip-element-attached-middle .tooltip-content {
|
||||
margin-left: 8px;
|
||||
|
||||
&:before {
|
||||
right: 100%;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
border-right-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-top {
|
||||
&.tooltip-element-attached-left.tooltip-target-attached-bottom .tooltip-content {
|
||||
margin-top: 8px;
|
||||
|
||||
&:before {
|
||||
bottom: 100%;
|
||||
left: 8px;
|
||||
border-bottom-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-right.tooltip-target-attached-bottom .tooltip-content {
|
||||
margin-top: 8px;
|
||||
|
||||
&:before {
|
||||
bottom: 100%;
|
||||
right: 8px;
|
||||
border-bottom-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-bottom {
|
||||
&.tooltip-element-attached-left.tooltip-target-attached-top .tooltip-content {
|
||||
margin-bottom: 8px;
|
||||
|
||||
&:before {
|
||||
top: 100%;
|
||||
left: 8px;
|
||||
border-top-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-right.tooltip-target-attached-top .tooltip-content {
|
||||
margin-bottom: 8px;
|
||||
|
||||
&:before {
|
||||
top: 100%;
|
||||
right: 8px;
|
||||
border-top-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-top {
|
||||
&.tooltip-element-attached-right.tooltip-target-attached-left .tooltip-content {
|
||||
margin-right: 8px;
|
||||
|
||||
&:before {
|
||||
top: 8px;
|
||||
left: 100%;
|
||||
border-left-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-left.tooltip-target-attached-right .tooltip-content {
|
||||
margin-left: 8px;
|
||||
|
||||
&:before {
|
||||
top: 8px;
|
||||
right: 100%;
|
||||
border-right-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-bottom {
|
||||
&.tooltip-element-attached-right.tooltip-target-attached-left .tooltip-content {
|
||||
margin-right: 8px;
|
||||
|
||||
&:before {
|
||||
bottom: 8px;
|
||||
left: 100%;
|
||||
border-left-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
&.tooltip-element-attached-left.tooltip-target-attached-right .tooltip-content {
|
||||
margin-left: 8px;
|
||||
|
||||
&:before {
|
||||
bottom: 8px;
|
||||
right: 100%;
|
||||
border-right-color: $color-tooltip;
|
||||
}
|
||||
}
|
||||
}
|
||||
pointer-events: none;
|
||||
|
||||
.tooltip-content {
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
}
|
||||
opacity: 0;
|
||||
|
||||
&.tooltip-open-transitionend {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.tooltip-after-open {
|
||||
transition: opacity 600ms 400ms;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
78
gui/app/styles/widget/widget.scss
Normal file
78
gui/app/styles/widget/widget.scss
Normal file
|
@ -0,0 +1,78 @@
|
|||
// Copyright (c) 2015 Documize Inc.
|
||||
// Material Design icons from https://design.google.com/icons/
|
||||
|
||||
.material-icons {
|
||||
font-family: "Material Icons";
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-size: 1.2rem;
|
||||
display: inline-block;
|
||||
text-transform: none;
|
||||
letter-spacing: normal;
|
||||
word-wrap: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: optimizeLegibility;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-feature-settings: "liga";
|
||||
}
|
||||
|
||||
.transition-shadow {
|
||||
transition: box-shadow 0.25s;
|
||||
}
|
||||
|
||||
.transition-all {
|
||||
transition: all 0.25s;
|
||||
}
|
||||
|
||||
.z-depth-0 {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.z-depth-tiny {
|
||||
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05), 0 1px 1px 0 rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.z-depth-half {
|
||||
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.16), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.z-depth-1 {
|
||||
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.z-depth-1-half {
|
||||
/* used on hover states */
|
||||
box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.z-depth-2 {
|
||||
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
}
|
||||
|
||||
.z-depth-3 {
|
||||
box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
|
||||
}
|
||||
|
||||
.z-depth-4 {
|
||||
box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21);
|
||||
}
|
||||
|
||||
.z-depth-5 {
|
||||
box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
@import "widget-avatar";
|
||||
@import "widget-button";
|
||||
@import "widget-card";
|
||||
@import "widget-chip";
|
||||
@import "widget-dropdown";
|
||||
@import "widget-input";
|
||||
@import "widget-notification";
|
||||
@import "widget-sidebar-menu";
|
||||
@import "widget-table";
|
||||
@import "widget-tooltip";
|
||||
@import "widget-checkbox";
|
||||
@import "widget-radio";
|
||||
@import "widget-tab";
|
||||
@import "widget-selection";
|
||||
@import "widget-symbol";
|
Loading…
Add table
Add a link
Reference in a new issue