Skip to content

Commit

Permalink
fix(page): remove global .main styles from example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sisha0 committed May 19, 2022
1 parent 0c66e7c commit a03212d
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 89 deletions.
141 changes: 71 additions & 70 deletions pages/views/samples/multiple_playgrounds.njk
Original file line number Diff line number Diff line change
@@ -1,77 +1,78 @@
---
title: Example with multiple playgrounds
---
<div>
<section class="component-section">
<h1 class="component-title">USER CARD</h1>
<p class="component-description">
User card is a component for displaying user's info.
Can be in rectangle/rounded styles with multiple
colors supported.
</p>
</section>

<div class="component-section">
<h1 class="component-title">USER CARD</h1>
<p class="component-description">
User card is a component for displaying user's info.
Can be in rectangle/rounded styles with multiple
colors supported.
</p>
</div>
<uip-root>
<uip-header>
<uip-snippets></uip-snippets>
<uip-options></uip-options>
</uip-header>
<script type="text/html" uip-snippet label="Rectangle user card">
<div class="user-card user-block aqua-user">Alexander</div>
</script>
<script type="text/html" uip-snippet label="Circle user card" wrap-items>
<div class="user-card user-circle aqua-user">Alexander</div>
</script>
<uip-preview></uip-preview>
<uip-settings target=".user-card">
<uip-select-setting label="User color" attribute="class" mode="append">
<option value="red-user">Red</option>
<option value="aqua-user">Aqua</option>
<option value="green-user">Green</option>
</uip-select-setting>
</uip-settings>
<uip-editor></uip-editor>
</uip-root>

<uip-root>
<uip-header>
<uip-snippets></uip-snippets>
<uip-options></uip-options>
</uip-header>
<script type="text/html" uip-snippet label="Rectangle user card">
<div class="user-card user-block aqua-user">Alexander</div>
</script>
<script type="text/html" uip-snippet label="Circle user card" wrap-items>
<div class="user-card user-circle aqua-user">Alexander</div>
</script>
<uip-preview></uip-preview>
<uip-settings target=".user-card">
<uip-select-setting label="User color" attribute="class" mode="append">
<option value="red-user">Red</option>
<option value="aqua-user">Aqua</option>
<option value="green-user">Green</option>
</uip-select-setting>
</uip-settings>
<uip-editor></uip-editor>
</uip-root>
<section class="component-section">
<h1 class="component-title">USER LIST</h1>
<p class="component-description">
User list is a component for displaying multiple users' info.
Can manually wrap list items on new lines.
</p>
</section>

<div class="component-section">
<h1 class="component-title">USER LIST</h1>
<p class="component-description">
User list is a component for displaying multiple users' info.
Can manually wrap list items on new lines.
</p>
<uip-root>
<uip-header>
<uip-snippets></uip-snippets>
<uip-options></uip-options>
</uip-header>
<script type="text/html" uip-snippet label="Users aqua list">
<div class="user-list">
<div class="user-card aqua-user">Alexander</div>
<div class="user-card user-circle aqua-user">Alexey</div>
<div class="user-card aqua-user">Marina</div>
</div>
</script>
<script type="text/html" uip-snippet label="Long red users list containing seven items" wrap-items>
<div class="user-list">
<div class="user-card red-user">Anton</div>
<div class="user-card red-user">Dmitri</div>
<div class="user-card red-user">Alexandra</div>
<div class="user-card red-user">Artem</div>
<div class="user-card red-user">Marina</div>
<div class="user-card red-user">Alexander</div>
<div class="user-card red-user">Alexander</div>
</div>
</script>
<uip-preview></uip-preview>
<uip-settings target=".user-list">
<uip-select-setting label="User color" target=".user-card" attribute="class" mode="append">
<option value="red-user">Red</option>
<option value="aqua-user">Aqua</option>
<option value="green-user">Green</option>
</uip-select-setting>
<uip-bool-setting label="Wrap items" attribute="wrap-items"></uip-bool-setting>
</uip-settings>
<uip-editor></uip-editor>
</uip-root>
</div>

