mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
57 lines
1.1 KiB
Vue
57 lines
1.1 KiB
Vue
<template>
|
|
<button class="mobile-action-button">
|
|
<FontAwesomeIcon class="icon" :icon="icon"></FontAwesomeIcon>
|
|
<span class="label">
|
|
<slot></slot>
|
|
</span>
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'MobileActionButton',
|
|
props: [
|
|
'icon'
|
|
],
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
@import "@assets/app.scss";
|
|
|
|
|
|
.mobile-action-button {
|
|
background: $light_background;
|
|
margin-right: 15px;
|
|
border-radius: 8px;
|
|
padding: 7px 10px;
|
|
cursor: pointer;
|
|
border: none;
|
|
|
|
.icon {
|
|
margin-right: 10px;
|
|
@include font-size(14);
|
|
}
|
|
|
|
.label {
|
|
@include font-size(14);
|
|
font-weight: 700;
|
|
color: $text;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.mobile-action-button {
|
|
background: $dark_mode_foreground;
|
|
|
|
.icon path {
|
|
fill: $theme;
|
|
}
|
|
|
|
.label {
|
|
color: $dark_mode_text_primary;
|
|
}
|
|
}
|
|
}
|
|
</style>
|