blob: 8ba51a53f54c5cc2535f41c18551edf95cde9144 [file] [log] [blame]
// Licensed 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 "../../../../../assets/less/variables.less";
@import "../../../../../assets/less/mixins.less";
#sidebar-content {
.loading-lines {
margin-top: 20px;
}
}
.sidenav {
a {
text-decoration: none;
}
// selected nav item row styles
.nav-list .active > a {
text-shadow: none;
background-color: #f1f0f1;
color: @brandHighlight;
&:hover {
color: white;
}
}
.dropdown-toggle:hover {
color: @hoverHighlight;
}
// ugly! This styles the (+) icon to make it white when a user hovers over a row. Better solution would be to move the
// active class to the <li> instead of the child <a>
.accordion-list-item:hover, .nav-list > li a:hover {
& + div.add-dropdown .dropdown-toggle,
& + span.index-menu-toggle {
color: white;
}
}
li {
position: relative;
a {
text-shadow: none;
}
}
.design-doc-section {
border-bottom: 1px solid #d3d7db;
.accordion-list-item:hover {
p, .fonticon-play {
color: white;
}
p {
background-color: @hoverHighlight;
}
}
.accordion-list-item p {
.transition(all 0.25s linear);
}
.fonticon-play {
font-size: 12px;
top: 12px;
left: 12px;
}
&.down .fonticon-play {
.rotate(90deg);
}
.add-dropdown {
right: 15px;
}
}
li.nav-header .index-list li a {
padding-left: 46px;
}
li.nav-header {
margin-top: 0;
position: relative;
.design-doc-body.in {
border-bottom: 1px solid #d3d7db;
}
.accordion-body {
color: #eee;
margin-left: 0;
li {
cursor: pointer;
&.active > a {
background-color: #f1f0f1;
}
> a.down .fonticon-play {
.rotate(90deg);
}
&:hover .fonticon-play {
color: #dddddd;
}
a {
font-size: 14px;
background-color: rgba(0, 0, 0, 0.02);
&:hover {
color: #fff;
text-decoration: none;
background-color: @hoverHighlight;
}
border-top: none;
&.accordion-header{
padding: 8px 5px 8px 36px;
}
}
}
}
.toggle-view {
padding: 4px 5px 4px 36px;
}
.fonticon-play {
font-size: 8px;
top: 11px;
left: 15px;
color: @subListGray;
position: absolute;
display: block;
vertical-align: bottom;
.transition(all 0.25s linear);
}
.fonticon:before {
margin-right: 6px;
font-size: 20px;
top: 3px;
position: relative;
}
.accordion-header:hover .fonticon-play {
color: white;
}
}
.design-doc-name {
cursor: pointer;
margin: 0;
color: #222222;
span {
width: @sidebarWidth - 30px;
display: block;
padding: 10px 13px 10px 36px;
text-overflow: ellipsis;
overflow: hidden;
}
i {
padding-right: 6px;
}
}
.index-group-header {
font-weight: bold;
}
li.nav-header .index-menu-toggle.fonticon {
position: absolute;
top: 0;
right: 0;
color: #767f89;
height: 30px;
width: 40px;
padding-top: 2px;
padding-left: 4px;
.transition(all 0.25s linear);
&:hover {
color: @hoverHighlight;
}
&:before {
font-size: 17px;
margin-right: 0;
}
}
}
#index-menu-component-popover {
.border-radius(0);
.box-shadow(2px 2px rgba(0, 0, 0, 0.2));
background-color: @brandDark2;
color: #FFF;
font-size: 12px;
padding: 0;
margin-left: -7px;
margin-top: 5px;
ul {
list-style-type: none;
margin: 0;
}
li {
padding: 10px;
background-color: @brandDark1;
margin-bottom: 2px;
cursor: pointer;
.transition(all 0.25s linear);
&:hover {
background-color: @hoverHighlight;
}
&:last-child {
margin-bottom: 0;
}
}
.arrow {
&:after {
border-bottom-color: black;
border-top-color: black;
}
}
.fonticon {
margin-right: 7px;
}
.popover-content {
padding: 0;
}
}
.clone-index-modal {
.modal-body {
padding: 20px;
}
/* the index label ("view" / "search index", etc.) is passed dynamically to the clone index modal. This fixes the text case */
.modal-title, .btn-success, .new-index-title-label {
text-transform: capitalize;
}
.styled-select, select {
width: 230px;
}
.row {
margin: 0;
padding-top: 10px;
#new-ddoc-section {
width: 262px;
label {
width: 40px;
margin-top: 27px;
float: left;
}
div.controls {
margin-left: 0;
float: right;
margin-top: 15px;
}
}
}
.ddoc-selector-partitioned {
padding-top: 0px;
padding-bottom: 16px;
}
}