<uip-root>
<uip-header>
<uip-snippets></uip-snippets>
<uip-options></uip-options>
</uip-header>
<script type="text/html" uip-snippet label="Users aqua list">
<div class="user-list">
<div class="user-card aqua-user">Alexander</div>
<div class="user-card user-circle aqua-user">Alexey</div>
<div class="user-card aqua-user">Marina</div>
</div>
</script>
<script type="text/html" uip-snippet label="Long red users list containing seven items" wrap-items>
<div class="user-list">
<div class="user-card red-user">Anton</div>
<div class="user-card red-user">Dmitri</div>
<div class="user-card red-user">Alexandra</div>
<div class="user-card red-user">Artem</div>
<div class="user-card red-user">Marina</div>
<div class="user-card red-user">Alexander</div>
<div class="user-card red-user">Alexander</div>
</div>
</script>
<uip-preview></uip-preview>
<uip-settings target=".user-list">
<uip-select-setting label="User color" target=".user-card" attribute="class" mode="append">
<option value="red-user">Red</option>
<option value="aqua-user">Aqua</option>
<option value="green-user">Green</option>
</uip-select-setting>
<uip-bool-setting label="Wrap items" attribute="wrap-items"></uip-bool-setting>
</uip-settings>
<uip-editor></uip-editor>
</uip-root>
28 changes: 14 additions & 14 deletions pages/views/samples/playground.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ title: Example with playground
</uip-header>
<template uip-snippet label="Users list">
<div class="user-list">
<div class="user-block aqua-user">Alexander</div>
<div class="user-block aqua-user">Alexey</div>
<div class="user-block aqua-user">Marina</div>
<div class="user-card aqua-user">Alexander</div>
<div class="user-card aqua-user">Alexey</div>
<div class="user-card aqua-user">Marina</div>
</div>
</template>
<template uip-snippet label="Long users list" wrap-items>
<div class="user-list">
<div class="user-block red-user">Anton</div>
<div class="user-block red-user">Dmitri</div>
<div class="user-block red-user">Alexandra</div>
<div class="user-block red-user">Artem</div>
<div class="user-block red-user">Marina</div>
<div class="user-block red-user">Alexander</div>
<div class="user-block red-user">Alexander</div>
<div class="user-card red-user">Anton</div>
<div class="user-card red-user">Dmitri</div>
<div class="user-card red-user">Alexandra</div>
<div class="user-card red-user">Artem</div>
<div class="user-card red-user">Marina</div>
<div class="user-card red-user">Alexander</div>
<div class="user-card red-user">Alexander</div>
</div>
</template>
<uip-preview></uip-preview>
<uip-settings target=".user-list">
<uip-select-setting label="User color" target=".user-block" attribute="class" mode="append">
<uip-select-setting label="User color" target=".user-card" attribute="class" mode="append">
<option value="red-user">Red</option>
<option value="aqua-user">Aqua</option>
<option value="green-user">Green</option>
Expand All @@ -45,9 +45,9 @@ title: Example with playground
</script>
<script type="text/html" uip-snippet label="Users aqua list">
<div class="user-list">
<div class="user-block aqua-user">Alexander</div>
<div class="user-block aqua-user">Alexey</div>
<div class="user-block aqua-user">Marina</div>
<div class="user-card aqua-user">Alexander</div>
<div class="user-card aqua-user">Alexey</div>
<div class="user-card aqua-user">Marina</div>
</div>
</script>
<uip-preview></uip-preview>
Expand Down
6 changes: 1 addition & 5 deletions pages/views/styles/samples/multiple_playgrounds.less
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
.main {
display: block;
}

.component-section {
margin: 2rem 0;
font-family: sans-serif;

.component-title {
margin-bottom: 1rem;
}
}
}

0 comments on commit a03212d

Please sign in to comment.