web: data-driven switcher & save mode switcher
also: - disabled ssr to enable localstorage - removed the workaround for hover, as it looks bad
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
<script lang="ts">
|
||||
export let settingId: string;
|
||||
</script>
|
||||
|
||||
<div id="switcher-{settingId}" class="switcher">
|
||||
<div id="switcher-container" class="switcher">
|
||||
<slot></slot>
|
||||
</div>
|
||||
|
||||
@@ -31,7 +27,8 @@
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* clumsy hack to get rid of double border in a list of switches */
|
||||
.switcher > :global(:not(.button:first-child)) {
|
||||
margin-left: -1.5px; /* hack to get rid of double border in a list of switches */
|
||||
margin-left: -1.5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user