cloudstack/ui/stylesheets/cloudstack.scss

385 lines
7.6 KiB
SCSS

// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
@import "csui/csui";
@import "browser";
@import "dashboard";
@import "icons";
@import "instance-wizard";
html body > .login {
@include csui-login;
}
body {
background: #dbdbdb;
}
#container {
@include animation-duration(500ms);
}
#template {
display: none !important;
}
#header {
@include csui-header;
position: relative;
z-index: 2;
.controls {
position: relative;
> * {
float: left;
}
text-shadow: 0px 1px 1px black;
}
#user, .notifications {
position: relative;
float: right;
margin-right: 20px;
padding-right: 20px;
top: -65px;
cursor: pointer;
&:hover {
> span, .name {
text-decoration: underline;
}
}
}
.notifications {
.total {
padding: 5px 10px;
@include linear-gradient(#a4a4a4, lighten(#272727, 15%));
border-radius: 1px;
margin-top: -5px;
margin-right: 20px;
float: left;
border-radius: 8px;
text-shadow: 0px 2px 2px black;
}
}
.view-switcher {
display: none !important;
}
.project-switcher {
@include span-columns(3);
@include row;
label {
@include csui-label;
@include span-columns(3);
margin-top: 20px;
}
select {
@include csui-dropdown;
@include span-columns(8);
}
}
.region-switcher {
@include span-columns(2);
@include row;
height: 100%;
cursor: pointer;
padding: 5px;
margin-top: 10px;
&:hover {
.title {
text-decoration: underline;
}
}
.icon {
@include span-columns(3 of 16);
@include csui-sprite(142, 390);
height: 30px;
}
.title {
@include span-columns(11 of 16);
@include shift(1);
@include csui-label;
text-align: left;
margin-top: 6px;
}
}
#user {
background: url(csui/img/form/dropdown-arrow-white.png) no-repeat right;
}
}
#main-area {
width: 1280px;
height: 728px;
margin: 0px auto;
background: white;
box-shadow: 0px -15px 20px gray;
overflow: hidden;
border: 1px solid #c0c0c0;
}
#navigation {
@include linear-gradient(white, #dbdbdb 7%);
width: 20%;
height: 100%;
float: left;
overflow: auto;
ul {
margin: 50px 0 0 0;
padding: 0;
li {
font-size: 12px;
list-style: none;
text-indent: 10px;
font-weight: bold;
color: lighten(black, 20%);
cursor: pointer;
text-shadow: 0px 1px 1px darken(white, 10%);
padding-left: 20px;
padding-right: 20px;
span {
display: block;
border-bottom: 1px solid #a7a7a7;
padding-top: 10px;
padding-bottom: 10px;
box-shadow: 0px 1px 0px white;
}
span.icon {
display: none;
}
&:hover, &.active {
background: #3f3f3f;
color: white;
text-shadow: 0px 1px 1px black;
box-shadow: inset 0px 0px 10px black;
position: relative;
z-index: 3;
top: -1px;
padding-top: 1px;
span {
border-bottom: none;
box-shadow: none;
}
}
}
}
}
.notification-box, #user-options, .region-selector {
@include csui-dialog;
display: none;
}
// Corner user drop-down
#user-options {
a {
@include csui-hyperlink;
@include row;
&.logout {
font-weight: bold;
margin-top: 25px;
}
}
}
// List view widget
.list-view {
@include csui-list;
// Advanced search field
#advanced_search {
float: right;
.icon {
@include csui-sprite(61, 167);
position: relative;
width: 15px;
height: 15px;
left: 215px;
top: 10px;
cursor: pointer;
z-index: 10;
}
.form-container {
@include csui-dialog;
@include csui-form;
width: 400px;
margin-top: -15px;
margin-left: -160px;
opacity: 0.9;
padding-top: 0px;
form {
display: inline-block;
border: none;
}
.message { display: none; }
.form-item {
margin-top: 20px;
}
.name {
position: relative;
top: -20px;
}
input[type=submit], .button.cancel {
position: relative;
top: 25px;
}
input[type=submit] {
@include csui-button-cta;
float: right;
}
.button.cancel {
@include csui-button;
float: left;
}
}
}
max-height: 85%;
}
.detail-view {
.ui-tabs-nav {
@include csui-tabs;
li.ui-state-active {
@include csui-tab-active;
}
}
.detail-group {
@include csui-details;
.main-groups {
max-height: 400px;
overflow: auto;
}
}
.ui-tabs-hide {
display: none;
}
table {
width: 100%;
tr {
&:nth-child(even) {
background: lighten(#ccc, 12%);
}
}
th, td {
padding: 10px;
}
}
.detail-actions {
background: white;
border-radius: 6px;
display: inline-block;
height: 50px;
overflow: hidden;
@include row;
.buttons {
.action:not(.text) {
margin: 8px 5px;
}
.action.text {
margin-left: 25px;
margin-top: -4px;
}
}
}
td.view-all {
display: block;
float: left;
padding: 15px 25px 0 0;
a {
color: #5194C0;
text-decoration: none;
&:hover {
text-decoration: underline;
color: black;
}
}
}
}
// Panel toolbars
.toolbar {
@include csui-toolbar;
.panel-controls {
display: none;
}
}
// Action buttons
.action {
@include csui-action-button;
.icon {
background-image: url(../images/sprites.png);
}
}
// Wizards
.multi-wizard {
@include csui-wizard;
}