Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions force-app/main/default/lwc/apiMethod/apiMethod.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
c-clock {
border: solid var(--lwc-borderWidthThin, 1px) #ecebea;
border-radius: var(--lwc-borderRadiusMedium, 4px);
padding: 14px var(--lwc-varSpacingXSmall, 8px)
var(--lwc-varSpacingXSmall, 8px) var(--lwc-varSpacingXSmall, 8px);
margin-top: var(--lwc-varSpacingSmall, 12px);
}

c-clock:before {
content: 'c-clock';
color: rgb(221, 219, 218);
position: absolute;
top: -10px;
left: var(--lwc-varSpacingXxSmall, 4px);
background-color: var(--lwc-colorBackgroundAlt, #ffffff);
padding: 0 var(--lwc-varSpacingXxSmall, 4px);
fieldset {
border: solid var(--slds-g-sizing-border-1)
var(--slds-g-color-neutral-base-80);
border-radius: var(--slds-g-radius-border-2);
}
5 changes: 4 additions & 1 deletion force-app/main/default/lwc/apiMethod/apiMethod.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
label="Refresh Time"
onclick={handleRefresh}
></lightning-button>
<c-clock class="slds-show slds-is-relative"></c-clock>
<fieldset class="slds-var-p-around_x-small">
<legend>c-clock</legend>
<c-clock></c-clock>
</fieldset>
</div>

<c-view-source source="lwc/apiMethod" slot="footer">
Expand Down
20 changes: 4 additions & 16 deletions force-app/main/default/lwc/apiProperty/apiProperty.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
c-chart-bar {
border: solid var(--lwc-borderWidthThin, 1px) #ecebea;
border-radius: var(--lwc-borderRadiusMedium, 4px);
padding: 10px var(--lwc-varSpacingXxxSmall, 2px)
var(--lwc-varSpacingXxxSmall, 2px) var(--lwc-varSpacingXxxSmall, 2px);
margin-top: var(--lwc-varSpacingSmall, 12px);
}

c-chart-bar:before {
content: 'c-chart-bar';
color: var(--slds-g-color-neutral-base-90, #dddbda);
position: absolute;
top: -10px;
left: var(--lwc-varSpacingXxSmall, 4px);
background-color: var(--lwc-colorBackgroundAlt, #ffffff);
padding: 0 var(--lwc-varSpacingXxSmall, 4px);
fieldset {
border: solid var(--slds-g-sizing-border-1)
var(--slds-g-color-neutral-base-80);
border-radius: var(--slds-g-radius-border-2);
}
8 changes: 4 additions & 4 deletions force-app/main/default/lwc/apiProperty/apiProperty.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
value={percentage}
onchange={handlePercentageChange}
></lightning-input>
<c-chart-bar
class="slds-show slds-is-relative"
percentage={percentage}
></c-chart-bar>
<fieldset class="slds-var-p-around_x-small">
<legend>c-chart-bar</legend>
<c-chart-bar percentage={percentage}></c-chart-bar>
</fieldset>
</div>

<c-view-source source="lwc/apiProperty" slot="footer">
Expand Down
20 changes: 4 additions & 16 deletions force-app/main/default/lwc/apiSetterGetter/apiSetterGetter.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
.todo-list {
border: solid var(--lwc-borderWidthThin, 1px) #ecebea;
border-radius: var(--lwc-borderRadiusMedium, 4px);
padding: 14px var(--lwc-varSpacingXSmall, 8px)
var(--lwc-varSpacingXSmall, 8px) var(--lwc-varSpacingXSmall, 8px);
margin-top: var(--lwc-varSpacingSmall, 12px);
}

.todo-list:before {
content: 'c-todo-list';
color: rgb(221, 219, 218);
position: absolute;
top: -10px;
left: var(--lwc-varSpacingXxSmall, 4px);
background-color: var(--lwc-colorBackgroundAlt, #ffffff);
padding: 0 var(--lwc-varSpacingXxSmall, 4px);
fieldset {
border: solid var(--slds-g-sizing-border-1)
var(--slds-g-color-neutral-base-80);
border-radius: var(--slds-g-radius-border-2);
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
onclick={handleSave}
></lightning-button>
</div>
<div class="todo-list slds-is-relative">
<fieldset class="slds-var-p-around_x-small">
<legend>c-todo-list</legend>
<c-todo-list todos={todos}></c-todo-list>
</div>
</fieldset>
</div>

<c-view-source source="lwc/apiSetterGetter" slot="footer">
Expand Down
21 changes: 4 additions & 17 deletions force-app/main/default/lwc/apiSpread/apiSpread.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
c-child {
position: relative;
border: solid 1px #ecebea;
border-radius: 4px;
display: block;
padding: 14px 8px 8px 8px;
margin-top: 16px;
}

c-child:before {
content: 'c-child';
color: #dddbda;
position: absolute;
top: -16px;
left: 4px;
background-color: #ffffff;
padding: 0 4px;
fieldset {
border: solid var(--slds-g-sizing-border-1)
var(--slds-g-color-neutral-base-80);
border-radius: var(--slds-g-radius-border-2);
}
31 changes: 18 additions & 13 deletions force-app/main/default/lwc/apiSpread/apiSpread.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
<template>
<lightning-card title="ApiSpread" icon-name="custom:custom14">
<div class="slds-var-m-around_medium">
<lightning-input
name="firstName"
label="First Name"
onchange={handleChange}
value={props.firstName}
></lightning-input>
<lightning-input
name="lastName"
label="Last Name"
onchange={handleChange}
value={props.lastName}
></lightning-input>
<c-child lwc:spread={props}></c-child>
<div class="slds-var-m-bottom_small">
<lightning-input
name="firstName"
label="First Name"
onchange={handleChange}
value={props.firstName}
></lightning-input>
<lightning-input
name="lastName"
label="Last Name"
onchange={handleChange}
value={props.lastName}
></lightning-input>
</div>
<fieldset class="slds-var-p-around_x-small">
<legend>c-child</legend>
<c-child lwc:spread={props}></c-child>
</fieldset>
</div>

<c-view-source source="lwc/apiSpread" slot="footer">
Expand Down
2 changes: 1 addition & 1 deletion force-app/main/default/lwc/chartBar/chartBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}

.bar {
margin-left: 4px;
margin-left: var(--slds-g-spacing-1, 4px);
height: 36px;
background-color: #f5b041;
}
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
@import 'c/cssLibrary';
fieldset {
border: solid var(--slds-g-sizing-border-1)
var(--slds-g-color-neutral-base-80);
border-radius: var(--slds-g-radius-border-2);
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<template>
<lightning-card title="CompositionBasics" icon-name="custom:custom57">
<div class="slds-var-m-around_medium">
<c-contact-tile
class="slds-show slds-is-relative"
contact={contact}
></c-contact-tile>
<fieldset class="slds-var-p-horizontal_x-small">
<legend>c-contact-tile</legend>
<c-contact-tile
class="slds-show slds-is-relative"
contact={contact}
></c-contact-tile>
</fieldset>
</div>

<c-view-source source="lwc/compositionBasics" slot="footer">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
lightning-input,
c-contact-tile {
border: solid var(--lwc-borderWidthThin, 1px) #ecebea;
border-radius: var(--lwc-borderRadiusMedium, 4px);
padding: var(--lwc-varSpacingXxxSmall, 2px);
}

c-contact-tile {
margin: var(--lwc-borderWidthThin, 1px) 0;
}

lightning-input:before,
c-contact-tile:before {
color: rgb(221, 219, 218);
position: absolute;
top: -9px;
left: var(--lwc-varSpacingXxSmall, 4px);
background-color: var(--lwc-colorBackgroundAlt, #ffffff);
padding: 0 var(--lwc-varSpacingXxSmall, 4px);
}

lightning-input:before {
content: 'lightning-input';
}

c-contact-tile:before {
content: 'c-contact-tile';
fieldset {
border: solid var(--slds-g-sizing-border-1)
var(--slds-g-color-neutral-base-80);
border-radius: var(--slds-g-radius-border-2);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@
icon-name="custom:custom57"
>
<div class="slds-var-m-around_medium">
<lightning-input
type="search"
onchange={handleKeyChange}
class="slds-show slds-is-relative slds-var-m-bottom_small"
label="Search"
></lightning-input>
<fieldset class="slds-var-p-around_x-small">
<legend>lightning-input</legend>
<lightning-input
type="search"
onchange={handleKeyChange}
class="slds-show slds-is-relative"
label="Search"
></lightning-input>
</fieldset>
<template lwc:if={contacts}>
<template for:each={contacts} for:item="contact">
<c-contact-tile
class="slds-show slds-is-relative"
<fieldset
key={contact.Id}
contact={contact}
></c-contact-tile>
class="slds-var-p-horizontal_x-small"
>
<legend>c-contact-tile</legend>
<c-contact-tile contact={contact}></c-contact-tile>
</fieldset>
</template>
</template>
<template lwc:elseif={error}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@import 'c/cssLibrary';

/* Other style rules for compositionIteration component */
c-contact-tile {
margin: var(--lwc-borderWidthThin, 1px) 0;
fieldset {
border: solid var(--slds-g-sizing-border-1)
var(--slds-g-color-neutral-base-80);
border-radius: var(--slds-g-radius-border-2);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
<lightning-card title="CompositionIteration" icon-name="custom:custom57">
<div class="slds-var-m-around_medium">
<template for:each={contacts} for:item="contact">
<c-contact-tile
class="slds-show slds-is-relative"
<fieldset
key={contact.Id}
contact={contact}
></c-contact-tile>
class="slds-var-p-horizontal_x-small"
>
<legend>c-contact-tile</legend>
<c-contact-tile contact={contact}></c-contact-tile>
</fieldset>
</template>
</div>

Expand Down
15 changes: 0 additions & 15 deletions force-app/main/default/lwc/cssLibrary/cssLibrary.css

This file was deleted.

This file was deleted.

32 changes: 10 additions & 22 deletions force-app/main/default/lwc/eventBubbling/eventBubbling.css
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
fieldset {
border: solid var(--slds-g-sizing-border-1)
var(--slds-g-color-neutral-base-80);
border-radius: var(--slds-g-radius-border-2);
}

img {
width: var(--lwc-squareIconLargeBoundaryAlt, 80px);
height: var(--lwc-squareIconLargeBoundaryAlt, 80px);
border-radius: var(--lwc-borderRadiusCircle, 50%);
margin-bottom: var(--lwc-varSpacingXSmall, 8px);
width: var(--slds-g-sizing-12);
height: var(--slds-g-sizing-12);
border-radius: var(--slds-g-radius-border-circle);
margin-bottom: var(--slds-g-spacing-var-2);
}

lightning-layout-item.wide {
min-width: 300px;
}

c-contact-list-item-bubbling {
border: solid var(--lwc-borderWidthThin, 1px) #ecebea;
border-radius: var(--lwc-borderRadiusMedium, 4px);
margin: var(--lwc-borderWidthThin, 1px) 0;
padding: 3px var(--lwc-varSpacingXxxSmall, 2px) 0
var(--lwc-varSpacingXxxSmall, 2px);
}

c-contact-list-item-bubbling:before {
content: 'c-contact-list-item-bubbling';
color: rgb(221, 219, 218);
position: absolute;
top: -9px;
left: var(--lwc-varSpacingXxSmall, 4px);
background-color: var(--lwc-colorBackgroundAlt, #ffffff);
padding: 0 var(--lwc-varSpacingXxSmall, 4px);
}
13 changes: 9 additions & 4 deletions force-app/main/default/lwc/eventBubbling/eventBubbling.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@
oncontactselect={handleContactSelect}
>
<template for:each={contacts.data} for:item="contact">
<c-contact-list-item-bubbling
class="slds-show slds-is-relative"
<fieldset
key={contact.Id}
contact={contact}
></c-contact-list-item-bubbling>
class="slds-var-p-horizontal_x-small"
>
<legend>c-contact-list-item-bubbling</legend>
<c-contact-list-item-bubbling
class="slds-show slds-is-relative"
contact={contact}
></c-contact-list-item-bubbling>
</fieldset>
</template>
</lightning-layout-item>
<lightning-layout-item class="slds-var-m-left_medium">
Expand Down
Loading