mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
New toolbar styling and layout controls
Built to work with forthcoming feature set that requires display of more options.
This commit is contained in:
parent
08794f8d5f
commit
de273a38ed
19 changed files with 580 additions and 289 deletions
84
gui/app/components/ui/ui-toolbar-button.js
Normal file
84
gui/app/components/ui/ui-toolbar-button.js
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||||
|
//
|
||||||
|
// This software (Documize Community Edition) is licensed under
|
||||||
|
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
|
||||||
|
//
|
||||||
|
// You can operate outside the AGPL restrictions by purchasing
|
||||||
|
// Documize Enterprise Edition and obtaining a commercial license
|
||||||
|
// by contacting <sales@documize.com>.
|
||||||
|
//
|
||||||
|
// https://documize.com
|
||||||
|
|
||||||
|
import { computed } from '@ember/object';
|
||||||
|
import Component from '@ember/component';
|
||||||
|
|
||||||
|
export default Component.extend({
|
||||||
|
tagName: 'button',
|
||||||
|
classNames: [],
|
||||||
|
classNameBindings: ['calcClass'],
|
||||||
|
attributeBindings: ['calcAttrs:data-dismiss', 'submitAttrs:type'],
|
||||||
|
label: '',
|
||||||
|
icon: '',
|
||||||
|
color: '',
|
||||||
|
light: false,
|
||||||
|
themed: false,
|
||||||
|
dismiss: false,
|
||||||
|
truncate: false,
|
||||||
|
stretch: false,
|
||||||
|
uppercase: true,
|
||||||
|
iconClass: '',
|
||||||
|
hasIcon: computed('iconClass', function() {
|
||||||
|
return this.iconClass.trim() != '';
|
||||||
|
}),
|
||||||
|
|
||||||
|
calcClass: computed(function() {
|
||||||
|
// Prepare icon class name
|
||||||
|
this.iconClass = this.icon;
|
||||||
|
|
||||||
|
// Prepare button class name
|
||||||
|
let bc = 'button';
|
||||||
|
|
||||||
|
if (this.themed) {
|
||||||
|
bc += 'theme';
|
||||||
|
} else {
|
||||||
|
bc += '-' + this.color;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.light) {
|
||||||
|
bc += '-light';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.uppercase) {
|
||||||
|
bc += ' text-case-normal';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.truncate) {
|
||||||
|
bc += ' text-truncate';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.stretch) {
|
||||||
|
bc += ' max-width-100 text-left';
|
||||||
|
}
|
||||||
|
|
||||||
|
return bc;
|
||||||
|
}),
|
||||||
|
|
||||||
|
calcAttrs: computed(function() {
|
||||||
|
if (this.dismiss) {
|
||||||
|
return 'modal';
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}),
|
||||||
|
|
||||||
|
submitAttrs: computed(function() {
|
||||||
|
return this.submit ? "submit": null;
|
||||||
|
}),
|
||||||
|
|
||||||
|
click(e) {
|
||||||
|
if (!_.isUndefined(this.onClick)) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.onClick(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
17
gui/app/components/ui/ui-toolbar-divider.js
Normal file
17
gui/app/components/ui/ui-toolbar-divider.js
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||||
|
//
|
||||||
|
// This software (Documize Community Edition) is licensed under
|
||||||
|
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
|
||||||
|
//
|
||||||
|
// You can operate outside the AGPL restrictions by purchasing
|
||||||
|
// Documize Enterprise Edition and obtaining a commercial license
|
||||||
|
// by contacting <sales@documize.com>.
|
||||||
|
//
|
||||||
|
// https://documize.com
|
||||||
|
|
||||||
|
import Component from '@ember/component';
|
||||||
|
|
||||||
|
export default Component.extend({
|
||||||
|
tagName: 'div',
|
||||||
|
classNames: ['divider'],
|
||||||
|
});
|
55
gui/app/components/ui/ui-toolbar-dropdown.js
Normal file
55
gui/app/components/ui/ui-toolbar-dropdown.js
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||||
|
//
|
||||||
|
// This software (Documize Community Edition) is licensed under
|
||||||
|
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
|
||||||
|
//
|
||||||
|
// You can operate outside the AGPL restrictions by purchasing
|
||||||
|
// Documize Enterprise Edition and obtaining a commercial license
|
||||||
|
// by contacting <sales@documize.com>.
|
||||||
|
//
|
||||||
|
// https://documize.com
|
||||||
|
|
||||||
|
import { computed } from '@ember/object';
|
||||||
|
import Component from '@ember/component';
|
||||||
|
|
||||||
|
export default Component.extend({
|
||||||
|
classNames: [],
|
||||||
|
classNameBindings: ['calcClass'],
|
||||||
|
label: '',
|
||||||
|
color: '',
|
||||||
|
arrow: true,
|
||||||
|
iconClass: '',
|
||||||
|
|
||||||
|
calcClass: computed(function() {
|
||||||
|
// Prepare icon class name
|
||||||
|
this.iconClass = this.get('constants').Icon.TriangleSmallDown;
|
||||||
|
|
||||||
|
// Prepare button class name
|
||||||
|
let bc = 'dropdown';
|
||||||
|
|
||||||
|
if (!this.themed) {
|
||||||
|
bc += ' dropdown-' + this.color;
|
||||||
|
}
|
||||||
|
|
||||||
|
return bc;
|
||||||
|
}),
|
||||||
|
|
||||||
|
calcAttrs: computed(function() {
|
||||||
|
if (this.dismiss) {
|
||||||
|
return 'modal';
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}),
|
||||||
|
|
||||||
|
submitAttrs: computed(function() {
|
||||||
|
return this.submit ? "submit": null;
|
||||||
|
}),
|
||||||
|
|
||||||
|
click(e) {
|
||||||
|
if (!_.isUndefined(this.onClick)) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.onClick(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
|
@ -15,12 +15,10 @@ export default Component.extend({
|
||||||
classNames: ['dmz-toolbar', 'non-printable'],
|
classNames: ['dmz-toolbar', 'non-printable'],
|
||||||
classNameBindings:
|
classNameBindings:
|
||||||
['raised:dmz-toolbar-raised',
|
['raised:dmz-toolbar-raised',
|
||||||
'large:dmz-toolbar-large',
|
|
||||||
'bordered:dmz-toolbar-bordered',
|
'bordered:dmz-toolbar-bordered',
|
||||||
'light:dmz-toolbar-light',
|
'light:dmz-toolbar-light',
|
||||||
'dark:dmz-toolbar-dark'],
|
'dark:dmz-toolbar-dark'],
|
||||||
raised: false,
|
raised: false,
|
||||||
large: false,
|
|
||||||
bordered: false,
|
bordered: false,
|
||||||
dark: false,
|
dark: false,
|
||||||
light: false,
|
light: false,
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<Layout::MasterNavigation />
|
<Layout::MasterNavigation />
|
||||||
<Layout::MasterToolbar>
|
<Layout::MasterToolbar>
|
||||||
<div class="zone-1">
|
<div class="zone-1">
|
||||||
{{#link-to "folder.index" folder.id folder.slug class="no-print"}}
|
{{#link-to "folder.index" folder.id folder.slug}}
|
||||||
{{ui/ui-button color=constants.Color.Gray outline=true uppercase=false icon=constants.Icon.ArrowLeft label=folder.name}}
|
{{ui/ui-button themed=true uppercase=false icon=constants.Icon.ArrowLeft label=folder.name}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</div>
|
</div>
|
||||||
<div class="zone-2" />
|
<div class="zone-2" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<Layout::MasterToolbar>
|
<Layout::MasterToolbar>
|
||||||
<div class="zone-1">
|
<div class="zone-1">
|
||||||
{{#link-to "document.index"}}
|
{{#link-to "document.index"}}
|
||||||
{{ui/ui-button color=constants.Color.Gray outline=true uppercase=false icon=constants.Icon.ArrowLeft label=document.name}}
|
{{ui/ui-button themed=true uppercase=false icon=constants.Icon.ArrowLeft label=document.name}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</div>
|
</div>
|
||||||
<div class="zone-2" />
|
<div class="zone-2" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<Layout::MasterToolbar>
|
<Layout::MasterToolbar>
|
||||||
<div class="zone-1">
|
<div class="zone-1">
|
||||||
{{#link-to "document.index" model.folder.id model.folder.slug model.document.id model.document.slug}}
|
{{#link-to "document.index" model.folder.id model.folder.slug model.document.id model.document.slug}}
|
||||||
{{ui/ui-button color=constants.Color.Gray outline=true uppercase=false icon=constants.Icon.ArrowLeft label=model.document.name}}
|
{{ui/ui-button themed=true uppercase=false icon=constants.Icon.ArrowLeft label=model.document.name}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</div>
|
</div>
|
||||||
<div class="zone-2" />
|
<div class="zone-2" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<Layout::MasterToolbar>
|
<Layout::MasterToolbar>
|
||||||
<div class="zone-1">
|
<div class="zone-1">
|
||||||
{{#link-to "document.index"}}
|
{{#link-to "document.index"}}
|
||||||
{{ui/ui-button color=constants.Color.Gray outline=true uppercase=false icon=constants.Icon.ArrowLeft label=model.document.name}}
|
{{ui/ui-button themed=true uppercase=false icon=constants.Icon.ArrowLeft label=model.document.name}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</div>
|
</div>
|
||||||
<div class="zone-2" />
|
<div class="zone-2" />
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
@import "spacing.scss";
|
@import "spacing.scss";
|
||||||
@import "headings.scss";
|
@import "headings.scss";
|
||||||
@import "layout.scss";
|
@import "layout.scss";
|
||||||
|
@import "toolbar.scss";
|
||||||
@import "sidebar.scss";
|
@import "sidebar.scss";
|
||||||
|
|
|
@ -1,130 +1,3 @@
|
||||||
// *****************************************************************
|
|
||||||
// Define mobile-first layout for top navigation bar and toolbar.
|
|
||||||
// *****************************************************************
|
|
||||||
.master-navigation {
|
|
||||||
display: block;
|
|
||||||
height: auto;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
> .navbar {
|
|
||||||
display: block;
|
|
||||||
height: 40px;
|
|
||||||
width: 100%;
|
|
||||||
background-color: $theme-500;
|
|
||||||
text-align: center;
|
|
||||||
padding: 0;
|
|
||||||
z-index: 999;
|
|
||||||
|
|
||||||
> .container {
|
|
||||||
display: flex;
|
|
||||||
flex-grow: 1;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
width: 100%;
|
|
||||||
padding: 0 20px;
|
|
||||||
|
|
||||||
> .options {
|
|
||||||
> .selected {
|
|
||||||
> .dicon {
|
|
||||||
color: $color-white !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> .option {
|
|
||||||
cursor: pointer;
|
|
||||||
display: inline-block;
|
|
||||||
|
|
||||||
> .dicon {
|
|
||||||
display: inline-block;
|
|
||||||
color: $theme-300;
|
|
||||||
font-size: 20px;
|
|
||||||
padding: 10px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
> .dicon {
|
|
||||||
color: $theme-400 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> a.option {
|
|
||||||
color: $theme-300;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: $color-white;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> .invalid-plan {
|
|
||||||
> .dicon {
|
|
||||||
color: map-get($yellow-shades, 600) !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> .user-gravatar-container {
|
|
||||||
display: inline-block;
|
|
||||||
margin: 0;
|
|
||||||
padding: 7px 10px;
|
|
||||||
vertical-align: top;
|
|
||||||
|
|
||||||
> .user-gravatar {
|
|
||||||
display: inline-block;
|
|
||||||
cursor: pointer;
|
|
||||||
position: relative;
|
|
||||||
width: 26px;
|
|
||||||
height: 26px;
|
|
||||||
line-height: 26px;
|
|
||||||
padding: 0;
|
|
||||||
border-radius: 50%;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
text-align: center;
|
|
||||||
color: $theme-500;
|
|
||||||
font-weight: bold;
|
|
||||||
background-color: $color-white;
|
|
||||||
@extend .no-select;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> .toolbar {
|
|
||||||
display: block;
|
|
||||||
height: auto;
|
|
||||||
height: 50px;
|
|
||||||
width: 100%;
|
|
||||||
background-color: $color-sidebar;
|
|
||||||
background-color: $theme-100;
|
|
||||||
text-align: center;
|
|
||||||
padding: 0;
|
|
||||||
z-index: 999;
|
|
||||||
|
|
||||||
> .container {
|
|
||||||
display: flex;
|
|
||||||
flex-grow: 1;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
width: 100%;
|
|
||||||
padding: 0 10px;
|
|
||||||
|
|
||||||
> div[class^="zone-"], div[class*=" zone-"] {
|
|
||||||
margin: 0;
|
|
||||||
padding: 10px 10px;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
> .label {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// *****************************************************************
|
// *****************************************************************
|
||||||
// Define mobile-first layout for main content zone with a sidebar.
|
// Define mobile-first layout for main content zone with a sidebar.
|
||||||
// *****************************************************************
|
// *****************************************************************
|
||||||
|
|
124
gui/app/styles/core/layout/toolbar.scss
Normal file
124
gui/app/styles/core/layout/toolbar.scss
Normal file
|
@ -0,0 +1,124 @@
|
||||||
|
// *****************************************************************
|
||||||
|
// Define mobile-first layout for top navigation bar and toolbar.
|
||||||
|
// *****************************************************************
|
||||||
|
.master-navigation {
|
||||||
|
display: block;
|
||||||
|
height: auto;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
> .navbar {
|
||||||
|
display: block;
|
||||||
|
height: 40px;
|
||||||
|
width: 100%;
|
||||||
|
background-color: $theme-500;
|
||||||
|
text-align: center;
|
||||||
|
padding: 0;
|
||||||
|
z-index: 999;
|
||||||
|
|
||||||
|
> .container {
|
||||||
|
display: flex;
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 20px;
|
||||||
|
|
||||||
|
> .options {
|
||||||
|
> .selected {
|
||||||
|
> .dicon {
|
||||||
|
color: $color-white !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .option {
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
> .dicon {
|
||||||
|
display: inline-block;
|
||||||
|
color: $theme-300;
|
||||||
|
font-size: 20px;
|
||||||
|
padding: 10px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
> .dicon {
|
||||||
|
color: $theme-400 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> a.option {
|
||||||
|
color: $theme-300;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $color-white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .invalid-plan {
|
||||||
|
> .dicon {
|
||||||
|
color: map-get($yellow-shades, 600) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .user-gravatar-container {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0;
|
||||||
|
padding: 7px 10px;
|
||||||
|
vertical-align: top;
|
||||||
|
|
||||||
|
> .user-gravatar {
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
width: 26px;
|
||||||
|
height: 26px;
|
||||||
|
line-height: 26px;
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
text-align: center;
|
||||||
|
color: $theme-500;
|
||||||
|
font-weight: bold;
|
||||||
|
background-color: $color-white;
|
||||||
|
@extend .no-select;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .toolbar {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
background-color: $color-sidebar;
|
||||||
|
background-color: $theme-100;
|
||||||
|
padding: 0;
|
||||||
|
// z-index: 999;
|
||||||
|
|
||||||
|
> .container {
|
||||||
|
height: 50px;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0 15px;
|
||||||
|
|
||||||
|
> div[class^="zone-"], > div[class*=" zone-"] {
|
||||||
|
margin: 0;
|
||||||
|
// padding: 10px 10px;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
> .label {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -179,12 +179,12 @@
|
||||||
|
|
||||||
.dmz-button-theme {
|
.dmz-button-theme {
|
||||||
@extend %dmz-button;
|
@extend %dmz-button;
|
||||||
background-color: $theme-800;
|
background-color: $theme-500;
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
@include button-shadow();
|
@include button-shadow();
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $theme-600;
|
background-color: $theme-700;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.dmz-button-theme-light {
|
.dmz-button-theme-light {
|
||||||
|
|
|
@ -40,15 +40,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
> .header {
|
> .header {
|
||||||
color: map-get($gray-shades, 800);
|
color: $color-white;
|
||||||
background-color: map-get($gray-shades, 300);
|
background-color: $theme-500;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
cursor: auto;
|
cursor: auto;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: map-get($gray-shades, 800);
|
color: $color-white;
|
||||||
background-color: map-get($gray-shades, 300);
|
background-color: $theme-500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
%toolbar-shadow {
|
%toolbar-shadow {
|
||||||
box-shadow: 1px 1px 3px 0px map-get($gray-shades, 200);
|
box-shadow: 1px 1px 3px 0px map-get($gray-shades, 200);
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dmz-toolbar {
|
.dmz-toolbar {
|
||||||
|
@ -7,27 +8,29 @@
|
||||||
flex-basis: auto;
|
flex-basis: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
vertical-align: middle;
|
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
height: 30px;
|
|
||||||
width: auto;
|
width: auto;
|
||||||
padding: 6px 10px;
|
padding: 6px 10px;
|
||||||
line-height: 24px;
|
|
||||||
@extend .no-select;
|
@extend .no-select;
|
||||||
@include border-radius(6px);
|
@include border-radius(4px);
|
||||||
|
|
||||||
> .dicon {
|
> .dicon {
|
||||||
font-size: 16px;
|
font-size: 20px;
|
||||||
font-weight: 500;
|
color: $theme-500;
|
||||||
color: map-get($gray-shades, 600);
|
|
||||||
padding: 0 0.5rem;
|
padding: 0 0.5rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: map-get($gray-shades, 700);
|
color: $theme-400;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .divider {
|
||||||
|
margin: 0 6px;
|
||||||
|
width: 1px;
|
||||||
|
background-color: $theme-200;
|
||||||
|
}
|
||||||
|
|
||||||
> .icon-selected {
|
> .icon-selected {
|
||||||
color: map-get($yellow-shades, 600);
|
color: map-get($yellow-shades, 600);
|
||||||
}
|
}
|
||||||
|
@ -68,17 +71,137 @@
|
||||||
color: map-get($green-shades, 600);
|
color: map-get($green-shades, 600);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .dropdown {
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
> .label, > .dicon {
|
||||||
|
color: $theme-400;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dmz-toolbar-large {
|
> .label {
|
||||||
height: 40px;
|
display: inline-block;
|
||||||
padding: 9px 10px;
|
font-size: 1rem;
|
||||||
line-height: 33px;
|
font-weight: 500;
|
||||||
|
color: $theme-500;
|
||||||
|
padding: 0 0 0 0.5rem;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
|
||||||
> .dicon {
|
> .dicon {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
color: $theme-500;
|
||||||
|
padding: 0 0.3rem 0 0;
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .dropdown-green {
|
||||||
|
> .label, > .dicon {
|
||||||
|
color: map-get($green-shades, 500);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: map-get($green-shades, 600);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> %button {
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-align: center;
|
||||||
|
padding: 0.375rem 0.75rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 0 0.5rem;
|
font-size: 1rem;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
text-transform: uppercase;
|
||||||
|
cursor: pointer;
|
||||||
|
@extend .no-select;
|
||||||
|
@include border-radius(2px);
|
||||||
|
outline: none;
|
||||||
|
background-color: map-get($green-shades, 600);
|
||||||
|
color: $color-white;
|
||||||
|
// @include button-shadow();
|
||||||
|
|
||||||
|
> .dicon {
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: 0.2rem 0.4rem 0 0;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .label {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: map-get($gray-shades, 800);
|
||||||
|
border-color: map-get($gray-shades, 500);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-green {
|
||||||
|
@extend %button;
|
||||||
|
background-color: map-get($green-shades, 600);
|
||||||
|
color: $color-white;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: map-get($green-shades, 700);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.button-green-light {
|
||||||
|
@extend %button;
|
||||||
|
background-color: map-get($green-shades, 200);
|
||||||
|
color: map-get($green-shades, 700);
|
||||||
|
border: 1px solid map-get($green-shades, 300);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: map-get($green-shades, 300);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-yellow {
|
||||||
|
@extend %button;
|
||||||
|
background-color: map-get($yellow-shades, 600);
|
||||||
|
color: $color-white;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: map-get($yellow-shades, 700);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.button-yellow-light {
|
||||||
|
@extend %button;
|
||||||
|
background-color: map-get($yellow-shades, 200);
|
||||||
|
color: map-get($yellow-shades, 700);
|
||||||
|
border: 1px solid map-get($yellow-shades, 300);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: map-get($yellow-shades, 300);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-red {
|
||||||
|
@extend %button;
|
||||||
|
background-color: map-get($red-shades, 600);
|
||||||
|
color: $color-white;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: map-get($red-shades, 700);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.button-red-light {
|
||||||
|
@extend %button;
|
||||||
|
background-color: map-get($red-shades, 100);
|
||||||
|
color: map-get($red-shades, 700);
|
||||||
|
border: 1px solid map-get($red-shades, 200);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: map-get($red-shades, 200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,6 +211,7 @@
|
||||||
|
|
||||||
.dmz-toolbar-light {
|
.dmz-toolbar-light {
|
||||||
background-color: map-get($gray-shades, 100);
|
background-color: map-get($gray-shades, 100);
|
||||||
|
background-color: $color-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dmz-toolbar-raised {
|
.dmz-toolbar-raised {
|
||||||
|
|
|
@ -1,30 +1,31 @@
|
||||||
<div class="text-right no-print">
|
|
||||||
{{#ui/ui-toolbar dark=false light=false raised=false large=true bordered=false}}
|
{{#ui/ui-toolbar dark=false light=false raised=false large=true bordered=false}}
|
||||||
{{#ui/ui-toolbar-icon icon=constants.Icon.Export color=constants.Color.Gray tooltip="Print, PDF, Export"}}
|
{{#if (or showActivity showRevisions)}}
|
||||||
|
{{#ui/ui-toolbar-dropdown label="History" arrow=true}}
|
||||||
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
|
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li class="item" {{action "onExport"}}>Export as HTML file</li>
|
{{#if showActivity}}
|
||||||
<li class="item" {{action "onPrintDocument"}}>Print...</li>
|
{{#link-to "document.activity" class="item"}}Activity summary{{/link-to}}
|
||||||
|
{{/if}}
|
||||||
|
{{#if showRevisions}}
|
||||||
|
{{#link-to "document.revisions" class="item"}}Revisions{{/link-to}}
|
||||||
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
{{/attach-popover}}
|
{{/attach-popover}}
|
||||||
{{/ui/ui-toolbar-icon}}
|
{{/ui/ui-toolbar-dropdown}}
|
||||||
|
<Ui::UiToolbarDivider />
|
||||||
{{#if pinState.isPinned}}
|
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.BookmarkDelete color=constants.Color.Yellow
|
|
||||||
tooltip="Remove from bookmarks" onClick=(action "onUnpin")}}
|
|
||||||
{{else if session.authenticated}}
|
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.BookmarkAdd color=constants.Color.Gray
|
|
||||||
tooltip="Bookmark" onClick=(action "onPin")}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if permissions.documentEdit}}
|
{{#ui/ui-toolbar-dropdown label="Export" arrow=true}}
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.Settings color=constants.Color.Gray
|
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
|
||||||
tooltip="Rename, Categories, Tag, Status, Workflow" linkTo="document.settings"}}
|
<ul class="menu">
|
||||||
{{/if}}
|
<li class="item" {{action "onPrintDocument"}}>Send to print...</li>
|
||||||
{{/ui/ui-toolbar}}
|
<li class="item" {{action "onExport"}}>Download HTML file</li>
|
||||||
|
</ul>
|
||||||
|
{{/attach-popover}}
|
||||||
|
{{/ui/ui-toolbar-dropdown}}
|
||||||
|
|
||||||
|
<Ui::UiToolbarDivider />
|
||||||
|
|
||||||
{{#if hasToolbar}}
|
|
||||||
{{#ui/ui-toolbar dark=false light=true raised=true large=true bordered=true}}
|
|
||||||
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
||||||
{{#if permissions.documentEdit}}
|
{{#if permissions.documentEdit}}
|
||||||
{{#ui/ui-toolbar-icon icon=constants.Icon.UserAssign color=constants.Color.Gray tooltip="Actions & Sharing"}}
|
{{#ui/ui-toolbar-icon icon=constants.Icon.UserAssign color=constants.Color.Gray tooltip="Actions & Sharing"}}
|
||||||
|
@ -42,31 +43,36 @@
|
||||||
</ul>
|
</ul>
|
||||||
{{/attach-popover}}
|
{{/attach-popover}}
|
||||||
{{/ui/ui-toolbar-icon}}
|
{{/ui/ui-toolbar-icon}}
|
||||||
|
<Ui::UiToolbarDivider />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if showActivity}}
|
{{#if (or pinState.isPinned session.authenticated)}}
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.Pulse color=constants.Color.Gray
|
{{#if pinState.isPinned}}
|
||||||
tooltip="See content activity" linkTo="document.activity"}}
|
{{ui/ui-toolbar-icon icon=constants.Icon.BookmarkDelete color=constants.Color.Yellow
|
||||||
|
tooltip="Remove from bookmarks" onClick=(action "onUnpin")}}
|
||||||
|
{{else if session.authenticated}}
|
||||||
|
{{ui/ui-toolbar-icon icon=constants.Icon.BookmarkAdd color=constants.Color.Gray
|
||||||
|
tooltip="Bookmark" onClick=(action "onPin")}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if showRevisions}}
|
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.TimeBack color=constants.Color.Gray
|
|
||||||
tooltip="Revisions and rollback" linkTo="document.revisions"}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if permissions.documentAdd}}
|
{{#if permissions.documentAdd}}
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.Copy color=constants.Color.Gray
|
{{ui/ui-toolbar-icon icon=constants.Icon.Copy
|
||||||
tooltip="Save as template" onClick=(action "onShowTemplateModal")}}
|
tooltip="Save as template" onClick=(action "onShowTemplateModal")}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if permissions.documentDelete}}
|
{{#if permissions.documentDelete}}
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Gray
|
{{ui/ui-toolbar-icon icon=constants.Icon.Delete
|
||||||
tooltip="Delete" onClick=(action "onShowDeleteModal")}}
|
tooltip="Delete" onClick=(action "onShowDeleteModal")}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/ui/ui-toolbar}}
|
|
||||||
|
{{#if permissions.documentEdit}}
|
||||||
|
<Ui::UiToolbarDivider />
|
||||||
|
{{ui/ui-toolbar-icon icon=constants.Icon.Settings color=constants.Color.Green
|
||||||
|
tooltip="Rename, Categories, Tag, Status, Workflow" linkTo="document.settings"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
{{/ui/ui-toolbar}}
|
||||||
|
|
||||||
<div id="document-template-modal" class="modal" tabindex="-1" role="dialog">
|
<div id="document-template-modal" class="modal" tabindex="-1" role="dialog">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{#ui/ui-toolbar dark=false light=false raised=false large=true bordered=false}}
|
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}}
|
||||||
{{#if hasDocuments}}
|
{{#if hasDocuments}}
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.Export color=constants.Color.Gray
|
{{ui/ui-toolbar-icon icon=constants.Icon.Export color=constants.Color.Gray
|
||||||
tooltip="Export as HTML" onClick=(action "onShowExport")}}
|
tooltip="Export as HTML" onClick=(action "onShowExport")}}
|
||||||
|
@ -18,9 +18,8 @@
|
||||||
{{/ui/ui-toolbar}}
|
{{/ui/ui-toolbar}}
|
||||||
|
|
||||||
{{#if permissions.documentAdd}}
|
{{#if permissions.documentAdd}}
|
||||||
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
|
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}}
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.Plus color=constants.Color.Green}}
|
{{ui/ui-toolbar-button color=constants.Color.Green uppercase=false icon=constants.Icon.Plus label="CONTENT"}}
|
||||||
{{ui/ui-toolbar-label label="CONTENT" color=constants.Color.Green}}
|
|
||||||
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
|
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<a class="item" href="#" {{action "onShowEmptyDocModal"}}>Blank canvas</a>
|
<a class="item" href="#" {{action "onShowEmptyDocModal"}}>Blank canvas</a>
|
||||||
|
@ -31,6 +30,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{/attach-popover}}
|
{{/attach-popover}}
|
||||||
{{/ui/ui-toolbar}}
|
{{/ui/ui-toolbar}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<div id="empty-doc-modal" class="modal" tabindex="-1" role="dialog">
|
<div id="empty-doc-modal" class="modal" tabindex="-1" role="dialog">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
|
@ -112,7 +112,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div id="space-export-modal" class="modal" tabindex="-1" role="dialog">
|
<div id="space-export-modal" class="modal" tabindex="-1" role="dialog">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
|
|
5
gui/app/templates/components/ui/ui-toolbar-button.hbs
Normal file
5
gui/app/templates/components/ui/ui-toolbar-button.hbs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{{#if hasIcon}}
|
||||||
|
<i class="dicon {{iconClass}}"/>
|
||||||
|
{{/if}}
|
||||||
|
<div class="label" title={{label}}>{{label}}</div>
|
||||||
|
{{yield}}
|
0
gui/app/templates/components/ui/ui-toolbar-divider.hbs
Normal file
0
gui/app/templates/components/ui/ui-toolbar-divider.hbs
Normal file
5
gui/app/templates/components/ui/ui-toolbar-dropdown.hbs
Normal file
5
gui/app/templates/components/ui/ui-toolbar-dropdown.hbs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<div class="label" title={{label}}>{{label}}</div>
|
||||||
|
{{#if this.arrow}}
|
||||||
|
<i class="dicon {{iconClass}}"/>
|
||||||
|
{{/if}}
|
||||||
|
{{yield}}
|
Loading…
Add table
Add a link
Reference in a new issue