Skip to content

Commit

Permalink
Use mobile demo app colors
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Oct 23, 2024
1 parent 9def8ad commit 1ff6aa9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
21 changes: 16 additions & 5 deletions site/content/docs/0.0/examples/grid-system/grid-system.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
:root {
--bs-example-bg-col: #ffe2e2;
:root,
[data-bs-theme="light"] {
--bs-example-color-bg-emphasized-primary: #141414;
--bs-example-color-decorative-accent-2-default: #4ab4e6;
--bs-example-color-decorative-accent-2-muted: #a5daf3;
}

[data-bs-theme="dark"] {
--bs-example-color-bg-emphasized-primary: #333;
}

.legend {
Expand All @@ -12,17 +19,21 @@
min-height: 150px;
}

.bg-container {
background-color: var(--bs-example-color-decorative-accent-2-default);
}

.bg-example {
background-color: #ff9f9f;
background-color: var(--bs-example-color-bg-emphasized-primary);
}

.bg-col {
background-color: var(--bs-example-bg-col);
background-color: var(--bs-example-color-decorative-accent-2-muted);
}

.col {
text-align: center;
background-color: var(--bs-example-bg-col);
background-color: var(--bs-example-color-decorative-accent-2-muted);
background-clip: content-box;
}

Expand Down
26 changes: 13 additions & 13 deletions site/content/docs/0.0/examples/grid-system/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ <h1>OUDS Web grid system example</h1>
<p class="lead">Use this page to see how containers behave while resizing the browser.</p>
<h2>Legend</h2>
<p class="d-flex align-items-center">
<span class="bg-light legend border me-2"></span>Containers padding color (<code>#CCCCCC</code>)
<span class="bg-container legend border me-2"></span>Containers padding color (<code>#4ab4e6</code>)
</p>
<p class="d-flex align-items-center">
<span class="bg-col legend border me-2"></span>Columns color (<code>#FFE2E2</code>)
<span class="bg-col legend border me-2"></span>Columns color (<code>#a5daf3</code>)
</p>
<p class="d-flex align-items-center">
<span class="bg-white legend border me-2"></span>Gutters color (<code>#FFFFFF</code>)
<span class="bg-white legend border me-2"></span>Gutters color (<code>#fff</code>)
</p>
</div>

Expand All @@ -40,7 +40,7 @@ <h2>Default grid</h2>
</p>
</div>
<div class="bg-example py-3">
<div class="container-fluid container-max-width bg-light">
<div class="container-fluid container-max-width bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand All @@ -65,7 +65,7 @@ <h2>Need more space?</h2>
</p>
</div>
<div class="bg-example py-3">
<div class="container-fluid bg-light">
<div class="container-fluid bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand All @@ -91,7 +91,7 @@ <h2>Need more space?</h2>
<hr class="border-none">
<div class="bg-example py-3">
<div class="container bg-light">
<div class="container bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand All @@ -112,7 +112,7 @@ <h2>Need more space?</h2>
<hr class="border-none">
<div class="bg-example py-3">
<div class="container-xs bg-light">
<div class="container-xs bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand All @@ -133,7 +133,7 @@ <h2>Need more space?</h2>
<hr class="border-none">
<div class="bg-example py-3">
<div class="container-sm bg-light">
<div class="container-sm bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand All @@ -154,7 +154,7 @@ <h2>Need more space?</h2>
<hr class="border-none">
<div class="bg-example py-3">
<div class="container-md bg-light">
<div class="container-md bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand All @@ -175,7 +175,7 @@ <h2>Need more space?</h2>
<hr class="border-none">
<div class="bg-example py-3">
<div class="container-lg bg-light">
<div class="container-lg bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand All @@ -196,7 +196,7 @@ <h2>Need more space?</h2>
<hr class="border-none">
<div class="bg-example py-3">
<div class="container-xl bg-light">
<div class="container-xl bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand All @@ -217,7 +217,7 @@ <h2>Need more space?</h2>
<hr class="border-none">
<div class="bg-example py-3">
<div class="container-2xl bg-light">
<div class="container-2xl bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand All @@ -238,7 +238,7 @@ <h2>Need more space?</h2>
<hr class="border-none">
<div class="bg-example py-3">
<div class="container-3xl bg-light">
<div class="container-3xl bg-container">
<div class="row">
<div class="col"></div>
<div class="col"></div>
Expand Down

0 comments on commit 1ff6aa9

Please sign in to comment.