jsketcher/web/css/app3d.less
2016-11-23 19:27:33 -08:00

254 lines
No EOL
4.1 KiB
Text

@tab-switcher-inner-height: 20px;
@tab-switcher-top-border: 1px;
@tab-switcher-height: @tab-switcher-inner-height + @tab-switcher-top-border;
@tab-border-color: #2c2c2c;
@right-panel-width: 250px;
@control-button-border: 1px solid #2c2c2c;
@menu-border-radius: 3px;
@suppressed-color: #888;
.no-selection {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
body {
background-color: #808080;
.main-font;
}
.main-font {
font: 11px 'Lucida Grande', sans-serif;
}
.history-selected, .history-selected:hover {
background-color: #780000;
}
.app-tab-view {
position: absolute;
top: 0;
bottom: @tab-switcher-height;
width: 100%;
}
#tab-switcher {
position: absolute;
height: @tab-switcher-inner-height;
bottom: 0;
background-color: #000;
width: 100%;
border-top: 1px solid @tab-border-color;
color: #eee;
text-align: center;
.no-selection;
}
#tab-switcher .tab {
padding: 2px 5px 0 5px;
height: 100%;
float: left;
cursor: pointer;
border-right: 1px solid #2c2c2c;
color: #aaa;
}
#tab-switcher .tab:hover {
color: #eee;
}
#tab-switcher .tab-selected {
background-color: #222;
color: #eee;
}
.tab .expand:hover {
color: green;
}
.tab .close:hover {
color: red;
}
#viewer-container {
position: absolute;
left: @right-panel-width;
right: 0;
top: 0;
bottom: 0;
}
#control-bar {
position: absolute;
left: @right-panel-width;
right: 0;
bottom: 0;
height: 20px;
background-color: rgba(0, 0, 0, 0.5);
color: #ccc;
}
#control-bar .left-group {
text-align: left;
float: left;
}
#control-bar .right-group {
text-align: right;
}
#control-bar .left-group .button {
float: left;
border-right: @control-button-border;
}
#control-bar .right-group .button {
float: right;
border-left: @control-button-border;
}
.button .fa {
line-height: 1.5;
}
#control-bar .button {
padding: 3px 7px 0 5px;
height: 100%;
vertical-align: baseline;
cursor: pointer;
.no-selection
}
#control-bar .button:hover {
background-color: #555;
}
#control-bar .button-selected {
background-color: #666;
}
#control-bar .button-selected:hover {
background-color: #666;
}
#right-panel {
position: absolute;
height: 100%;
background-color: #000;
width: @right-panel-width;
}
.aux-win {
color: #fff;
background-color: rgba(40,40,40,0.95);
border: solid 1px #000;
border-radius: @menu-border-radius
}
.menu {
position: absolute;
.aux-win;
/* this element can't have neither padding nor margin to be properly positioned as menu */
}
.menu-container {
padding: 5px 0 5px 0;
}
.menu-item {
padding: 5px 5px 5px 2px;
cursor: pointer;
text-transform: capitalize;
white-space: nowrap;
}
.menu-item .menu-text {
padding-right: 5px;
}
.menu-item:hover {
background-color: #0074D9;
}
.menu-flat-bottom {
border-radius: @menu-border-radius @menu-border-radius 0 0;
}
.menu-flat-top {
border-radius: 0 0 @menu-border-radius @menu-border-radius;
}
.menu-separator {
border-top: solid 1px #777;
}
.menu-item .fa {
margin-left: -16px;
padding-right: 3px;
}
.menu-item.action-disabled {
color: @suppressed-color;
}
.menu-item .action-hotkey-info {
float: right;
padding-left: 15px;
color: @suppressed-color;
font-size: 9px;
margin-top: 1px;
}
.icon16-left {
background-position-y: center;
background-position-x: 5px;
background-repeat: no-repeat;
background-size: 16px 16px;
padding-left: 25px;
}
.message-sink {
display: none;
position: absolute;
max-width: 400px;
padding: 2px 5px 2px 5px;
.aux-win;
color: #ccc;
white-space: nowrap;
z-index: 999;
}
.action-info > div {
padding: 3px 0 3px 0;
}
.action-info-hotkey {
text-align: right;
font-style: italic;
color: @suppressed-color;
}
.action-info-hint {
font-style: italic;
color: #E1A4A4;
}
.solid-list .solid-item {
background-image: url('../img/3d/solid32.png');
}
.solid-list .sketch-item {
padding-left : 50px;
background-position-x: 30px;
background-image: url('../img/3d/sketch32.png');
}
.modification-item {
word-wrap: break-word;
word-break: break-all;
}