| 
									
										
										
										
											2023-05-09 00:06:51 +02:00
										 |  |  | <script lang="ts"> | 
					
						
							| 
									
										
										
										
											2023-11-16 01:48:57 +01: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> | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |   <h1>Stylesheet testing grounds</h1> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   This document exists to explore the style hierarchy. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="normal-background"> | 
					
						
							|  |  |  |     <h2>Normal background</h2> | 
					
						
							|  |  |  |     There are a few styles, such as the | 
					
						
							|  |  |  |     <span class="literal-code">normal-background</span> | 
					
						
							| 
									
										
										
										
											2023-06-14 20:44:01 +02:00
										 |  |  |     -style which is used if there is nothing special going on. Some general information, with at most | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     <a href="https://example.com" target="_blank">a link to someplace</a> | 
					
						
							| 
									
										
										
										
											2023-11-16 01:48:57 +01:00
										 |  |  |     <div class="subtle">Subtle</div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-03 02:04:42 +01:00
										 |  |  |     <div class="alert">Alert: something went wrong</div> | 
					
						
							|  |  |  |     <div class="warning">Warning</div> | 
					
						
							|  |  |  |     <div class="information">Some important information</div> | 
					
						
							|  |  |  |     <div class="thanks">Thank you! Operation successful</div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     <ToSvelte construct={Svg.login_svg().SetClass("w-12 h-12")} /> | 
					
						
							|  |  |  |     <Loading>Loading...</Loading> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="low-interaction flex flex-col"> | 
					
						
							|  |  |  |     <h2>Low interaction</h2> | 
					
						
							|  |  |  |     <p> | 
					
						
							|  |  |  |       There are <span class="literal-code">low-interaction</span> | 
					
						
							| 
									
										
										
										
											2023-06-14 20:44:01 +02:00
										 |  |  |       areas, where some buttons might appear. | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     </p> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-20 01:47:32 +02:00
										 |  |  |     <div class="border-interactive interactive"> | 
					
						
							|  |  |  |       Highly interactive area (mostly: active question) | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2023-11-16 01:48:57 +01:00
										 |  |  |     <div class="subtle">Subtle</div> | 
					
						
							| 
									
										
										
										
											2023-09-28 23:50:27 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     <div class="flex"> | 
					
						
							|  |  |  |       <button class="primary"> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Main action | 
					
						
							|  |  |  |       </button> | 
					
						
							|  |  |  |       <button class="primary disabled"> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Main action (disabled) | 
					
						
							|  |  |  |       </button> | 
					
						
							| 
									
										
										
										
											2023-11-09 16:30:26 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-23 11:11:53 +02:00
										 |  |  |       <button class="small"> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Small button | 
					
						
							|  |  |  |       </button> | 
					
						
							| 
									
										
										
										
											2023-09-16 02:27:29 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-21 15:29:34 +02:00
										 |  |  |       <button class="small primary">Small button</button> | 
					
						
							|  |  |  |       <button class="small primary disabled">Small, disabled button</button> | 
					
						
							| 
									
										
										
										
											2023-11-16 01:48:57 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-09 00:06:51 +02:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     <div class="flex"> | 
					
						
							|  |  |  |       <button> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Secondary action | 
					
						
							|  |  |  |       </button> | 
					
						
							|  |  |  |       <button class="disabled"> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Secondary action (disabled) | 
					
						
							|  |  |  |       </button> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <input type="text" /> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-03 02:04:42 +01:00
										 |  |  |     <div class="flex flex-col"> | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |       <label class="checked" for="html"> | 
					
						
							|  |  |  |         <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> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-03 02:04:42 +01:00
										 |  |  |     <div class="alert">Alert: something went wrong</div> | 
					
						
							|  |  |  |     <div class="warning">Warning</div> | 
					
						
							|  |  |  |     <div class="information">Some important information</div> | 
					
						
							|  |  |  |     <div class="thanks">Thank you! Operation successful</div> | 
					
						
							| 
									
										
										
										
											2023-11-09 16:30:26 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     <ToSvelte construct={Svg.login_svg().SetClass("w-12 h-12")} /> | 
					
						
							|  |  |  |     <Loading>Loading...</Loading> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="interactive flex flex-col"> | 
					
						
							|  |  |  |     <h2>Interactive area</h2> | 
					
						
							|  |  |  |     <p> | 
					
						
							|  |  |  |       There are <span class="literal-code">interactive</span> | 
					
						
							| 
									
										
										
										
											2023-06-14 20:44:01 +02:00
										 |  |  |       areas, where many buttons and input elements will appear. | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     </p> | 
					
						
							| 
									
										
										
										
											2023-11-16 01:48:57 +01:00
										 |  |  |     <div class="subtle">Subtle</div> | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <div class="flex"> | 
					
						
							|  |  |  |       <button class="primary"> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Main action | 
					
						
							|  |  |  |       </button> | 
					
						
							|  |  |  |       <button class="primary disabled"> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Main action (disabled) | 
					
						
							|  |  |  |       </button> | 
					
						
							| 
									
										
										
										
											2023-08-23 11:11:53 +02:00
										 |  |  |       <button class="small"> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Small button | 
					
						
							|  |  |  |       </button> | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2023-11-16 01:48:57 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     <div class="flex"> | 
					
						
							|  |  |  |       <button> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Secondary action | 
					
						
							|  |  |  |       </button> | 
					
						
							|  |  |  |       <button class="disabled"> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.community_svg().SetClass("w-6 h-6")} /> | 
					
						
							|  |  |  |         Secondary action (disabled) | 
					
						
							|  |  |  |       </button> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2023-11-03 02:04:42 +01:00
										 |  |  |     <div class="alert">Alert: something went wrong</div> | 
					
						
							|  |  |  |     <div class="warning">Warning</div> | 
					
						
							|  |  |  |     <div class="information">Some important information</div> | 
					
						
							|  |  |  |     <div class="thanks">Thank you! Operation successful</div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +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> | 
					
						
							| 
									
										
										
										
											2023-05-09 00:06:51 +02:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2023-11-09 16:30:26 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-23 16:14:43 +02:00
										 |  |  |     <div class="border-interactive"> | 
					
						
							|  |  |  |       Area with extreme high interactivity due to `border-interactive` | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2023-05-09 00:06:51 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-14 20:39:36 +02:00
										 |  |  |     <select> | 
					
						
							|  |  |  |       <option value="A">A</option> | 
					
						
							|  |  |  |       <option value="B">B</option> | 
					
						
							|  |  |  |       <option value="C">C</option> | 
					
						
							|  |  |  |     </select> | 
					
						
							|  |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2023-05-09 00:06:51 +02:00
										 |  |  | </div> |