1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-05 05:25:27 +02:00

removed redundant colors, widgets

This commit is contained in:
Harvey Kandola 2017-12-11 20:59:28 +00:00
parent 869884abda
commit 3f2edcaa96
36 changed files with 161 additions and 1499 deletions

View file

@ -27,6 +27,7 @@ $color-gray: #8b9096;
$color-gray-light: #d8d8d8;
$color-gray-light2: #eaeaea;
$color-border: #d3d3d3;
// $color-wysiwyg: #3c3c3c;
// colors
$color-red: #9E0D1F;
@ -38,31 +39,8 @@ $color-goldy: #FFD700;
$color-checkbox: #2667af;
$color-symbol-box: #dce5e8;
$color-symbol-icon: #a4b8be;
// ?????
$color-wysiwyg: #3c3c3c;
// DEAD
$color-table-border: #e1e1e1;
$color-table-header: #f5f5f5;
$color-toolbar: #eeeeee;
$color-card: #F9F9F9;
$color-input: #5a5a5a;
$color-stroke: #e1e1e1;
$color-tooltip: #a1a1a1;
$color-toast: #4c4c4c;
$color-sidebar: #f5f5f5;
$color-sidebar-border: #e1e1e1;
$color-sidebar-text: $color-black;
$color-sidebar-link: $color-link;
$color-nav-button: #f2faff;
$color-nav-button-text: #2667af;
$color-nav-button-border: #dff0f9;
$color-selected-item: $color-sidebar;
$color-sidebar-navigation: #f2faff;
$color-sidebar-navigation-border: #dff0f9;
$color-sidebar-toolbar: $color-sidebar-border;
// Color utility classes for direct usage in HTML
.color-white {

View file

@ -1,98 +1,67 @@
.document-sidebar-view-index {
margin: 0;
.document-toc {
@include border-radius(3px);
margin: 20px 0;
padding: 10px 20px;
background-color: $color-off-white;
border: 1px solid $color-border;
display: inline-block;
position: fixed;
left: 20px;
z-index: 777;
>.structure {
> .toc-controls {
margin: 0;
color: $color-gray;
> .title {
color: $color-off-black;
font-weight: bold;
font-size: 1rem;
margin-bottom: 10px;
text-align: center;
}
> .round-button-mono {
> .material-icons {
color: $color-link;
}
}
> .toc-controls {
margin: 0;
text-align: center;
> .disabled {
cursor: not-allowed !important;
> .disabled {
cursor: not-allowed !important;
color: $color-stroke;
border-color: $color-stroke;
> .material-icons {
color: $color-gray-light;
}
}
}
> .material-icons {
color: $color-stroke;
}
}
}
> .index-list {
padding: 0;
list-style: none;
font-size: 0.9rem;
overflow-x: hidden;
list-style-type: none;
margin: 20px 0 0;
> .index-list {
padding: 0;
list-style: none;
font-size: 13px;
overflow-x: hidden;
list-style-type: none;
margin: 20px 0 0;
.item {
@extend .no-select;
padding: 4px 0;
text-overflow: ellipsis;
word-wrap: break-word;
white-space: nowrap;
overflow: hidden;
> .link {
color: $color-dark;
font-weight: bold;
&:hover {
color: $color-link;
}
}
.item {
padding: 4px 0;
text-overflow: ellipsis;
word-wrap: break-word;
white-space: nowrap;
overflow: hidden;
@extend .no-select;
> .link {
color: $color-off-black;
&:hover {
color: $color-link;
}
}
> .selected {
color: $color-link;
font-weight: bold;
}
}
}
}
> .selected {
color: $color-link;
// font-weight: bold;
}
}
}
}
.document-sidebar-toolbar {
margin: 10px 0 0 0;
padding: 10px 0;
text-align: center;
// background-color: $color-sidebar-toolbar;
> .round-button-mono {
background-color: $color-white;
border-color: $color-sidebar-border;
> .material-icons {
color: $color-gray;
@include ease-in();
}
&:hover {
> .material-icons {
color: $color-link;
}
}
}
> .selected {
background-color: $color-primary;
border-color: $color-primary;
> .material-icons {
color: $color-off-white;
@include ease-in();
}
&:hover {
> .material-icons {
color: $color-white;
}
}
}
}

View file

@ -1,7 +1,7 @@
.wysiwyg {
font-size: 17px;
line-height: 30px;
color: $color-wysiwyg;
color: $color-off-black;
table {
border: 1px solid $color-border !important;

View file

@ -72,63 +72,3 @@
}
}
}
.page-search {
.input-control {
> input {
background-color: $color-sidebar;
}
}
.examples {
color: $color-gray;
}
.search-results {
> .heading {
font-size: 2rem;
margin-bottom: 10px;
font-weight: normal;
}
> .list {
margin-top: 20px;
list-style: none;
> .item {
@include content-container();
cursor: pointer;
margin-bottom: 30px;
> .link {
text-decoration: none;
color: $color-off-black;
&:hover {
color: $color-link;
}
> .title {
display: inline-block;
font-size: 1.2rem;
}
> .folder {
font-size: 0.8rem;
color: $color-gray;
margin-top: 5px;
}
> .excerpt {
margin-top: 1rem;
font-size: 0.9rem;
}
> .chips {
margin-top: 1rem;
}
}
}
}
}
}

View file

@ -192,17 +192,6 @@
> .action {
display: inline-block;
}
> .input-control {
margin: 0;
display: inline-block;
> input {
margin: 0 0 8px 0;
padding: 0;
font-size: 1.2rem;
}
}
}
}
}

