Use Bootstrap containers instead of CSS in base for deckoptions

This commit is contained in:
Henrik Giesel 2021-05-27 20:28:23 +02:00
parent 7dacd9b72f
commit 282de21675
5 changed files with 9 additions and 25 deletions

View file

@ -78,7 +78,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<div
bind:this={buttonToolbarRef}
{id}
class={`btn-toolbar wrap-variable ${className}`}
class={`btn-toolbar container wrap-variable ${className}`}
{style}
role="toolbar"
>

View file

@ -55,7 +55,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}
</script>
<div bind:this={sectionRef} {id} class={className}>
<div bind:this={sectionRef} {id} class={`container mb-1 ${className}`}>
<slot />
{#each $dynamicItems as item}
<SectionItem id={item[0].id} registration={item[1]}>

View file

@ -50,6 +50,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
overflow-x: hidden;
}
.btn-night {
/* override the default down arrow */
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
@include button.btn-day($with-hover: false);
@include button.btn-night($with-hover: false);
</style>

View file

@ -4,11 +4,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
export let id: string | undefined = undefined;
let className: string | undefined;
let className: string = "";
export { className as class };
</script>
<nav {id} class={`pb-1 pt-1 ${className}`}>
<nav {id} class={`container-fluid pb-1 pt-1 ${className}`}>
<slot />
</nav>

View file

@ -23,22 +23,6 @@
-webkit-appearance: none;
}
body {
width: min(100vw, 35em);
margin: 0 auto;
// leave some space for rounded screens
margin-bottom: 2em;
}
html {
overflow-x: hidden;
}
#main {
padding: 0.5em;
padding-top: 0;
}
.tooltip-inner {
max-width: 300px;
text-align: left;
@ -53,8 +37,3 @@ html {
code {
color: #ffaaaa;
}
// override the default down arrow colour in <select> elements
.night-mode select {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}