Skip to content

Commit

Permalink
#4820 Styling for new search
Browse files Browse the repository at this point in the history
- Styles for tags and tag application in Notebook entries;
- Significant changes;
  • Loading branch information
charlesh88 committed May 6, 2022
1 parent fd9a623 commit 6209e82
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
18 changes: 9 additions & 9 deletions example/tags/tags.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"tags": {
"46a62ad1-bb86-4f88-9a17-2a029e12669d": {
"label": "warning",
"backgroundColor": "#FF0000",
"foregroundColor": "#FFFFFF"
"label": "Science",
"backgroundColor": "#cc0000",
"foregroundColor": "#ffffff"
},
"65f150ef-73b7-409a-b2e8-258cbd8b7323": {
"label": "caution",
"backgroundColor": "#FFA701",
"foregroundColor": "#FFFFFF"
"label": "Driving",
"backgroundColor": "#ffad32",
"foregroundColor": "#333333"
},
"f156b038-c605-46db-88a6-67cf2489a371": {
"label": "nominal",
"backgroundColor": "#345414",
"label": "Drilling",
"backgroundColor": "#b0ac4e",
"foregroundColor": "#FFFFFF"
}
}
}
}
6 changes: 6 additions & 0 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@
width: $plotSwatchD;
}

@mixin dropDownArrowBg() {
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3e%3cpath fill='%23#{svgColorFromHex($colorSelectArw)}' d='M5 5l5-5H0z'/%3e%3c/svg%3e");
background-repeat: no-repeat, no-repeat;
background-position: right .4em top 80%, 0 0;
}

@mixin noColor() {
// A "no fill/stroke" selection option. Used in palettes.
$c: red;
Expand Down
6 changes: 4 additions & 2 deletions src/styles/notebook.scss
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,12 @@
}

&__content {
display: flex;
flex-direction: column;
flex: 1 1 auto;

> [class*="__"] + [class*="__"] {
margin-top: $interiorMarginSm;
> * + * {
margin-top: $interiorMargin;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/styles/vue-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
@import "../ui/components/progress-bar.scss";
@import "../ui/components/search.scss";
@import "../ui/components/swim-lane/swimlane.scss";
@import "../ui/components/tags/tags-editor.scss";
@import "../ui/components/tags/tags.scss";
@import "../ui/components/toggle-switch.scss";
@import "../ui/components/timesystem-axis.scss";
@import "../ui/components/List/list-view.scss";
Expand Down

0 comments on commit 6209e82

Please sign in to comment.