2020-06-08 16:39:26 +03:00
|
|
|
<template>
|
2020-08-17 22:29:29 +03:00
|
|
|
<div id="app-dashboard" :style="backgroundStyle">
|
2020-08-07 16:57:38 +03:00
|
|
|
<h2>{{ greeting.text }}</h2>
|
2020-08-04 12:58:14 +03:00
|
|
|
<div class="statuses">
|
|
|
|
<div v-for="status in registeredStatus"
|
|
|
|
:id="'status-' + status"
|
2020-08-18 15:11:02 +03:00
|
|
|
:key="status">
|
|
|
|
<div :ref="'status-' + status" />
|
|
|
|
</div>
|
2020-08-04 12:58:14 +03:00
|
|
|
</div>
|
2020-06-08 16:39:26 +03:00
|
|
|
|
2020-08-05 13:39:33 +03:00
|
|
|
<Draggable v-model="layout"
|
|
|
|
class="panels"
|
|
|
|
handle=".panel--header"
|
|
|
|
@end="saveLayout">
|
2020-07-22 12:29:35 +03:00
|
|
|
<div v-for="panelId in layout" :key="panels[panelId].id" class="panel">
|
2020-06-15 09:18:50 +03:00
|
|
|
<div class="panel--header">
|
2020-07-22 12:29:35 +03:00
|
|
|
<h3 :class="panels[panelId].iconClass">
|
|
|
|
{{ panels[panelId].title }}
|
|
|
|
</h3>
|
2020-06-15 09:18:50 +03:00
|
|
|
</div>
|
2020-07-10 18:35:18 +03:00
|
|
|
<div class="panel--content">
|
|
|
|
<div :ref="panels[panelId].id" :data-id="panels[panelId].id" />
|
|
|
|
</div>
|
2020-07-22 12:29:35 +03:00
|
|
|
</div>
|
|
|
|
</Draggable>
|
2020-08-05 09:29:50 +03:00
|
|
|
|
2020-08-12 09:10:58 +03:00
|
|
|
<div class="footer"
|
|
|
|
:class="{ firstrun: firstRun }">
|
|
|
|
<a v-tooltip="tooltip"
|
2020-08-17 02:17:06 +03:00
|
|
|
class="edit-panels icon-rename"
|
|
|
|
tabindex="0"
|
2020-08-17 21:04:05 +03:00
|
|
|
@click="showModal"
|
|
|
|
@keyup.enter="showModal"
|
|
|
|
@keyup.space="showModal">{{ t('dashboard', 'Customize') }}</a>
|
2020-08-12 09:10:58 +03:00
|
|
|
</div>
|
2020-08-05 09:29:50 +03:00
|
|
|
|
2020-06-15 09:18:50 +03:00
|
|
|
<Modal v-if="modal" @close="closeModal">
|
|
|
|
<div class="modal__content">
|
2020-07-31 15:51:14 +03:00
|
|
|
<h3>{{ t('dashboard', 'Edit widgets') }}</h3>
|
2020-07-27 12:17:31 +03:00
|
|
|
<Draggable v-model="layout"
|
|
|
|
class="panels"
|
|
|
|
tag="ol"
|
2020-08-05 13:39:33 +03:00
|
|
|
handle=".draggable"
|
2020-07-27 12:17:31 +03:00
|
|
|
@end="saveLayout">
|
2020-06-15 09:18:50 +03:00
|
|
|
<li v-for="panel in sortedPanels" :key="panel.id">
|
|
|
|
<input :id="'panel-checkbox-' + panel.id"
|
|
|
|
type="checkbox"
|
|
|
|
class="checkbox"
|
|
|
|
:checked="isActive(panel)"
|
|
|
|
@input="updateCheckbox(panel, $event.target.checked)">
|
2020-08-05 13:39:33 +03:00
|
|
|
<label :for="'panel-checkbox-' + panel.id" :class="isActive(panel) ? 'draggable ' + panel.iconClass : panel.iconClass">
|
2020-06-15 09:18:50 +03:00
|
|
|
{{ panel.title }}
|
|
|
|
</label>
|
|
|
|
</li>
|
2020-07-27 12:17:31 +03:00
|
|
|
</Draggable>
|
|
|
|
|
|
|
|
<a :href="appStoreUrl" class="button">{{ t('dashboard', 'Get more widgets from the app store') }}</a>
|
2020-08-11 17:45:02 +03:00
|
|
|
|
2020-08-17 02:17:06 +03:00
|
|
|
<h3>{{ t('dashboard', 'Change background image') }}</h3>
|
2020-08-18 21:30:12 +03:00
|
|
|
<BackgroundSettings :background="background" @updateBackground="updateBackground" />
|
2020-06-08 16:39:26 +03:00
|
|
|
</div>
|
2020-06-15 09:18:50 +03:00
|
|
|
</Modal>
|
2020-06-08 16:39:26 +03:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Vue from 'vue'
|
|
|
|
import { loadState } from '@nextcloud/initial-state'
|
|
|
|
import { getCurrentUser } from '@nextcloud/auth'
|
2020-06-15 09:18:50 +03:00
|
|
|
import { Modal } from '@nextcloud/vue'
|
2020-07-22 12:29:35 +03:00
|
|
|
import Draggable from 'vuedraggable'
|
2020-06-15 09:18:50 +03:00
|
|
|
import axios from '@nextcloud/axios'
|
2020-08-17 22:29:29 +03:00
|
|
|
import { generateUrl } from '@nextcloud/router'
|
2020-08-11 08:54:34 +03:00
|
|
|
import isMobile from './mixins/isMobile'
|
2020-08-12 11:02:33 +03:00
|
|
|
import BackgroundSettings from './components/BackgroundSettings'
|
2020-08-17 22:29:29 +03:00
|
|
|
import getBackgroundUrl from './helpers/getBackgroundUrl'
|
|
|
|
import prefixWithBaseUrl from './helpers/prefixWithBaseUrl'
|
2020-06-08 16:39:26 +03:00
|
|
|
|
|
|
|
const panels = loadState('dashboard', 'panels')
|
2020-07-31 14:27:43 +03:00
|
|
|
const firstRun = loadState('dashboard', 'firstRun')
|
2020-08-14 17:22:22 +03:00
|
|
|
const background = loadState('dashboard', 'background')
|
2020-08-17 22:29:29 +03:00
|
|
|
const version = loadState('dashboard', 'version')
|
2020-08-18 15:11:02 +03:00
|
|
|
const shippedBackgroundList = loadState('dashboard', 'shippedBackgrounds')
|
2020-08-14 18:21:35 +03:00
|
|
|
|
2020-06-08 16:39:26 +03:00
|
|
|
export default {
|
|
|
|
name: 'App',
|
2020-06-15 09:18:50 +03:00
|
|
|
components: {
|
|
|
|
Modal,
|
|
|
|
Draggable,
|
2020-08-12 11:02:33 +03:00
|
|
|
BackgroundSettings,
|
2020-06-15 09:18:50 +03:00
|
|
|
},
|
2020-08-11 08:54:34 +03:00
|
|
|
mixins: [
|
|
|
|
isMobile,
|
|
|
|
],
|
2020-06-08 16:39:26 +03:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
timer: new Date(),
|
2020-08-04 12:58:14 +03:00
|
|
|
registeredStatus: [],
|
2020-06-08 16:39:26 +03:00
|
|
|
callbacks: {},
|
2020-08-04 12:58:14 +03:00
|
|
|
callbacksStatus: {},
|
2020-06-08 16:39:26 +03:00
|
|
|
panels,
|
2020-07-31 14:27:43 +03:00
|
|
|
firstRun,
|
2020-07-31 14:18:47 +03:00
|
|
|
displayName: getCurrentUser()?.displayName,
|
|
|
|
uid: getCurrentUser()?.uid,
|
2020-06-15 09:18:50 +03:00
|
|
|
layout: loadState('dashboard', 'layout').filter((panelId) => panels[panelId]),
|
|
|
|
modal: false,
|
2020-08-05 09:29:50 +03:00
|
|
|
appStoreUrl: generateUrl('/settings/apps/dashboard'),
|
2020-08-04 12:58:14 +03:00
|
|
|
statuses: {},
|
2020-08-14 17:22:22 +03:00
|
|
|
background,
|
2020-08-17 22:29:29 +03:00
|
|
|
version,
|
2020-08-12 11:02:33 +03:00
|
|
|
defaultBackground: window.OCA.Accessibility.theme === 'dark' ? prefixWithBaseUrl('flickr-148302424@N05-36591009215.jpg?v=1') : prefixWithBaseUrl('flickr-paszczak000-8715851521.jpg?v=1'),
|
2020-06-08 16:39:26 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
2020-08-11 08:54:34 +03:00
|
|
|
backgroundImage() {
|
2020-08-17 22:29:29 +03:00
|
|
|
return getBackgroundUrl(this.background, this.version)
|
|
|
|
},
|
|
|
|
backgroundStyle() {
|
|
|
|
if (this.background.match(/#[0-9A-Fa-f]{6}/g)) {
|
|
|
|
return null
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
backgroundImage: `url(${this.backgroundImage})`,
|
|
|
|
}
|
2020-08-11 08:54:34 +03:00
|
|
|
},
|
2020-08-05 09:29:50 +03:00
|
|
|
tooltip() {
|
|
|
|
if (!this.firstRun) {
|
|
|
|
return null
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
content: t('dashboard', 'Adjust the dashboard to your needs'),
|
|
|
|
placement: 'top',
|
|
|
|
show: true,
|
|
|
|
trigger: 'manual',
|
|
|
|
}
|
|
|
|
},
|
2020-06-08 16:39:26 +03:00
|
|
|
greeting() {
|
|
|
|
const time = this.timer.getHours()
|
2020-07-31 14:18:47 +03:00
|
|
|
const shouldShowName = this.displayName && this.uid !== this.displayName
|
2020-06-08 16:39:26 +03:00
|
|
|
|
|
|
|
if (time > 18) {
|
2020-08-07 16:57:38 +03:00
|
|
|
return { text: shouldShowName ? t('dashboard', 'Good evening, {name}', { name: this.displayName }) : t('dashboard', 'Good evening') }
|
2020-06-08 16:39:26 +03:00
|
|
|
}
|
|
|
|
if (time > 12) {
|
2020-08-07 16:57:38 +03:00
|
|
|
return { text: shouldShowName ? t('dashboard', 'Good afternoon, {name}', { name: this.displayName }) : t('dashboard', 'Good afternoon') }
|
2020-06-08 16:39:26 +03:00
|
|
|
}
|
2020-06-11 05:20:57 +03:00
|
|
|
if (time > 5) {
|
2020-08-07 16:57:38 +03:00
|
|
|
return { text: shouldShowName ? t('dashboard', 'Good morning, {name}', { name: this.displayName }) : t('dashboard', 'Good morning') }
|
2020-06-11 05:20:57 +03:00
|
|
|
}
|
2020-08-11 11:10:24 +03:00
|
|
|
return { text: shouldShowName ? t('dashboard', 'Good night, {name}', { name: this.displayName }) : t('dashboard', 'Good night') }
|
2020-06-08 16:39:26 +03:00
|
|
|
},
|
2020-06-15 09:18:50 +03:00
|
|
|
isActive() {
|
|
|
|
return (panel) => this.layout.indexOf(panel.id) > -1
|
|
|
|
},
|
|
|
|
sortedPanels() {
|
|
|
|
return Object.values(this.panels).sort((a, b) => {
|
|
|
|
const indexA = this.layout.indexOf(a.id)
|
|
|
|
const indexB = this.layout.indexOf(b.id)
|
|
|
|
if (indexA === -1 || indexB === -1) {
|
|
|
|
return indexB - indexA || a.id - b.id
|
|
|
|
}
|
|
|
|
return indexA - indexB || a.id - b.id
|
|
|
|
})
|
|
|
|
},
|
2020-06-08 16:39:26 +03:00
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
callbacks() {
|
2020-06-15 09:18:50 +03:00
|
|
|
this.rerenderPanels()
|
|
|
|
},
|
2020-08-04 12:58:14 +03:00
|
|
|
callbacksStatus() {
|
|
|
|
for (const app in this.callbacksStatus) {
|
|
|
|
const element = this.$refs['status-' + app]
|
|
|
|
if (this.statuses[app] && this.statuses[app].mounted) {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
if (element) {
|
|
|
|
this.callbacksStatus[app](element[0])
|
|
|
|
Vue.set(this.statuses, app, { mounted: true })
|
|
|
|
} else {
|
|
|
|
console.error('Failed to register panel in the frontend as no backend data was provided for ' + app)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-08-12 08:39:46 +03:00
|
|
|
backgroundImage: {
|
|
|
|
immediate: true,
|
|
|
|
handler() {
|
|
|
|
const header = document.getElementById('header')
|
|
|
|
header.style.backgroundImage = `url(${this.backgroundImage})`
|
|
|
|
},
|
|
|
|
},
|
2020-06-15 09:18:50 +03:00
|
|
|
},
|
|
|
|
mounted() {
|
2020-08-18 15:11:02 +03:00
|
|
|
this.updateGlobalStyles()
|
|
|
|
|
2020-06-15 09:18:50 +03:00
|
|
|
setInterval(() => {
|
|
|
|
this.timer = new Date()
|
|
|
|
}, 30000)
|
2020-08-05 09:29:50 +03:00
|
|
|
|
|
|
|
if (this.firstRun) {
|
|
|
|
window.addEventListener('scroll', this.disableFirstrunHint)
|
|
|
|
}
|
2020-06-15 09:18:50 +03:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
/**
|
|
|
|
* Method to register panels that will be called by the integrating apps
|
|
|
|
*
|
|
|
|
* @param {string} app The unique app id for the widget
|
|
|
|
* @param {function} callback The callback function to register a panel which gets the DOM element passed as parameter
|
|
|
|
*/
|
|
|
|
register(app, callback) {
|
|
|
|
Vue.set(this.callbacks, app, callback)
|
|
|
|
},
|
2020-08-04 12:58:14 +03:00
|
|
|
registerStatus(app, callback) {
|
|
|
|
this.registeredStatus.push(app)
|
|
|
|
this.$nextTick(() => {
|
|
|
|
Vue.set(this.callbacksStatus, app, callback)
|
|
|
|
})
|
|
|
|
},
|
2020-06-15 09:18:50 +03:00
|
|
|
rerenderPanels() {
|
2020-06-08 16:39:26 +03:00
|
|
|
for (const app in this.callbacks) {
|
|
|
|
const element = this.$refs[app]
|
2020-07-27 12:17:31 +03:00
|
|
|
if (this.layout.indexOf(app) === -1) {
|
|
|
|
continue
|
|
|
|
}
|
2020-06-15 09:18:50 +03:00
|
|
|
if (this.panels[app] && this.panels[app].mounted) {
|
2020-07-10 11:02:44 +03:00
|
|
|
continue
|
2020-06-08 16:39:26 +03:00
|
|
|
}
|
|
|
|
if (element) {
|
2020-08-14 17:37:37 +03:00
|
|
|
this.callbacks[app](element[0], {
|
|
|
|
widget: this.panels[app],
|
|
|
|
})
|
2020-06-08 16:39:26 +03:00
|
|
|
Vue.set(this.panels[app], 'mounted', true)
|
|
|
|
} else {
|
|
|
|
console.error('Failed to register panel in the frontend as no backend data was provided for ' + app)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-06-15 09:18:50 +03:00
|
|
|
saveLayout() {
|
|
|
|
axios.post(generateUrl('/apps/dashboard/layout'), {
|
|
|
|
layout: this.layout.join(','),
|
|
|
|
})
|
|
|
|
},
|
|
|
|
showModal() {
|
|
|
|
this.modal = true
|
2020-08-05 09:29:50 +03:00
|
|
|
this.firstRun = false
|
2020-06-15 09:18:50 +03:00
|
|
|
},
|
|
|
|
closeModal() {
|
|
|
|
this.modal = false
|
|
|
|
},
|
|
|
|
updateCheckbox(panel, currentValue) {
|
|
|
|
const index = this.layout.indexOf(panel.id)
|
|
|
|
if (!currentValue && index > -1) {
|
|
|
|
this.layout.splice(index, 1)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
this.layout.push(panel.id)
|
|
|
|
}
|
|
|
|
Vue.set(this.panels[panel.id], 'mounted', false)
|
|
|
|
this.saveLayout()
|
|
|
|
this.$nextTick(() => this.rerenderPanels())
|
2020-06-08 16:39:26 +03:00
|
|
|
},
|
2020-08-05 09:29:50 +03:00
|
|
|
disableFirstrunHint() {
|
|
|
|
window.removeEventListener('scroll', this.disableFirstrunHint)
|
|
|
|
setTimeout(() => {
|
|
|
|
this.firstRun = false
|
|
|
|
}, 1000)
|
|
|
|
},
|
2020-08-17 22:29:29 +03:00
|
|
|
updateBackground(data) {
|
|
|
|
this.background = data.type === 'custom' || data.type === 'default' ? data.type : data.value
|
|
|
|
this.version = data.version
|
2020-08-18 15:11:02 +03:00
|
|
|
this.updateGlobalStyles()
|
|
|
|
},
|
|
|
|
updateGlobalStyles() {
|
2020-08-18 16:27:16 +03:00
|
|
|
document.body.setAttribute('data-dashboard-background', this.background)
|
2020-08-18 15:11:02 +03:00
|
|
|
if (window.OCA.Theming.inverted) {
|
|
|
|
document.body.classList.add('dashboard-inverted')
|
|
|
|
}
|
|
|
|
|
|
|
|
const shippedBackgroundTheme = shippedBackgroundList[this.background] ? shippedBackgroundList[this.background].theming : 'light'
|
|
|
|
if (shippedBackgroundTheme === 'dark') {
|
|
|
|
document.body.classList.add('dashboard-dark')
|
|
|
|
} else {
|
|
|
|
document.body.classList.remove('dashboard-dark')
|
|
|
|
}
|
2020-08-12 11:02:33 +03:00
|
|
|
},
|
2020-06-08 16:39:26 +03:00
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2020-08-07 19:34:21 +03:00
|
|
|
<style lang="scss">
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
2020-06-08 16:39:26 +03:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
#app-dashboard {
|
|
|
|
width: 100%;
|
2020-08-07 19:34:21 +03:00
|
|
|
background-size: cover;
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-attachment: fixed;
|
2020-08-19 14:54:50 +03:00
|
|
|
background-color: var(--color-primary);
|
|
|
|
--color-background-translucent: rgba(255, 255, 255, 0.8);
|
|
|
|
--background-blur: blur(10px);
|
2020-08-08 02:09:21 +03:00
|
|
|
|
2020-08-19 14:54:50 +03:00
|
|
|
#body-user.theme--dark & {
|
|
|
|
background-color: var(--color-main-background);
|
|
|
|
--color-background-translucent: rgba(24, 24, 24, 0.8);
|
2020-08-08 02:09:21 +03:00
|
|
|
}
|
|
|
|
|
2020-08-19 14:54:50 +03:00
|
|
|
#body-user.theme--highcontrast & {
|
2020-08-08 02:09:21 +03:00
|
|
|
background-color: var(--color-main-background);
|
2020-08-19 14:54:50 +03:00
|
|
|
--color-background-translucent: var(--color-main-background);
|
2020-08-08 02:09:21 +03:00
|
|
|
}
|
2020-06-08 16:39:26 +03:00
|
|
|
}
|
2020-07-11 12:50:24 +03:00
|
|
|
|
2020-06-08 16:39:26 +03:00
|
|
|
h2 {
|
2020-08-07 19:34:21 +03:00
|
|
|
color: var(--color-primary-text);
|
2020-06-08 16:39:26 +03:00
|
|
|
text-align: center;
|
2020-06-11 05:21:24 +03:00
|
|
|
font-size: 32px;
|
|
|
|
line-height: 130%;
|
2020-08-07 19:34:21 +03:00
|
|
|
padding: 120px 16px 0px;
|
|
|
|
}
|
|
|
|
|
2020-06-08 16:39:26 +03:00
|
|
|
.panels {
|
2020-07-22 12:29:35 +03:00
|
|
|
width: auto;
|
|
|
|
margin: auto;
|
|
|
|
max-width: 1500px;
|
2020-06-08 16:39:26 +03:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2020-06-11 05:21:24 +03:00
|
|
|
flex-direction: row;
|
2020-07-10 11:02:44 +03:00
|
|
|
align-items: flex-start;
|
2020-06-11 05:21:24 +03:00
|
|
|
flex-wrap: wrap;
|
2020-06-08 16:39:26 +03:00
|
|
|
}
|
|
|
|
|
2020-06-15 09:18:50 +03:00
|
|
|
.panel, .panels > div {
|
2020-07-10 18:04:57 +03:00
|
|
|
width: 320px;
|
|
|
|
max-width: 100%;
|
|
|
|
margin: 16px;
|
2020-08-19 14:54:50 +03:00
|
|
|
background-color: var(--color-background-translucent);
|
|
|
|
backdrop-filter: var(--background-blur);
|
2020-07-10 18:04:57 +03:00
|
|
|
border-radius: var(--border-radius-large);
|
2020-06-08 16:39:26 +03:00
|
|
|
|
2020-07-22 12:29:35 +03:00
|
|
|
&.sortable-ghost {
|
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
|
2020-06-15 09:18:50 +03:00
|
|
|
& > .panel--header {
|
2020-07-10 18:35:18 +03:00
|
|
|
display: flex;
|
2020-07-11 12:50:24 +03:00
|
|
|
z-index: 1;
|
2020-06-08 16:39:26 +03:00
|
|
|
top: 50px;
|
2020-07-10 18:35:18 +03:00
|
|
|
padding: 16px;
|
|
|
|
cursor: grab;
|
|
|
|
|
2020-07-22 12:29:35 +03:00
|
|
|
&, ::v-deep * {
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-khtml-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2020-07-10 18:35:18 +03:00
|
|
|
&:active {
|
|
|
|
cursor: grabbing;
|
|
|
|
}
|
|
|
|
|
2020-06-15 09:18:50 +03:00
|
|
|
a {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2020-06-08 16:39:26 +03:00
|
|
|
|
2020-06-11 05:21:24 +03:00
|
|
|
h3 {
|
2020-06-15 09:18:50 +03:00
|
|
|
display: block;
|
|
|
|
flex-grow: 1;
|
2020-06-11 05:21:24 +03:00
|
|
|
margin: 0;
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: bold;
|
|
|
|
background-size: 32px;
|
2020-07-31 15:48:59 +03:00
|
|
|
background-position: 14px 12px;
|
2020-07-11 12:50:24 +03:00
|
|
|
padding: 16px 8px 16px 60px;
|
2020-07-10 18:35:18 +03:00
|
|
|
cursor: grab;
|
2020-06-11 05:21:24 +03:00
|
|
|
}
|
|
|
|
}
|
2020-07-10 18:35:18 +03:00
|
|
|
|
|
|
|
& > .panel--content {
|
|
|
|
margin: 0 16px 16px 16px;
|
2020-08-04 19:29:39 +03:00
|
|
|
height: 420px;
|
2020-07-22 12:29:35 +03:00
|
|
|
overflow: auto;
|
2020-07-10 18:35:18 +03:00
|
|
|
}
|
2020-06-08 16:39:26 +03:00
|
|
|
}
|
|
|
|
|
2020-08-12 09:10:58 +03:00
|
|
|
.footer {
|
|
|
|
text-align: center;
|
|
|
|
transition: bottom var(--animation-slow) ease-in-out;
|
|
|
|
bottom: 0;
|
2020-08-17 02:17:06 +03:00
|
|
|
padding: 44px 0;
|
2020-08-12 09:10:58 +03:00
|
|
|
|
|
|
|
&.firstrun {
|
|
|
|
position: sticky;
|
|
|
|
bottom: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-17 02:17:06 +03:00
|
|
|
.edit-panels {
|
2020-08-12 09:10:58 +03:00
|
|
|
display: inline-block;
|
|
|
|
margin:auto;
|
2020-08-17 02:17:06 +03:00
|
|
|
background-position: 16px center;
|
|
|
|
padding: 12px 16px;
|
|
|
|
padding-left: 36px;
|
2020-07-10 18:04:57 +03:00
|
|
|
border-radius: var(--border-radius-pill);
|
2020-08-12 09:10:58 +03:00
|
|
|
max-width: 200px;
|
|
|
|
opacity: 1;
|
|
|
|
text-align: center;
|
2020-08-19 14:54:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.edit-panels,
|
|
|
|
.statuses ::v-deep #user-status-menu-item__subheader>button {
|
|
|
|
background-color: var(--color-background-translucent);
|
|
|
|
backdrop-filter: var(--background-blur);
|
2020-08-05 09:29:50 +03:00
|
|
|
|
2020-08-19 14:54:50 +03:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2020-06-15 09:18:50 +03:00
|
|
|
background-color: var(--color-background-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal__content {
|
2020-08-17 02:17:06 +03:00
|
|
|
padding: 32px 16px;
|
2020-08-12 11:02:33 +03:00
|
|
|
max-height: 70vh;
|
2020-08-17 02:17:06 +03:00
|
|
|
text-align: center;
|
2020-08-12 11:02:33 +03:00
|
|
|
overflow: auto;
|
2020-08-17 02:17:06 +03:00
|
|
|
|
2020-06-15 09:18:50 +03:00
|
|
|
ol {
|
2020-07-27 12:17:31 +03:00
|
|
|
display: flex;
|
2020-08-17 02:17:06 +03:00
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
2020-06-15 09:18:50 +03:00
|
|
|
list-style-type: none;
|
2020-08-17 02:17:06 +03:00
|
|
|
padding-bottom: 16px;
|
2020-06-15 09:18:50 +03:00
|
|
|
}
|
2020-08-17 02:17:06 +03:00
|
|
|
li {
|
|
|
|
label {
|
|
|
|
display: block;
|
|
|
|
padding: 48px 8px 16px 8px;
|
|
|
|
margin: 8px;
|
|
|
|
width: 160px;
|
|
|
|
background-color: var(--color-background-hover);
|
|
|
|
border: 2px solid var(--color-main-background);
|
|
|
|
border-radius: var(--border-radius-large);
|
|
|
|
background-size: 24px;
|
|
|
|
background-position: center 16px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: var(--color-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input:focus + label {
|
|
|
|
border-color: var(--color-primary);
|
|
|
|
}
|
2020-06-15 09:18:50 +03:00
|
|
|
}
|
2020-08-11 17:45:02 +03:00
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
&:not(:first-of-type) {
|
2020-08-17 02:17:06 +03:00
|
|
|
margin-top: 64px;
|
2020-08-11 17:45:02 +03:00
|
|
|
}
|
|
|
|
}
|
2020-06-15 09:18:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.flip-list-move {
|
2020-08-05 13:39:33 +03:00
|
|
|
transition: transform var(--animation-slow);
|
2020-06-15 09:18:50 +03:00
|
|
|
}
|
|
|
|
|
2020-08-04 12:58:14 +03:00
|
|
|
.statuses {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
|
|
|
& > div {
|
|
|
|
max-width: 200px;
|
2020-08-18 15:11:02 +03:00
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 10px;
|
2020-08-04 12:58:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-08 16:39:26 +03:00
|
|
|
</style>
|