2023-05-09 00:06:51 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
|
|
|
|
2023-05-11 02:17:41 +02:00
|
|
|
import Svg from "../Svg";
|
|
|
|
import Loading from "./Base/Loading.svelte";
|
|
|
|
import ToSvelte from "./Base/ToSvelte.svelte";
|
2023-05-09 00:06:51 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<h1> Stylesheet testing grounds </h1>
|
|
|
|
|
|
|
|
This document exists to explore the style hierarchy.
|
|
|
|
|
|
|
|
<div class="normal-background">
|
|
|
|
<h2>Normal background</h2>
|
2023-05-11 02:17:41 +02:00
|
|
|
There are a few styles, such as the <span class="literal-code">normal-background</span>-style which is used if
|
|
|
|
there is
|
2023-05-09 00:06:51 +02:00
|
|
|
nothing special going on. Some general information, with at most <a href="https://example.com" target="_blank">a
|
|
|
|
link to someplace</a>.
|
|
|
|
<span class="alert">Alert: something went wrong</span>
|
|
|
|
<span class="thanks">Thank you! Operation successful</span>
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.login_svg().SetClass("w-12 h-12")}/>
|
|
|
|
<Loading>Loading...</Loading>
|
2023-05-09 00:06:51 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="low-interaction flex flex-col">
|
|
|
|
<h2>Low interaction</h2>
|
|
|
|
<p>
|
|
|
|
There are <span class="literal-code">low-interaction</span> areas, where some buttons might appear.
|
|
|
|
</p>
|
|
|
|
|
2023-05-11 02:17:41 +02:00
|
|
|
<div class="flex">
|
2023-05-14 03:24:13 +02:00
|
|
|
<button class="primary">
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")}/>
|
|
|
|
Main action
|
|
|
|
</button>
|
2023-05-14 03:24:13 +02:00
|
|
|
<button class="primary disabled">
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")}/>
|
|
|
|
Main action (disabled)
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="flex">
|
2023-05-14 03:24:13 +02:00
|
|
|
<button>
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")}/>
|
|
|
|
Secondary action
|
|
|
|
</button>
|
2023-05-14 03:24:13 +02:00
|
|
|
<button class="disabled">
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")}/>
|
|
|
|
Secondary action (disabled)
|
|
|
|
</button>
|
|
|
|
</div>
|
2023-05-09 00:06:51 +02:00
|
|
|
<input type="text">
|
|
|
|
|
|
|
|
<div>
|
2023-05-17 13:12:00 +02:00
|
|
|
<label class="checked" for="html">
|
2023-05-11 02:17:41 +02:00
|
|
|
<input id="html" name="fav_language" type="radio" value="HTML">
|
|
|
|
HTML (mimicks a <span class="literal-code">checked</span>-element)</label>
|
|
|
|
<label for="css">
|
|
|
|
<input id="css" name="fav_language" type="radio" value="CSS">
|
|
|
|
CSS</label>
|
|
|
|
<label for="javascript">
|
|
|
|
<input id="javascript" name="fav_language" type="radio" value="JavaScript">
|
|
|
|
<ToSvelte construct={Svg.community_svg().SetClass("w-8 h-8")}/>
|
|
|
|
JavaScript</label>
|
2023-05-09 00:06:51 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="alert">Alert: something went wrong</span>
|
|
|
|
<span class="thanks">Thank you! Operation successful</span>
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.login_svg().SetClass("w-12 h-12")}/>
|
|
|
|
<Loading>Loading...</Loading>
|
2023-05-09 00:06:51 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="interactive flex flex-col">
|
|
|
|
<h2>Interactive area</h2>
|
|
|
|
<p>
|
2023-05-11 02:17:41 +02:00
|
|
|
There are <span class="literal-code">interactive</span> areas, where many buttons and input elements
|
|
|
|
will appear.
|
2023-05-09 00:06:51 +02:00
|
|
|
</p>
|
|
|
|
|
2023-05-11 02:17:41 +02:00
|
|
|
<div class="flex">
|
2023-05-14 03:24:13 +02:00
|
|
|
<button class="primary">
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")}/>
|
|
|
|
Main action
|
|
|
|
</button>
|
2023-05-14 03:24:13 +02:00
|
|
|
<button class="primary disabled">
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")}/>
|
|
|
|
Main action (disabled)
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="flex">
|
2023-05-14 03:24:13 +02:00
|
|
|
<button>
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")}/>
|
|
|
|
Secondary action
|
|
|
|
</button>
|
2023-05-14 03:24:13 +02:00
|
|
|
<button class="disabled">
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")}/>
|
|
|
|
Secondary action (disabled)
|
|
|
|
</button>
|
|
|
|
</div>
|
2023-05-09 00:06:51 +02:00
|
|
|
<span class="alert">Alert: something went wrong</span>
|
|
|
|
<span class="thanks">Thank you! Operation successful</span>
|
2023-05-11 02:17:41 +02:00
|
|
|
<ToSvelte construct={Svg.login_svg().SetClass("w-12 h-12")}/>
|
|
|
|
<Loading>Loading...</Loading>
|
|
|
|
<div>
|
|
|
|
<label for="html0">
|
|
|
|
<input id="html0" name="fav_language" type="radio" value="HTML">
|
|
|
|
HTML</label>
|
|
|
|
<label for="css0">
|
|
|
|
<input id="css0" name="fav_language" type="radio" value="CSS">
|
|
|
|
CSS</label>
|
|
|
|
<label for="javascript0">
|
|
|
|
|
|
|
|
<input id="javascript0" name="fav_language" type="radio" value="JavaScript">
|
|
|
|
JavaScript
|
|
|
|
</label>
|
|
|
|
</div>
|
2023-05-17 13:12:00 +02:00
|
|
|
|
|
|
|
<select>
|
|
|
|
<option value="A">A</option>
|
|
|
|
<option value="B">B</option>
|
|
|
|
<option value="C">C</option>
|
|
|
|
</select>
|
|
|
|
|
2023-05-09 00:06:51 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|