2022-02-19 00:45:25 +00:00
|
|
|
<template>
|
|
|
|
<div class="tabs">
|
|
|
|
<ul role="navigation" aria-label="Settings tabs">
|
|
|
|
<SettingTabItem name="General" class-name="general" to="" />
|
|
|
|
<SettingTabItem name="Appearance" class-name="appearance" to="appearance" />
|
|
|
|
<SettingTabItem name="Notifications" class-name="notifications" to="notifications" />
|
2022-02-20 01:05:09 +00:00
|
|
|
<SettingTabItem name="Account" class-name="account" to="account" />
|
2022-02-19 00:45:25 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.tabs ul {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs li {
|
2022-02-20 01:16:34 +00:00
|
|
|
font-size: 18px;
|
2022-02-19 00:45:25 +00:00
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs button {
|
|
|
|
color: var(--body-color-muted);
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: inline-block;
|
|
|
|
text-align: left;
|
2022-02-20 01:16:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tabs li:not(:last-of-type) button {
|
|
|
|
margin-bottom: 8px;
|
2022-02-19 00:45:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tabs button::before {
|
2022-02-20 01:16:34 +00:00
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
2022-02-19 00:45:25 +00:00
|
|
|
display: inline-block;
|
|
|
|
content: "";
|
2022-02-20 01:16:34 +00:00
|
|
|
margin-right: 8px;
|
2022-02-19 00:45:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tabs .appearance::before {
|
2022-02-20 01:16:34 +00:00
|
|
|
content: "\f108"; /* http://fontawesome.io/icon/desktop/ */
|
2022-02-19 00:45:25 +00:00
|
|
|
}
|
|
|
|
|
2022-02-20 01:05:09 +00:00
|
|
|
.tabs .account::before {
|
2022-02-19 00:45:25 +00:00
|
|
|
content: "\f007"; /* http://fontawesome.io/icon/user/ */
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs .messages::before {
|
|
|
|
content: "\f0e0"; /* http://fontawesome.io/icon/envelope/ */
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs .notifications::before {
|
|
|
|
content: "\f0f3"; /* http://fontawesome.io/icon/bell/ */
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs .general::before {
|
|
|
|
content: "\f013"; /* http://fontawesome.io/icon/cog/ */
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs button:hover,
|
|
|
|
.tabs button.active {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs button:hover,
|
|
|
|
.tabs button:focus {
|
|
|
|
background-color: rgb(48 62 74 / 50%); /* #303e4a x 50% alpha */
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs button.active {
|
|
|
|
background-color: #303e4a;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import SettingTabItem from "./SettingTabItem.vue";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: "SettingsTabs",
|
|
|
|
components: {
|
|
|
|
SettingTabItem,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|