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

Commit

Permalink
Initial styles. TODO cleanup (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
asangma committed May 15, 2020
1 parent 178e5d9 commit a9a6b5b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 49 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
:host {
@extend %component-host;
@include borderShadow();
// @include borderShadow();
border-top: 1px solid var(--calcite-app-border);
align-items: center;
background-color: var(--calcite-app-background-clear);
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
VNode
} from "@stencil/core";
import { CSS, ICONS, SLOTS, TEXT } from "./resources";
import { CalciteAppearance } from "../interfaces";
import { ICON_TYPES } from "../calcite-pick-list/resources";
import { getSlotted } from "../utils/dom";

Expand All @@ -30,6 +31,11 @@ export class CalcitePickListItem {
//
// --------------------------------------------------------------------------

/**
* Determines the appearance of the component. Defaults to solid
*/
@Prop({ reflect: true }) appearance: CalciteAppearance = "solid";

/**
* When true, the item cannot be clicked and is visually muted.
*/
Expand Down Expand Up @@ -243,6 +249,7 @@ export class CalcitePickListItem {

return (
<calcite-action
appearance={this.appearance}
scale="s"
class={CSS.remove}
icon={ICONS.remove}
Expand Down
9 changes: 8 additions & 1 deletion src/components/calcite-pick-list/calcite-pick-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@extend %component-host;
align-items: stretch;
display: flex;
flex: 1 0 auto;
flex: 0 1 auto;
flex-flow: column;
padding-bottom: var(--calcite-app-cap-spacing);
position: relative;
Expand All @@ -24,6 +24,13 @@ header {
@include borderShadow();
}

:host([appearance="clear"]) {
background-color: var(--calcite-app-background-clear);
header {
background-color: var(--calcite-app-background-clear);
}
}

calcite-filter {
margin-bottom: 1px;
}
Expand Down
58 changes: 11 additions & 47 deletions src/demos/shell/demo-app-advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,59 +129,23 @@
<!-- <calcite-tip non-dismissible>
Pop-ups authored in Map Viewer Beta are not compatible with all apps. <a href="https://links.esri.com/agol/new-mv-beta" target="_blank">Learn more</a>
</calcite-tip> -->
<div class="popup-warning-div">
<!-- <div class="popup-warning-div"> -->
<calcite-notice scale="s" active dismissible>
<span slot="notice-message">
Pop-ups authored in Map Viewer Beta are not compatible with all apps.
</span>
<a slot="notice-link" href="https://links.esri.com/agol/new-mv-beta" target="_blank">Learn more</a>
</calcite-notice>
</div>
<!-- <div class="popup-warning-div">
<label class="popup-warning-label">
Pop-ups authored in Map Viewer Beta are not compatible with all apps. <a href="https://links.esri.com/agol/new-mv-beta" target="_blank">Learn more</a>
</label>
</div> -->
<calcite-action slot="menu-actions" text="Switch layer" icon="caret-down"></calcite-action>

<section class="enable-label">
<span class="enable-label__text">Enable popup</span>
<calcite-switch scale="s" switched></calcite-switch>
</section>
<div class="combo-button flow-list-item">
<button class="combo-button__main">
Manage expresions
</button>
<calcite-icon class="combo-action" icon="chevron-right" scale="s"></calcite-icon>
</div>
<!-- <section class="popup-title">
<div class="combo-control">
<span class="combo-control__label">
Title
</span>
<div class="combo-button">
<button class="combo-button__main">
County: {NAME}
</button>
<calcite-action class="combo-action" scale="s" icon="code"></calcite-action>
</div>
</div>
</section> -->
<!-- <calcite-value-list drag-enabled>
<calcite-value-list-item
text-label="2018 Total Households (Esri)"
text-description="{TOTHH_CY}"
></calcite-value-list-item>
<calcite-value-list-item
text-label="2018 Average Household Size (Esri)"
text-description="{AVGHHSZ_CY}"
></calcite-value-list-item>
</calcite-value-list>
<div style="display: flex;">
<calcite-button icon="plus" scale="s" width="half" appearance="transparent">Field</calcite-button>
<calcite-button icon="plus" scale="s" width="half" appearance="transparent">Expression</calcite-button>
</div> -->

<!-- </div> -->
<calcite-action slot="leading-actions" text="Switch layer" scale="s" icon="caret-down"></calcite-action>
<calcite-pick-list appearance="clear">
<calcite-pick-list-item text-label="Feature pop-up" text-description="Configure the pop-up for individual features.">
<calcite-icon icon="chevron-right" scale="s" slot="secondary-action"></calcite-icon>
</calcite-pick-list-item>
<calcite-pick-list-item text-label="Cluster popup" text-description="This is a description.">
<calcite-icon icon="chevron-right" scale="s" slot="secondary-action"></calcite-icon>
</calcite-pick-list-item>
</calcite-pick-list>
<calcite-block heading="Title" summary="County: {NAME}" collapsible>
<calcite-icon icon="title" scale="m" slot="icon"></calcite-icon>
<div class="combo-control">
Expand Down

0 comments on commit a9a6b5b

Please sign in to comment.