Skip to content

Commit

Permalink
feat(au1-app): add css styles
Browse files Browse the repository at this point in the history
issue: #15
  • Loading branch information
glyad committed Mar 20, 2023
1 parent 2650e0d commit 010ab31
Show file tree
Hide file tree
Showing 79 changed files with 17,658 additions and 264 deletions.
8 changes: 7 additions & 1 deletion packages/au1-app/src/app.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<template>
<!-- <require from="office-ui-fabric-core/src/sass/Fabric.scss"></require> -->
<require from="./resources/sass/Fabric.scss"></require>
<require from="office-ui-fabric-core/src/documentation/sass/docs.scss"></require>
<require from="office-ui-fabric-core/src/sass/Fabric.scss"></require>
<require from="./resources/fabric.components.css"></require>
<require from="./resources/sass/mixins/_Grid.Mixins.scss"></require>
<require from="./resources/CommandButton.scss"></require>
<require from="./resources/CommandBar.scss"></require>
<require from="./resources/DetailsList.scss"></require>
<!-- <require from="./resources/Dropdown.scss"></require> -->
<require from="./app.scss"></require>

<h1>${message}</h1>
Expand Down
97 changes: 68 additions & 29 deletions packages/au1-app/src/app.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
@import "resources/styles/components/details-list/DetailsHeader.scss";
@import "resources/styles/components/details-list/DetailsList.scss";
@import "resources/styles/components/details-list/DetailsRow.scss";
@import "resources/styles/components/details-list/DetailsRowCheck.scss";

.SubmitButton {
margin-top: 20px;
}

.ms-Stack {
display: flex;
flex-direction: column;
Expand All @@ -9,43 +18,73 @@
color: rgb(50, 49, 48);
}

.ms-FocusZone {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
width: auto;
height: auto;
box-sizing: border-box;
background-color: rgb(255, 255, 255);
color: rgb(50, 49, 48);
.ms-Grid-row {
@include ms-Grid-row;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
height: auto;
position: relative;
box-sizing: border-box;
}

.ms-OverflowSet {
position: relative;
.ms-Grid-col {
@include ms-Grid-col;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
flex-grow: 1;
align-items: stretch;
box-sizing: border-box;
}

ms-OverflowSetVertical {
.ms-Grid {
@include ms-Grid;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
width: auto;
height: auto;
box-sizing: border-box;
background-color: rgb(255, 255, 255);
color: rgb(50, 49, 48);
}

.ms-OverflowSet-item, .ms-OverflowSet-overflowButton {
flex-shrink: 0;
display: inherit;
}
// .ms-FocusZone {
// display: flex;
// flex-direction: column;
// flex-wrap: nowrap;
// width: auto;
// height: auto;
// box-sizing: border-box;
// background-color: rgb(255, 255, 255);
// color: rgb(50, 49, 48);
// }

.ms-Button--commandBar{
min-width: 40px;
background-color: white;
color: rgb(50, 49, 48);
padding: 0 4px;
border: none;
}
// .ms-OverflowSet {
// position: relative;
// display: flex;
// flex-wrap: nowrap;
// flex-grow: 1;
// align-items: stretch;
// }

.ms-Button--commandBar:focus {
inset: 2;
border-color: transparent;
}
// ms-OverflowSetVertical {
// flex-direction: column;
// }

// .ms-OverflowSet-item, .ms-OverflowSet-overflowButton {
// flex-shrink: 0;
// display: inherit;
// }

// .ms-Button--commandBar{
// min-width: 40px;
// background-color: white;
// color: rgb(50, 49, 48);
// padding: 0 4px;
// border: none;
// }

// .ms-Button--commandBar:focus {
// inset: 2;
// border-color: transparent;
// }
139 changes: 139 additions & 0 deletions packages/au1-app/src/resources/CommandBar.scss
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;
}
}
Loading

0 comments on commit 010ab31

Please sign in to comment.