This commit is contained in:
crusader 2018-09-18 22:11:01 +09:00
parent c66a2834b8
commit 694a02c6cd
5 changed files with 857 additions and 448 deletions

View File

@ -1,5 +1,5 @@
<div id="app-menu-bar" role="menubar" aria-label="Application menu"> <div id="app-menu-bar" role="menubar" aria-label="Application menu">
<div class="toolbar-dropdown closed" role="menuitem" aria-expanded="false"> <!-- <div class="toolbar-dropdown closed" role="menuitem" aria-expanded="false">
<div class="toolbar-button"> <div class="toolbar-button">
<button class="button-component" type="button" tabindex="-1"> <button class="button-component" type="button" tabindex="-1">
<div class="menu-item"> <div class="menu-item">
@ -54,5 +54,7 @@
</div> </div>
</button> </button>
</div> </div>
</div> </div> -->
<p-menubar [model]="items" [autoDisplay]="false">
</p-menubar>
</div> </div>

View File

@ -0,0 +1,303 @@
// /deep/ .ui-menubar {
// height: var(--darwin-title-bar-height);
// color: var(--app-menu-button-color);
// background: transparent;
// padding: 0px;
// border: 0em;
// }
// /deep/ .ui-menu .ui-menuitem {
// padding-top: 2px;
// float: right;
// }
// // /deep/ .ui-menubar > .ui-menuitem {
// // width: 100%;
// // height: 100%;
// // }
// /deep/ p-menubarsub {
// margin: 0px;
// width: 100%;
// li.ui-menuitem{
// height: 22px !important;
// }
// }
// /deep/ .ui-menubar .ui-menubar-root-list>.ui-menuitem>.ui-menuitem-link {
// width: 100%;
// height: 100%;
// padding: 0em;
// color: var(--app-menu-button-color);
// }
// /deep/ .ui-menuitem .ui-menuitem-link {
// color: #222222;
// }
// /deep/ .ui-menuitem {
// min-width: 0;
// min-height: 0;
// position: relative;
// }
// /deep/ .ui-menubar .ui-menubar-root-list>.ui-menuitem {
// position: relative;
// display: inline-block;
// flex-direction: row;
// align-items: center;
// // padding-right: 10px;
// // padding: var(--spacing);
// // margin: 0em;
// // overflow: hidden;
// background-color: var(--toolbar-button-background-color);
// color: var(--toolbar-button-color);
// }
// /deep/ .ui-widget {
// font: 14px Arial;
// }
// // .ui-corner-all {
// // border-radius: 3px;
// // }
// // .ui-widget, .ui-widget * {
// // box-sizing: border-box;
// // }
// // #app-menu-bar .toolbar-dropdown:not(.open) > .toolbar-button > button {
// // color: var(--app-menu-button-color);
// // background: transparent;
// // }
// // #app-menu-bar .toolbar-button > button {
// // padding: 0 var(--spacing);
// // border: 0;
// // }
// // .toolbar-button > button {
// // position: relative;
// // display: flex;
// // flex-direction: row;
// // align-items: center;
// // padding: var(--spacing);
// // margin: 0;
// // overflow: hidden;
// // background-color: var(--toolbar-button-background-color);
// // color: var(--toolbar-button-color);
// // border-right: 1px solid var(--toolbar-button-border-color);
// // }
// // .toolbar-button > button {
// // -webkit-appearance: none;
// // border: none;
// // box-shadow: none;
// // background: transparent;
// // border-radius: 0;
// // text-align: left;
// // margin: 0;
// // padding: 0;
// // height: 100%;
// // width: 100%;
// // }
/deep/ body {
font-family: var(--font-family-sans-serif);
font-size: var(--font-size);
line-height: 1.5;
color: var(--text-color);
background-color: var(--background-color);
}
/deep/ body .ui-corner-all {
border-radius: 0px;
}
/deep/ body .ui-widget {
font-family: var(--font-family-sans-serif);
font-size: 1.1em;
line-height: 1.5;
}
/deep/ body .ui-widget-content {
border: 0;
}
/deep/ body .ui-splitbutton.ui-buttonset .ui-menu {
min-width: 100%;
}
/deep/ body .ui-menubar .ui-menuitem {
margin: 0;
}
/deep/ body .ui-menu .ui-menuitem-link,
/deep/ body .ui-menubar .ui-menuitem-link,
/deep/ body .ui-tieredmenu .ui-menuitem-link,
/deep/ body .ui-contextmenu .ui-menuitem-link,
/deep/ body .ui-megamenu .ui-menuitem-link,
/deep/ body .ui-slidemenu .ui-menuitem-link {
padding: 0.714em 0.857em;
color: #333333;
font-weight: normal;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
}
/deep/ body .ui-menu .ui-menuitem-link .ui-menuitem-text,
/deep/ body .ui-menubar .ui-menuitem-link .ui-menuitem-text,
/deep/ body .ui-tieredmenu .ui-menuitem-link .ui-menuitem-text,
/deep/ body .ui-contextmenu .ui-menuitem-link .ui-menuitem-text,
/deep/ body .ui-megamenu .ui-menuitem-link .ui-menuitem-text,
/deep/ body .ui-slidemenu .ui-menuitem-link .ui-menuitem-text {
// color: #333333;
color: var(--app-menu-button-color);
}
/deep/ body .ui-menu .ui-menuitem-link .ui-menuitem-icon,
/deep/ body .ui-menubar .ui-menuitem-link .ui-menuitem-icon,
/deep/ body .ui-tieredmenu .ui-menuitem-link .ui-menuitem-icon,
/deep/ body .ui-contextmenu .ui-menuitem-link .ui-menuitem-icon,
/deep/ body .ui-megamenu .ui-menuitem-link .ui-menuitem-icon,
/deep/ body .ui-slidemenu .ui-menuitem-link .ui-menuitem-icon {
color: #333333;
margin-right: 0.5em;
}
/deep/ body .ui-menu .ui-menuitem-link:hover,
/deep/ body .ui-menubar .ui-menuitem-link:hover,
/deep/ body .ui-tieredmenu .ui-menuitem-link:hover,
/deep/ body .ui-contextmenu .ui-menuitem-link:hover,
/deep/ body .ui-megamenu .ui-menuitem-link:hover,
/deep/ body .ui-slidemenu .ui-menuitem-link:hover {
background-color: #eaeaea;
}
/deep/ body .ui-menu .ui-menuitem>.ui-menuitem-link:hover,
/deep/ body .ui-menubar .ui-menuitem>.ui-menuitem-link:hover,
/deep/ body .ui-tieredmenu .ui-menuitem>.ui-menuitem-link:hover,
/deep/ body .ui-slidemenu .ui-menuitem>.ui-menuitem-link:hover,
/deep/ body .ui-contextmenu .ui-menuitem>.ui-menuitem-link:hover,
/deep/ body .ui-megamenu .ui-menuitem>.ui-menuitem-link:hover {
background: var(--app-menu-button-hover-background-color);
}
/deep/ body .ui-menu .ui-menuitem-link:hover .ui-menuitem-text,
/deep/ body .ui-menubar .ui-menuitem-link:hover .ui-menuitem-text,
/deep/ body .ui-tieredmenu .ui-menuitem-link:hover .ui-menuitem-text,
/deep/ body .ui-contextmenu .ui-menuitem-link:hover .ui-menuitem-text,
/deep/ body .ui-megamenu .ui-menuitem-link:hover .ui-menuitem-text,
/deep/ body .ui-slidemenu .ui-menuitem-link:hover .ui-menuitem-text {
color: var(--app-menu-button-hover-color);
}
/deep/ body .ui-menu .ui-menuitem-link:hover .ui-menuitem-icon,
/deep/ body .ui-menubar .ui-menuitem-link:hover .ui-menuitem-icon,
/deep/ body .ui-tieredmenu .ui-menuitem-link:hover .ui-menuitem-icon,
/deep/ body .ui-contextmenu .ui-menuitem-link:hover .ui-menuitem-icon,
/deep/ body .ui-megamenu .ui-menuitem-link:hover .ui-menuitem-icon,
/deep/ body .ui-slidemenu .ui-menuitem-link:hover .ui-menuitem-icon {
color: #333333;
}
/deep/ body .ui-menubar .ui-menuitem.ui-menuitem-active>.ui-menuitem-link {
// background-color: #eaeaea;
background-color: var(--app-menu-button-active-background-color);
}
/deep/ body .ui-menubar .ui-menuitem.ui-menuitem-active>.ui-menuitem-link .ui-menuitem-text {
color: var(--app-menu-button-active-color);
}
/deep/ body .ui-menubar .ui-menuitem.ui-menuitem-active>.ui-menuitem-link .ui-menuitem-icon,
/deep/ body .ui-menubar .ui-menuitem.ui-menuitem-active>.ui-menuitem-link .ui-submenu-icon {
color: #333333;
}
/deep/ body .ui-menu {
padding: 0;
background-color: #ffffff;
border: 1px solid #c8c8c8;
}
/deep/ body .ui-menu .ui-menuitem {
margin: 0;
}
/deep/ body .ui-menu.ui-shadow {
border: 1px solid #c8c8c8;
-webkit-box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16);
-moz-box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16);
box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16);
}
/deep/ body .ui-menu .ui-submenu-header {
margin: 0;
padding: 0.714em 0.857em;
color: #ffffff;
background-color: #333333;
font-weight: 400;
border: 0 none;
}
/deep/ body .ui-menu .ui-menu-separator {
border: 1px solid #c8c8c8;
border-width: 1px 0 0 0;
}
/deep/ body .ui-menubar {
padding: 0; // background-color: #ffffff;
// border: 1px solid #c8c8c8;
background: linear-gradient(to bottom, #3b3f46 0%, #2b2e33 100%); // border-bottom: 1px solid #000;
}
/deep/ body .ui-menubar .ui-menubar-root-list>.ui-menuitem>.ui-menuitem-link {
padding: 0.01em 0.857em;
}
/deep/ body .ui-menubar .ui-submenu-list {
padding: 0; // background-color: #ffffff;
// border: 1px solid #c8c8c8;
// -webkit-box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16);
// -moz-box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16);
// box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16);
color: #1b1d1f;
background: var(--app-menu-pane-background-color); // /* Old browsers */
// background: -moz-linear-gradient(top, var(--app-menu-pane-background-color) 0%, #ebedf0 100%);
// /* FF3.6+ */
// background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, var(--app-menu-pane-background-color)), color-stop(100%, #ebedf0));
// /* Chrome,Safari4+ */
// background: -webkit-linear-gradient(top, var(--app-menu-pane-background-color) 0%, #ebedf0 100%);
// /* Chrome10+,Safari5.1+ */
// background: -o-linear-gradient(top, var(--app-menu-pane-background-color) 0%, #ebedf0 100%);
// /* Opera11.10+ */
// background: -ms-linear-gradient(top, var(--app-menu-pane-background-color) 0%, #ebedf0 100%);
// /* IE10+ */
// background: linear-gradient(to bottom, var(--app-menu-pane-background-color) 0%, #ebedf0 100%);
// /* W3C */
}
/deep/ body .ui-menubar .ui-submenu-list .ui-menuitem {
margin: 0;
}
/deep/ body .ui-menubar .ui-submenu-list .ui-menu-separator {
border: 1px solid var(--app-menu-divider-color);
border-width: 1px 0 0 0;
}
/deep/ body .ui-menubar .ui-submenu-list .ui-menuitem-text {
// color: #333333;
color: var(---app-menu-pane-color);
}
/deep/ body .ui-menubar .ui-menuitem .ui-submenu-list .ui-menuitem-active>.ui-menuitem-link {
// background-color: #eaeaea;
background-color: var(--link-button-hover-color);
}
/deep/ body .ui-menubar .ui-menuitem .ui-submenu-list .ui-menuitem-active>.ui-menuitem-link .ui-menuitem-text {
color: var(--button-text-color);
}
/deep/ body .ui-menubar .ui-menuitem .ui-submenu-list .ui-menuitem-active>.ui-menuitem-link .ui-menuitem-icon,
/deep/ body .ui-menubar .ui-menuitem .ui-submenu-list .ui-menuitem-active>.ui-menuitem-link .ui-submenu-icon {
color: #333333;
}
// /deep/ body .ui-menubar .ui-menuitem .ui-submenu-list .ui-menuitem:hover {
// background: #3b3f46;
// }
// /deep/ body .ui-menubar .ui-submenu-list:hover .ui-menuitem-text {
// color: var(--app-menu-pane-secondary-color);
// }
// /deep/ body .ui-menubar .ui-submenu-list:hover .ui-menuitem-icon {
// color: #333333;
// }

View File

@ -4,6 +4,7 @@ import { MenuItem } from 'primeng/primeng';
@Component({ @Component({
selector: 'app-menu-bar', selector: 'app-menu-bar',
templateUrl: './menu-bar.component.html', templateUrl: './menu-bar.component.html',
styleUrls: ['./menu-bar.component.scss'],
}) })
export class MenuBarComponent implements OnInit { export class MenuBarComponent implements OnInit {
@ -13,6 +14,49 @@ export class MenuBarComponent implements OnInit {
) { } ) { }
ngOnInit() { ngOnInit() {
this.items = [
{
label: 'File',
items: [
{ label: 'New' },
{ label: 'Open' },
{ separator: true },
{ label: 'Quit' }
]
},
{
label: 'Edit',
items: [
{ label: 'Delete' },
{ label: 'Refresh' }
]
},
{
label: 'Help',
items: [
{
label: 'Contents'
},
{
label: 'Search',
}
]
},
{
label: 'Actions',
items: [
{
label: 'Edit',
},
{
label: 'Other',
}
]
},
{
label: 'Quit',
}
];
} }
onTitlebarDoubleClick() { onTitlebarDoubleClick() {

View File

@ -15,7 +15,8 @@ export class AppComponent implements OnInit {
private electronProxyService: ElectronProxyService, private electronProxyService: ElectronProxyService,
private probeService: ProbeService, private probeService: ProbeService,
) { ) {
this.showTitleBar = !__LINUX__; // this.showTitleBar = !__LINUX__;
this.showTitleBar = true;
} }
ngOnInit(): void { ngOnInit(): void {

View File

@ -1,8 +1,11 @@
$fontFamily: "Roboto", "Trebuchet MS", Arial, Helvetica, sans-serif; $fontFamily: "Roboto",
"Trebuchet MS",
Arial,
Helvetica,
sans-serif;
$fontSize: 1em; $fontSize: 1em;
$borderRadius: 3px; $borderRadius: 3px;
$disabledOpacity: 0.35; $disabledOpacity: 0.35;
//Header //Header
$headerBorderWidth: 1px; $headerBorderWidth: 1px;
$headerBorderColor: #d9d9d9; //d9d9d9 $headerBorderColor: #d9d9d9; //d9d9d9
@ -10,89 +13,85 @@ $headerBgColor: #f6f7f9;
$headerTextColor: #1b1d1f; $headerTextColor: #1b1d1f;
$headerFontWeight: normal; $headerFontWeight: normal;
$headerIconTextColor: #1b1d1f; $headerIconTextColor: #1b1d1f;
//Content //Content
$contentBorderWidth: 1px; $contentBorderWidth: 1px;
$contentBorderColor: #D5D5D5; $contentBorderColor: #D5D5D5;
$contentBgColor: #ffffff; $contentBgColor: #ffffff;
$contentTextColor: #222222; $contentTextColor: #222222;
//Default State //Default State
$stateDefaultBorderWidth: 1px; $stateDefaultBorderWidth: 1px;
$stateDefaultBorderColor: #d6d6d6; $stateDefaultBorderColor: #d6d6d6;
$stateDefaultBgColor: #ffffff; $stateDefaultBgColor: #ffffff;
$stateDefaultTextColor: #555555; $stateDefaultTextColor: #555555;
//Active State //Active State
$stateActiveBorderColor: #bebebe; $stateActiveBorderColor: #bebebe;
$stateActiveBgColor: #d6d6d6; $stateActiveBgColor: #d6d6d6;
$stateActiveTextColor: #212121; $stateActiveTextColor: #212121;
//Highlight State //Highlight State
$stateHighlightBorderColor: #156090; //156090 $stateHighlightBorderColor: #156090; //156090
$stateHighlightBgColor: #186ba0; //186ba0 $stateHighlightBgColor: #186ba0; //186ba0
$stateHighlightTextColor: #FFFFFF;//FFFFFF $stateHighlightTextColor: #FFFFFF; //FFFFFF
//Focus State //Focus State
$stateFocusBorderColor: #c0c0c0; $stateFocusBorderColor: #c0c0c0;
$stateFocusBgColor: #eeeeee; $stateFocusBgColor: #eeeeee;
$stateFocusTextColor: #212121; $stateFocusTextColor: #212121;
//Error State //Error State
$stateErrorBorderColor: #f44336; $stateErrorBorderColor: #f44336;
$stateErrorBgColor: #f5554a; $stateErrorBgColor: #f5554a;
$stateErrorTextColor: #cd0a0a; $stateErrorTextColor: #cd0a0a;
//Hover State //Hover State
$stateHoverBorderColor: #c0c0c0; $stateHoverBorderColor: #c0c0c0;
$stateHoverBgColor: #eeeeee; $stateHoverBgColor: #eeeeee;
$stateHoverTextColor: #212121; $stateHoverTextColor: #212121;
//Forms //Forms
$inputBgColor: #ffffff; $inputBgColor: #ffffff;
$inputTextColor: #222222; $inputTextColor: #222222;
$invalidInputBorderColor: #f44336; $invalidInputBorderColor: #f44336;
$inputGroupTextColor: #222222; $inputGroupTextColor: #222222;
@import '../_theme'; @import '../_theme';
/* roboto-regular - latin */ /* roboto-regular - latin */
@font-face { @font-face {
font-family: 'Roboto'; font-family: 'Roboto';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.eot'); /* IE9 Compat Modes */ src: url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.eot');
src: local('Roboto'), local('Roboto-Regular'), /* IE9 Compat Modes */
url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ src: local('Roboto'), local('Roboto-Regular'), url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.woff') format('woff'), /* Modern Browsers */ url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.woff') format('woff'), /* Modern Browsers */
url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */ url('assets/scss/themes/light/fonts/roboto-v15-latin-regular.svg#Roboto') format('svg');
/* Legacy iOS */
} }
.ui-widget-header { .ui-widget-header {
background: #f6f7f9 0 0 repeat-x; /* Old browsers */ background: #f6f7f9 0 0 repeat-x;
background: -moz-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%); /* FF3.6+ */ /* Old browsers */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f6f7f9), color-stop(100%,#ebedf0)); /* Chrome,Safari4+ */ background: -moz-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%);
background: -webkit-linear-gradient(top, #f6f7f9 0%,#ebedf0 100%); /* Chrome10+,Safari5.1+ */ /* FF3.6+ */
background: -o-linear-gradient(top, #f6f7f9 0%,#ebedf0 100%); /* Opera11.10+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f6f7f9), color-stop(100%, #ebedf0));
background: -ms-linear-gradient(top, #f6f7f9 0%,#ebedf0 100%); /* IE10+ */ /* Chrome,Safari4+ */
background: linear-gradient(to bottom, #f6f7f9 0%,#ebedf0 100%); /* W3C */ background: -webkit-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%);
/* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%);
/* Opera11.10+ */
background: -ms-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%);
/* IE10+ */
background: linear-gradient(to bottom, #f6f7f9 0%, #ebedf0 100%);
/* W3C */
} }
.ui-accordion { .ui-accordion {
.ui-accordion-header { .ui-accordion-header {
background: $headerBgColor; background: $headerBgColor;
border-top: 1px solid $headerBorderColor; border-top: 1px solid $headerBorderColor;
a { a {
color: $headerTextColor; color: $headerTextColor;
} }
&:not(.ui-state-active):not(.ui-state-disabled):hover { &:not(.ui-state-active):not(.ui-state-disabled):hover {
background: #ededf0; background: #ededf0;
} }
&.ui-state-active { &.ui-state-active {
background: #ffffff; background: #ffffff;
border-left-color: transparent; border-left-color: transparent;
@ -103,32 +102,28 @@ $inputGroupTextColor: #222222;
border-radius: 0; border-radius: 0;
} }
} }
.ui-accordion-content { .ui-accordion-content {
border: 0 none; border: 0 none;
} }
} }
/* Tabview */ /* Tabview */
.ui-tabview { .ui-tabview {
&.ui-widget-content { &.ui-widget-content {
border: 0 none; border: 0 none;
} }
.ui-tabview-nav { .ui-tabview-nav {
background: transparent; background: transparent;
>li {
> li {
&.ui-state-default { &.ui-state-default {
background: #f6f7f9; background: #f6f7f9;
} }
&.ui-state-active { &.ui-state-active {
background: #ffffff; background: #ffffff;
font-weight: normal; font-weight: normal;
color: #555555; color: #555555;
} }
&:not(.ui-state-active):not(.ui-state-disabled):hover { &:not(.ui-state-active):not(.ui-state-disabled):hover {
background: #ededf0; background: #ededf0;
} }
@ -137,6 +132,7 @@ $inputGroupTextColor: #222222;
} }
/* Spinner */ /* Spinner */
.ui-spinner:not(.ui-state-disabled) .ui-spinner-button:enabled:hover { .ui-spinner:not(.ui-state-disabled) .ui-spinner-button:enabled:hover {
border: 1px solid #1f89ce; border: 1px solid #1f89ce;
background: #1f89ce; background: #1f89ce;
@ -150,22 +146,94 @@ $inputGroupTextColor: #222222;
color: $stateHighlightTextColor; color: $stateHighlightTextColor;
} }
.ui-slider { position: relative; text-align: left; background: #838688; border: none; -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6) inset; -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6) inset; box-shadow: 0 1px 3px rgba(0,0,0,0.6) inset;} .ui-slider {
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 17px !important; height: 21px !important; cursor: default; background: url("assets/scss/themes/light/images/slider_handles.png") 0 0 no-repeat; outline: none; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; border: none; } position: relative;
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background: #14a4ff; -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6) inset; -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6) inset; box-shadow: 0 1px 3px rgba(0,0,0,0.6) inset; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } text-align: left;
.ui-slider .ui-slider-handle.ui-state-active { background-position: -17px 0; } background: #838688;
border: none;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
}
.ui-slider-horizontal { height: 6px; } .ui-slider .ui-slider-handle {
.ui-slider-horizontal .ui-slider-handle { top: -2px !important; margin-left: -.6em; } position: absolute;
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } z-index: 2;
.ui-slider-horizontal .ui-slider-range-min { left: 0; } width: 17px !important;
.ui-slider-horizontal .ui-slider-range-max { right: 0; } height: 21px !important;
cursor: default;
background: url("assets/scss/themes/light/images/slider_handles.png") 0 0 no-repeat;
outline: none;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
border: none;
}
.ui-slider-vertical { width: .8em; height: 100px; } .ui-slider .ui-slider-range {
.ui-slider-vertical .ui-slider-handle { left: -.1em !important; margin-left: 0; margin-bottom: -.6em; } position: absolute;
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } z-index: 1;
.ui-slider-vertical .ui-slider-range-min { bottom: 0; } font-size: .7em;
.ui-slider-vertical .ui-slider-range-max { top: 0; } display: block;
border: 0;
background: #14a4ff;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.ui-slider .ui-slider-handle.ui-state-active {
background-position: -17px 0;
}
.ui-slider-horizontal {
height: 6px;
}
.ui-slider-horizontal .ui-slider-handle {
top: -2px !important;
margin-left: -.6em;
}
.ui-slider-horizontal .ui-slider-range {
top: 0;
height: 100%;
}
.ui-slider-horizontal .ui-slider-range-min {
left: 0;
}
.ui-slider-horizontal .ui-slider-range-max {
right: 0;
}
.ui-slider-vertical {
width: .8em;
height: 100px;
}
.ui-slider-vertical .ui-slider-handle {
left: -.1em !important;
margin-left: 0;
margin-bottom: -.6em;
}
.ui-slider-vertical .ui-slider-range {
left: 0;
width: 100%;
}
.ui-slider-vertical .ui-slider-range-min {
bottom: 0;
}
.ui-slider-vertical .ui-slider-range-max {
top: 0;
}
.ui-progressbar { .ui-progressbar {
&.ui-progressbar-determinate { &.ui-progressbar-determinate {
@ -173,15 +241,12 @@ $inputGroupTextColor: #222222;
border: 0 none; border: 0 none;
background: #8ec5fc; background: #8ec5fc;
} }
.ui-progressbar .ui-progressbar-label { .ui-progressbar .ui-progressbar-label {
color: #222222; color: #222222;
} }
} }
&.ui-progressbar-indeterminate { &.ui-progressbar-indeterminate {
background: #8ec5fc; background: #8ec5fc;
.ui-progressbar-value { .ui-progressbar-value {
border: 0 none; border: 0 none;
background-color: $stateHighlightBgColor; background-color: $stateHighlightBgColor;
@ -189,8 +254,6 @@ $inputGroupTextColor: #222222;
} }
} }
.ui-widget-header .ui-button, .ui-widget-header .ui-button,
.ui-widget-content .ui-button, .ui-widget-content .ui-button,
.ui-widget.ui-button, .ui-widget.ui-button,
@ -201,7 +264,6 @@ $inputGroupTextColor: #222222;
-webkit-transition: background-color .2s; -webkit-transition: background-color .2s;
-moz-transition: background-color .2s; -moz-transition: background-color .2s;
transition: background-color .2s; transition: background-color .2s;
&:enabled:hover, &:enabled:hover,
&:focus { &:focus {
border: 1px solid #1f89ce; border: 1px solid #1f89ce;
@ -209,7 +271,6 @@ $inputGroupTextColor: #222222;
outline: 0 none; outline: 0 none;
color: #ffffff; color: #ffffff;
} }
&:enabled:active { &:enabled:active {
border: 1px solid $stateHighlightBorderColor; border: 1px solid $stateHighlightBorderColor;
background: $stateHighlightBgColor; background: $stateHighlightBgColor;
@ -227,7 +288,6 @@ $inputGroupTextColor: #222222;
-webkit-transition: background-color .2s; -webkit-transition: background-color .2s;
-moz-transition: background-color .2s; -moz-transition: background-color .2s;
transition: background-color .2s; transition: background-color .2s;
&:enabled:hover, &:enabled:hover,
&:focus { &:focus {
border: 1px solid #e0e0e0; border: 1px solid #e0e0e0;
@ -235,7 +295,6 @@ $inputGroupTextColor: #222222;
outline: 0 none; outline: 0 none;
color: #797979; color: #797979;
} }
&:enabled:active { &:enabled:active {
border: 1px solid #dadada; border: 1px solid #dadada;
background: #dbdbdb; background: #dbdbdb;
@ -258,6 +317,7 @@ $inputGroupTextColor: #222222;
} }
/* Checkbox and Radio */ /* Checkbox and Radio */
.ui-chkbox-box.ui-state-active, .ui-chkbox-box.ui-state-active,
.ui-radiobutton-box.ui-state-active { .ui-radiobutton-box.ui-state-active {
border: 1px solid $stateHighlightBorderColor; border: 1px solid $stateHighlightBorderColor;
@ -277,6 +337,7 @@ $inputGroupTextColor: #222222;
} }
/* Inputs */ /* Inputs */
.ui-inputtext { .ui-inputtext {
background: #ffffff; background: #ffffff;
color: #222222; color: #222222;
@ -293,7 +354,9 @@ $inputGroupTextColor: #222222;
} }
/* InputSwitch */ /* InputSwitch */
/* InputSwitch */ /* InputSwitch */
.ui-inputswitch.ui-inputswitch-focus { .ui-inputswitch.ui-inputswitch-focus {
.ui-inputswitch-slider { .ui-inputswitch-slider {
-moz-box-shadow: 0px 0px 5px #1f89ce; -moz-box-shadow: 0px 0px 5px #1f89ce;
@ -309,39 +372,34 @@ $inputGroupTextColor: #222222;
} }
/* DataTable */ /* DataTable */
.ui-datatable { .ui-datatable {
th { th {
&.ui-state-default { &.ui-state-default {
background: #ebedf0; background: #ebedf0;
border-color: $headerBorderColor; border-color: $headerBorderColor;
} }
&.ui-sortable-column:not(.ui-state-active):hover { &.ui-sortable-column:not(.ui-state-active):hover {
background: #d3d5d8; background: #d3d5d8;
border-color: $headerBorderColor; border-color: $headerBorderColor;
} }
&.ui-state-active { &.ui-state-active {
background: $stateHighlightBgColor; background: $stateHighlightBgColor;
color: #ffffff; color: #ffffff;
} }
} }
tbody { tbody {
> tr.ui-widget-content { >tr.ui-widget-content {
border-color: $headerBorderColor; border-color: $headerBorderColor;
&.ui-datatable-odd { &.ui-datatable-odd {
background-color: #fafafb; background-color: #fafafb;
} }
&.ui-state-highlight { &.ui-state-highlight {
background-color: $stateHighlightBgColor; background-color: $stateHighlightBgColor;
color: $stateHighlightTextColor; color: $stateHighlightTextColor;
} }
} }
} }
tfoot { tfoot {
td { td {
&.ui-state-default { &.ui-state-default {
@ -353,26 +411,23 @@ $inputGroupTextColor: #222222;
} }
/* TurboTable */ /* TurboTable */
.ui-table { .ui-table {
.ui-table-thead > tr > th, .ui-table-thead>tr>th,
.ui-table-tfoot > tr > td { .ui-table-tfoot>tr>td {
background-color: #ebedf0; background-color: #ebedf0;
border-color: $headerBorderColor; border-color: $headerBorderColor;
} }
.ui-sortable-column:not(.ui-state-highlight):hover { .ui-sortable-column:not(.ui-state-highlight):hover {
background-color: #d3d5d8; background-color: #d3d5d8;
border-color: $headerBorderColor; border-color: $headerBorderColor;
} }
.ui-table-tbody>tr:nth-child(even) {
.ui-table-tbody > tr:nth-child(even) {
background-color: #fafafb; background-color: #fafafb;
&.ui-state-highlight { &.ui-state-highlight {
background-color: $stateHighlightBgColor; background-color: $stateHighlightBgColor;
color: $stateHighlightTextColor; color: $stateHighlightTextColor;
} }
&.ui-contextmenu-selected { &.ui-contextmenu-selected {
background-color: lighten($stateHighlightBgColor, 20%); background-color: lighten($stateHighlightBgColor, 20%);
color: $stateHighlightTextColor; color: $stateHighlightTextColor;
@ -381,13 +436,13 @@ $inputGroupTextColor: #222222;
} }
/* TurboTable */ /* TurboTable */
.ui-treetable { .ui-treetable {
.ui-treetable-thead > tr > th, .ui-treetable-thead>tr>th,
.ui-treetable-tfoot > tr > td { .ui-treetable-tfoot>tr>td {
background-color: #ebedf0; background-color: #ebedf0;
border-color: $headerBorderColor; border-color: $headerBorderColor;
} }
.ui-sortable-column:not(.ui-state-highlight):hover { .ui-sortable-column:not(.ui-state-highlight):hover {
background-color: #d3d5d8; background-color: #d3d5d8;
border-color: $headerBorderColor; border-color: $headerBorderColor;
@ -395,9 +450,9 @@ $inputGroupTextColor: #222222;
} }
/* Panel */ /* Panel */
.ui-panel.ui-widget { .ui-panel.ui-widget {
padding: 0; padding: 0;
.ui-panel-titlebar.ui-corner-all { .ui-panel-titlebar.ui-corner-all {
-moz-border-radius-bottom-left: 0; -moz-border-radius-bottom-left: 0;
-webkit-border-bottom-left-radius: 0; -webkit-border-bottom-left-radius: 0;
@ -406,19 +461,17 @@ $inputGroupTextColor: #222222;
-webkit-border-bottom-right-radius: 0; -webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
} }
.ui-panel-titlebar { .ui-panel-titlebar {
border-width: 0 0 1px 0; border-width: 0 0 1px 0;
} }
.ui-panel-titlebar-icon span { .ui-panel-titlebar-icon span {
position: relative; position: relative;
top: 1px; top: 1px;
} }
} }
/* TreeTable */ /* TreeTable */
.ui-treetable { .ui-treetable {
th.ui-state-default { th.ui-state-default {
background: #ebedf0; background: #ebedf0;
@ -427,6 +480,7 @@ $inputGroupTextColor: #222222;
} }
/* ButtonSet */ /* ButtonSet */
.ui-togglebutton.ui-button.ui-state-default, .ui-togglebutton.ui-button.ui-state-default,
.ui-selectbutton .ui-button.ui-state-default { .ui-selectbutton .ui-button.ui-state-default {
border: 1px solid #d6d6d6; border: 1px solid #d6d6d6;
@ -435,8 +489,11 @@ $inputGroupTextColor: #222222;
color: #555555; color: #555555;
} }
.ui-togglebutton.ui-button.ui-state-hover,.ui-togglebutton.ui-button.ui-state-focus, .ui-togglebutton.ui-button.ui-state-hover,
.ui-selectbutton .ui-button.ui-state-hover,.ui-selectbutton .ui-button.ui-state-focus, .ui-selectbutton .ui-button:focus { .ui-togglebutton.ui-button.ui-state-focus,
.ui-selectbutton .ui-button.ui-state-hover,
.ui-selectbutton .ui-button.ui-state-focus,
.ui-selectbutton .ui-button:focus {
border: 1px solid #c0c0c0; border: 1px solid #c0c0c0;
background: #eeeeee; background: #eeeeee;
font-weight: normal; font-weight: normal;
@ -464,53 +521,49 @@ $inputGroupTextColor: #222222;
} }
} }
.ui-dropdown.ui-state-focus, .ui-multiselect.ui-state-focus { .ui-dropdown.ui-state-focus,
.ui-multiselect.ui-state-focus {
-moz-box-shadow: 0px 0px 5px #1f89ce; -moz-box-shadow: 0px 0px 5px #1f89ce;
-webkit-box-shadow: 0px 0px 5px #1f89ce; -webkit-box-shadow: 0px 0px 5px #1f89ce;
box-shadow: 0px 0px 5px #1f89ce; box-shadow: 0px 0px 5px #1f89ce;
} }
/* Growl */ /* Growl */
.ui-growl-item-container.ui-state-highlight { .ui-growl-item-container.ui-state-highlight {
&.ui-growl-message-info { &.ui-growl-message-info {
background-color: #2196f3; background-color: #2196f3;
border-color :#2196f3; border-color: #2196f3;
} }
&.ui-growl-message-error { &.ui-growl-message-error {
background-color: #f44336; background-color: #f44336;
border-color :#f44336; border-color: #f44336;
} }
&.ui-growl-message-warn { &.ui-growl-message-warn {
background-color: #FFB300; background-color: #FFB300;
border-color :#FFB300; border-color: #FFB300;
} }
&.ui-growl-message-success { &.ui-growl-message-success {
background-color: #4CAF50; background-color: #4CAF50;
border-color :#4CAF50; border-color: #4CAF50;
} }
} }
/* TabMenu */ /* TabMenu */
.ui-tabmenu { .ui-tabmenu {
border: 0 none; border: 0 none;
.ui-tabmenu-nav { .ui-tabmenu-nav {
background: none; background: none;
>li {
> li {
&.ui-state-default { &.ui-state-default {
background: #f6f7f9; background: #f6f7f9;
} }
&.ui-state-active { &.ui-state-active {
background: #ffffff; background: #ffffff;
font-weight: normal; font-weight: normal;
color: #555555; color: #555555;
} }
&:not(.ui-state-active):not(.ui-state-disabled):hover { &:not(.ui-state-active):not(.ui-state-disabled):hover {
background: #ededf0; background: #ededf0;
} }
@ -519,43 +572,56 @@ $inputGroupTextColor: #222222;
} }
/* Menus */ /* Menus */
.ui-menu, .ui-menu,
.ui-menubar, .ui-menubar .ui-submenu-list, .ui-menubar,
.ui-tieredmenu, .ui-tieredmenu .ui-submenu-list, .ui-menubar .ui-submenu-list,
.ui-slidemenu, .ui-slidemenu .ui-submenu-list, .ui-tieredmenu,
.ui-contextmenu, .ui-contextmenu .ui-submenu-list, .ui-tieredmenu .ui-submenu-list,
.ui-slidemenu,
.ui-slidemenu .ui-submenu-list,
.ui-contextmenu,
.ui-contextmenu .ui-submenu-list,
.ui-megamenu { .ui-megamenu {
color: #1b1d1f; color: #1b1d1f;
background: #f6f7f9 0 0 repeat-x; /* Old browsers */ background: #f6f7f9 0 0 repeat-x;
background: -moz-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%); /* FF3.6+ */ /* Old browsers */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f6f7f9), color-stop(100%,#ebedf0)); /* Chrome,Safari4+ */ background: -moz-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%);
background: -webkit-linear-gradient(top, #f6f7f9 0%,#ebedf0 100%); /* Chrome10+,Safari5.1+ */ /* FF3.6+ */
background: -o-linear-gradient(top, #f6f7f9 0%,#ebedf0 100%); /* Opera11.10+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f6f7f9), color-stop(100%, #ebedf0));
background: -ms-linear-gradient(top, #f6f7f9 0%,#ebedf0 100%); /* IE10+ */ /* Chrome,Safari4+ */
background: linear-gradient(to bottom, #f6f7f9 0%,#ebedf0 100%); /* W3C */ background: -webkit-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%);
/* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%);
/* Opera11.10+ */
background: -ms-linear-gradient(top, #f6f7f9 0%, #ebedf0 100%);
/* IE10+ */
background: linear-gradient(to bottom, #f6f7f9 0%, #ebedf0 100%);
/* W3C */
} }
.ui-menu .ui-menuitem > .ui-menuitem-link:hover, .ui-menu .ui-menuitem>.ui-menuitem-link:hover,
.ui-menubar .ui-menuitem > .ui-menuitem-link:hover, .ui-menubar .ui-menuitem>.ui-menuitem-link:hover,
.ui-tieredmenu .ui-menuitem > .ui-menuitem-link:hover, .ui-tieredmenu .ui-menuitem>.ui-menuitem-link:hover,
.ui-slidemenu .ui-menuitem > .ui-menuitem-link:hover, .ui-slidemenu .ui-menuitem>.ui-menuitem-link:hover,
.ui-contextmenu .ui-menuitem > .ui-menuitem-link:hover, .ui-contextmenu .ui-menuitem>.ui-menuitem-link:hover,
.ui-megamenu .ui-menuitem > .ui-menuitem-link:hover { .ui-megamenu .ui-menuitem>.ui-menuitem-link:hover {
background-color: #a6a6a6; background-color: #a6a6a6;
color: #ffffff; color: #ffffff;
} }
.ui-menu .ui-menuitem.ui-menuitem-active > .ui-menuitem-link, .ui-menu .ui-menuitem.ui-menuitem-active>.ui-menuitem-link,
.ui-menubar .ui-menuitem.ui-menuitem-active > .ui-menuitem-link, .ui-menubar .ui-menuitem.ui-menuitem-active>.ui-menuitem-link,
.ui-tieredmenu .ui-menuitem.ui-menuitem-active > .ui-menuitem-link, .ui-tieredmenu .ui-menuitem.ui-menuitem-active>.ui-menuitem-link,
.ui-slidemenu .ui-menuitem.ui-menuitem-active > .ui-menuitem-link, .ui-slidemenu .ui-menuitem.ui-menuitem-active>.ui-menuitem-link,
.ui-contextmenu .ui-menuitem.ui-menuitem-active > .ui-menuitem-link, .ui-contextmenu .ui-menuitem.ui-menuitem-active>.ui-menuitem-link,
.ui-megamenu .ui-menuitem.ui-menuitem-active > .ui-menuitem-link { .ui-megamenu .ui-menuitem.ui-menuitem-active>.ui-menuitem-link {
background-color: #a6a6a6; background-color: #a6a6a6;
color: #ffffff; color: #ffffff;
} }
/* PanelMenu */ /* PanelMenu */
.ui-panelmenu .ui-panelmenu-header.ui-state-active, .ui-panelmenu .ui-panelmenu-header.ui-state-active,
.ui-panelmenu .ui-panelmenu-header.ui-state-active a { .ui-panelmenu .ui-panelmenu-header.ui-state-active a {
border-color: $stateHighlightBorderColor; border-color: $stateHighlightBorderColor;
@ -564,9 +630,9 @@ $inputGroupTextColor: #222222;
} }
/* DatePicker */ /* DatePicker */
.ui-datepicker.ui-widget { .ui-datepicker.ui-widget {
padding: 0; padding: 0;
.ui-datepicker-header { .ui-datepicker-header {
-webkit-border-radius: 0px; -webkit-border-radius: 0px;
-moz-border-radius: 0px; -moz-border-radius: 0px;
@ -574,49 +640,40 @@ $inputGroupTextColor: #222222;
border-top: 0 none; border-top: 0 none;
border-left: 0 none; border-left: 0 none;
border-right: 0 none; border-right: 0 none;
a { a {
&:hover { &:hover {
border-width: 1px; border-width: 1px;
} }
} }
} }
.ui-datepicker-calendar { .ui-datepicker-calendar {
margin: 0; margin: 0;
thead th { thead th {
background-color: #f6f8fa; background-color: #f6f8fa;
} }
td { td {
border-bottom: 1px solid rgba(213, 213, 213, 0.5); border-bottom: 1px solid rgba(213, 213, 213, 0.5);
a { a {
&.ui-state-highlight { &.ui-state-highlight {
background-color: #d6d6d6; background-color: #d6d6d6;
color: #212121; color: #212121;
} }
&.ui-state-active { &.ui-state-active {
background-color: $stateHighlightBgColor; background-color: $stateHighlightBgColor;
color: #ffffff; color: #ffffff;
} }
} }
} }
tr:last-child td { tr:last-child td {
border-bottom: 0 none; border-bottom: 0 none;
} }
} }
.ui-monthpicker { .ui-monthpicker {
a.ui-state-active { a.ui-state-active {
background-color: $stateHighlightBgColor; background-color: $stateHighlightBgColor;
color: #ffffff; color: #ffffff;
} }
} }
.ui-timepicker { .ui-timepicker {
border-bottom: 0 none; border-bottom: 0 none;
border-left: 0 none; border-left: 0 none;
@ -625,7 +682,6 @@ $inputGroupTextColor: #222222;
-webkit-border-radius: 0; -webkit-border-radius: 0;
border-radius: 0; border-radius: 0;
} }
&.ui-datepicker-timeonly { &.ui-datepicker-timeonly {
.ui-timepicker { .ui-timepicker {
border-top: 0 none; border-top: 0 none;
@ -634,11 +690,13 @@ $inputGroupTextColor: #222222;
} }
/* Steps */ /* Steps */
.ui-steps .ui-steps-item.ui-state-highlight .ui-menuitem-link { .ui-steps .ui-steps-item.ui-state-highlight .ui-menuitem-link {
color: #ffffff; color: #ffffff;
} }
/* Dialog */ /* Dialog */
.ui-dialog.ui-widget .ui-dialog-titlebar { .ui-dialog.ui-widget .ui-dialog-titlebar {
padding: 1em 1.5em; padding: 1em 1.5em;
} }
@ -652,6 +710,7 @@ $inputGroupTextColor: #222222;
} }
/* Schedule */ /* Schedule */
.fc { .fc {
.fc-button-group { .fc-button-group {
.ui-state-active { .ui-state-active {