-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue: #15
- Loading branch information
Showing
79 changed files
with
17,658 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. | ||
|
||
// | ||
// Office UI Fabric | ||
// -------------------------------------------------- | ||
// Command Bar styles | ||
|
||
@import 'office-ui-fabric-core/dist/sass/References'; | ||
@import './sass/References'; | ||
|
||
$CommandBar-height: 40px; | ||
$CommandBar-md-height: 44px; | ||
$CommandBar-iconSize: 18px; | ||
$CommandBar-sideAreaWidth: 128px; | ||
$SearchBox-width: 220px; | ||
$CommandBarItem-height: $CommandBar-height; | ||
$red: #FF0000; | ||
|
||
@mixin highContrastBorder($color) { | ||
border-left: 1px solid $color; | ||
border-right: 1px solid $color; | ||
} | ||
|
||
.ms-CommandBar { | ||
background-color: $ms-color-neutralLighter; | ||
height: $CommandBar-height; | ||
white-space: nowrap; | ||
padding-left: 0; | ||
border: 0; | ||
position: relative; | ||
|
||
&:focus { | ||
outline: none; | ||
} | ||
|
||
.ms-CommandButton--actionButton { | ||
border-right: 1px solid $ms-color-neutralLight; | ||
} | ||
|
||
//== CommandBar -> ms-Button specific changes | ||
// | ||
.ms-Button { | ||
height: 100%; | ||
|
||
&.ms-Button--noLabel { | ||
.ms-Button-icon { | ||
padding-right: 0; | ||
} | ||
} | ||
|
||
&.is-hidden { | ||
display: none; | ||
} | ||
} | ||
|
||
.ms-SearchBox, | ||
.ms-SearchBox-field, | ||
.ms-SearchBox-label { | ||
height: 100%; | ||
} | ||
|
||
.ms-SearchBox { | ||
display: inline-block; | ||
vertical-align: top; | ||
//transition: margin-right $ms-duration2; | ||
} | ||
|
||
.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active { | ||
width: $SearchBox-width; | ||
|
||
@media only screen and (max-width: $ms-screen-max-md) { | ||
width: 100%; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
z-index: $ms-zIndex-front; | ||
} | ||
} | ||
|
||
.ms-CommandBar-overflowButton { | ||
.ms-CommandButton-button { | ||
font-size: 18px; | ||
padding: 0 11px; | ||
} | ||
} | ||
|
||
// Search is collapsed unless activated and its only | ||
// collapsed < L break points | ||
|
||
@media only screen and (min-width: $ms-screen-min-xl) { | ||
.ms-SearchBox { | ||
margin-right: 24px; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: $ms-screen-max-md) { | ||
height: $CommandBar-md-height; | ||
} | ||
|
||
@media only screen and (min-width: $ms-screen-min-lg) { | ||
|
||
&.search-expanded { | ||
.ms-SearchBox { | ||
margin-right: 8px; | ||
} | ||
} | ||
|
||
.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed { | ||
transition: none; | ||
} | ||
} | ||
} | ||
|
||
.ms-CommandBar-mainArea { | ||
overflow-x: hidden; | ||
display: block; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
|
||
.ms-CommandBar-sideCommands { | ||
float: right; | ||
text-align: right; | ||
width: auto; | ||
padding-right: 4px; | ||
height: 100%; | ||
|
||
.ms-Button:last-child { | ||
margin-right: 0; | ||
} | ||
|
||
@media only screen and (min-width: $ms-screen-min-lg) { | ||
min-width: $CommandBar-sideAreaWidth; | ||
} | ||
|
||
@media only screen and (min-width: $ms-screen-min-xl) { | ||
padding-right: 20px; | ||
} | ||
} |
Oops, something went wrong.