View file

@ -24,34 +24,3 @@
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;
}
}

View file

@ -1,323 +1,4 @@
// 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;
}
.button-nav {
background-color: $color-nav-button;
color: $color-nav-button-text;
border: 1px solid $color-sidebar-border;
}
.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;
}
}
//
// Bootstrap 4 compatible
//
.button-gap {
width: 5px;
margin: 0;

View file

@ -1,68 +0,0 @@
.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-selected-item;
border-color: $color-selected-item;
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;
}
}

View file

@ -31,3 +31,12 @@
.ui-checkbox-selected {
color: $color-link;
}
.widget-checkbox {
color: $color-link;
cursor: pointer;
}
.checkbox-gray {
color: $color-gray !important;
}

View file

@ -1,21 +0,0 @@
.chip {
display: inline-block;
border-radius: 3px;
padding: 0;
height: 25px;
line-height: 0;
margin: 0 5px 10px 0;
border: 1px solid $color-gray;
background-color: $color-gray;
color: $color-white;
> .chip-text {
display: inline-block;
font-weight: 400;
font-size: 1rem;
color: $color-white;
padding: 11px 10px 0 10px;
letter-spacing: 0.7px;
line-height: 0;
}
}

View file

@ -1,264 +0,0 @@
* {
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.5rem;
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.5rem;
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;
@extend .no-select;
}
> .tip {
color: $color-input;
font-size: 1.2rem;
margin: 5px 0 30px;
padding: 0;
font-family: $font-light;
text-align: left;
@extend .no-select;
}
}
.form-header-sticky {
@include sticky();
top: 0;
padding: 20px 0;
background-color: $color-white;
> .left-zone {
float: left;
text-align: left;
width: 65%;
background-color: $color-white;
> .title {
font-size: 1.4rem;
font-weight: normal;
font-family: $font-semibold;
pointer-events: none;
font-weight: bold;
color: $color-off-black;
@extend .no-select;
}
> .tip {
color: $color-input;
font-size: 1.2rem;
margin: 5px 0 30px;
padding: 0;
font-family: $font-light;
text-align: left;
@extend .no-select;
}
}
> .right-zone {
float: right;
text-align: right;
width: 30%;
background-color: $color-white;
}
}
.form-divider {
margin-top: 30px;
}
.widget-checkbox {
color: $color-link;
cursor: pointer;
}
.checkbox-gray {
color: $color-gray !important;
}
//
// Bootstrap 4 compatible
//

View file

@ -3,7 +3,7 @@
display: none;
top: 20px;
right: 20px;
background-color: $color-toast;
background-color: $color-off-black;
color: $color-white;
padding: 10px 15px;
text-align: left;

View file

@ -1,34 +0,0 @@
.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-selected-item !important;
color: $color-primary !important;
> i.material-icons {
display: inline-block;
position: absolute;
right: 10px;
top: 5px;
}
}
}

View file

@ -1,27 +0,0 @@
.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;
}
}
}

View file

@ -1,29 +0,0 @@
.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;
}
}

View file

@ -63,16 +63,10 @@
@import "widget-avatar";
@import "widget-button";
@import "widget-card";
@import "widget-checkbox";
@import "widget-chip";
@import "widget-input";
@import "widget-list-picker";
@import "widget-notification";
@import "widget-radio";
@import "widget-selection";
@import "widget-sidebar-menu";
@import "widget-symbol";
@import "widget-tab";
@import "widget-table";
@import "widget-tabnav";