Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Device group filter (#870)
Browse files Browse the repository at this point in the history
* small change

* styling changes

* color variables added

* color variable added

* Removed quotes

* updated the color variables

* alignment change

* small update
  • Loading branch information
swetha571 authored and spryor committed Jan 25, 2018
1 parent 6244cb1 commit 20625aa
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 107 deletions.
148 changes: 76 additions & 72 deletions src/components/editInput/editInput.scss
Original file line number Diff line number Diff line change
@@ -1,88 +1,92 @@
// Copyright (c) Microsoft. All rights reserved.

@import '../../styles/variables/colors';

.edit-input {
input:not([type="radio"]),
textarea,
select {
border: 1px #454a4e solid;
background-color: #1B1D1F;
width: 100%;
color: #afb9c3;
padding: 0px 8px;
input:not([type=radio]),
textarea,
select {
border: 1px $borderColor solid;
background-color: $gridTileDark;
width: 100%;
color: $lightestGray;
padding: 0px 8px;
}

.radio:not(:last-child) label { margin-bottom: 16px; }

textarea { padding: 7px 8px; }

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder { color: $lightestGray; }

input:-moz-placeholder,
textarea:-moz-placeholder { color: $lightestGray; }

label {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0;
}

.radio-img {
margin-right: 5px;
height: 10px;
width: 10px;
display: inline-block;

img {
height: 100%;
width: 100%;
}
}

.radio:not(:last-child) label { margin-bottom: 16px; }
.field-select {

textarea { padding: 7px 8px; }
.Select-control {
background-color: $gridTileDark;
border: 1px solid $borderColor !important;
padding: 0px 3px 0px 8px !important;
margin-bottom: 2px;
vertical-align: middle !important;
height: 10px;

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder { color: #afb9c3; }
input { border: none; }
}

input:-moz-placeholder,
textarea:-moz-placeholder { color: #afb9c3; }
.Select {
width: 100% !important;
margin-top: 0px !important;
}

label {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0;
.Select-placeholder,
.Select-value,
.Select-arrow-zone {
padding-top: 2px !important;
line-height: 21px !important;
}

.radio-img {
margin-right: 5px;
height: 10px;
width: 10px;
display: inline-block;
.Select-menu-outer {
border: 1px solid $borderColor !important;
width: 100%;
margin-left: 1px !important;
max-height: 200px !important;
}

img {
height: 100%;
width: 100%;
}
.Select-input {
margin-left: -16px;
padding-top: 2px;
}

.field-select {

.Select-control {
background-color: #1b1d1f;
border: 1px solid #454a4e !important;
padding: 0px 3px 0px 8px !important;
margin-bottom: 2px;
vertical-align: middle !important;
height: 10px;

input { border: 0; }
}

.Select {
width: 100% !important;
margin-top: 0px !important;
}

.Select-placeholder,
.Select-value,
.Select-arrow-zone {
padding-top: 2px !important;
line-height: 21px !important;
}

.Select-menu-outer {
border: 1px solid #454A4E !important;
width: 100%;
margin-left: 1px !important;
max-height: 200px !important;
}

.Select-input {
margin-left: -16px;
padding-top: 2px;
}

.Select-placeholder, .Select--single > .Select-control .Select-value {
padding: 0px 10px;
line-height: 21px !important;
}

.Select-clear { display: none; }
.Select-placeholder,
.Select--single > .Select-control .Select-value {
padding: 0px 10px;
line-height: 21px !important;
top: 5px;
}

.Select-clear { display: none; }
}
}
5 changes: 3 additions & 2 deletions src/components/flyout/deviceTagFlyout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@
display: inline-block;
vertical-align: center;
border: 1px solid #3e4145;
margin-top: 0px;
margin-top: 15px;

.Select-menu-outer {
Expand All @@ -210,9 +209,11 @@
padding-top: 3px;
}

.Select-control { height: 39px !important; }

.Select-clear-zone { display: none; }

.Select-arrow-zone { padding-top: 0px; }
.Select-arrow-zone { top: 3px; }

.Select,
.Select div,
Expand Down
70 changes: 43 additions & 27 deletions src/components/layout/contextFilters/contextFilters.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.

$borderColor: #454a4e;
@import '../../../styles/variables/colors';

.context-filter-container {
display: flex;
Expand All @@ -13,7 +13,7 @@ $borderColor: #454a4e;
display: flex;
flex-flow: row nowrap;
align-items: stretch;
padding-left: 18px;
padding-left: 16px;
border-right: 1px solid $borderColor;

.filter-icon {
Expand All @@ -22,8 +22,6 @@ $borderColor: #454a4e;
&.disabled { opacity: 0.5; }
}

.select-container { width: 200px; }

.select-container {
width: 200px;

Expand All @@ -41,6 +39,21 @@ $borderColor: #454a4e;
// Overrides for pcs-btn styles used in the PcsBtn component
.pcs-btn:hover:enabled { background-color: #2e2e2e; }
}

.top-nav-filters {
.Select-menu-outer {
border-top: 1px solid $gridTileLight !important;
max-height: 415px !important;
border: 1px solid $borderColor;
margin-left: -28px;
}

.Select-option {
height: 48px;
padding: 14px 16px !important;
color: $white;
}
}
}

.Select { position: relative; }
Expand All @@ -61,14 +74,14 @@ $borderColor: #454a4e;
}

.Select-control {
background-color: #121416;
background-color: $bgBlack;
border: none;
color: #121416;
color: $bgBlack;
cursor: default;
display: table;
border-spacing: 0;
border-collapse: separate;
height: 36px;
height: 43px;
outline: none;
overflow: hidden;
position: relative;
Expand All @@ -83,8 +96,8 @@ $borderColor: #454a4e;
.is-open > .Select-control {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
background: #121416;
color: #afb9c3;
background: $bgBlack;
color: $lightestGray;
}

.is-open > .Select-control .Select-arrow {
Expand All @@ -100,7 +113,7 @@ $borderColor: #454a4e;
.Select-placeholder,
.Select--single > .Select-control .Select-value {
bottom: 0;
color: #afb9c3;
color: $lightestGray;
left: 0;
line-height: 36px;
padding-left: 10px;
Expand All @@ -114,7 +127,7 @@ $borderColor: #454a4e;
white-space: nowrap;
}

.Select-value-label { color: #afb9c3; }
.Select-value-label { color: $lightestGray; }

.Select-input {
height: 34px;
Expand Down Expand Up @@ -163,23 +176,23 @@ $borderColor: #454a4e;
display: inline-block;
height: 0;
width: 0;
bottom: 2px;
position: relative;
margin-right: 8px;
}

.is-open .Select-arrow,
.Select-arrow-zone:hover > .Select-arrow {
border-top-color: #666;
}
.Select-arrow-zone:hover > .Select-arrow { border-top-color: #666; }

.Select-menu-outer {
background-color: #121416;
border: 1px solid #121416;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
background-color: $bgBlack;
border: 1px solid $bgBlack;
box-shadow: rgba(0,0,0,0.3);
box-sizing: border-box;
max-height: 400px;
max-height: 430px;
position: absolute;
border-top: 1px solid #454a4e;
width: 232px;
border-top: 1px solid $borderColor;
width: 230px;
margin-left: -32px;
top: 100%;
z-index: 1;
Expand All @@ -198,15 +211,18 @@ $borderColor: #454a4e;
}
}

.Select-menu { max-height: 400px; }
.Select-menu { max-height: 430px; }

.Select-option {
box-sizing: border-box;
background-color: #121416;
color: #afb9c3;
background-color: $bgBlack;
color: $lightestGray;
cursor: pointer;
display: block;
padding: 10px;
color: $white !important;

&:hover { background-color: #383B3E; }
}

.Select-option:last-child {
Expand All @@ -215,13 +231,13 @@ $borderColor: #454a4e;
}

.Select-option.is-selected {
background-color: #afb9c3;
color: #121416;
background-color: $gridTileLight;
color: $bgBlack;
}

.Select-option.is-focused {
background-color: #242628;
color: #afb9c3;
background-color: none;
border: 1px dotted $lightestGray;
}

.Select-noresults {
Expand Down
14 changes: 8 additions & 6 deletions src/components/pages/dashboard/dashboard.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.

@import '../../../styles/variables/colors';

.timerange-selection.dashboard {
display: flex;
justify-content: flex-end;
Expand All @@ -9,28 +11,28 @@
.Select-control { margin-top: 10px; }

.Select-value-label,
.Select-arrow-zone { color: #fff; }
.Select-arrow-zone { color: $white; }

.Select {
width: 120px;
font-size: 16px;
color: #fff !important;
color: $white !important;
}

.Select-menu-outer {
width : 120px;
margin-left: 10px;
width : 140px;
margin-left: -20px;
}

.last-refreshed-time {
margin-right: 10px;
color: #fff;
color: $white;
}

.last-refreshed-text {
margin-left: 10px;
margin-right: 6px;
color: #afb9c3;
color: $lightestGray;
}

.time-icon {
Expand Down
Loading

0 comments on commit 20625aa

Please sign in to comment.