mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
3ab869b446
* refactor(docs): improve style and fix typo * fix(docs): dark
27 lines
547 B
Vue
27 lines
547 B
Vue
<script setup lang="ts">
|
|
import { toggleDark } from '../../composables/dark'
|
|
import CommonThemeToggler from '../common/vp-theme-toggler.vue'
|
|
</script>
|
|
|
|
<template>
|
|
<div class="theme-toggler-content">
|
|
<CommonThemeToggler @click="() => toggleDark()" />
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
@use '../../styles/mixins' as *;
|
|
.theme-toggler-content {
|
|
@include with-bg;
|
|
display: none;
|
|
border-radius: 50%;
|
|
height: 24px;
|
|
padding: 0 12px;
|
|
|
|
@include respond-to('md') {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
</style>
|