/
variables.scss
129 lines (108 loc) · 2.88 KB
/
variables.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/**
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
@use 'sass:math';
// https://uxplanet.org/7-rules-for-mobile-ui-button-design-e9cf2ea54556
// recommended is 48px
// 44px is what we choose and have very good visual-to-usability ratio
$clickable-area: 44px;
// background icon size
// also used for the scss icon font
$icon-size: 16px;
// icon padding for a $clickable-area width and a $icon-size icon
// ( 44px - 16px ) / 2
$icon-margin: math.div($clickable-area - $icon-size, 2);
// transparency background for icons
$icon-focus-bg: rgba(127, 127, 127, .25);
// popovermenu arrow width from the triangle center
$arrow-width: 9px;
// opacities
$opacity_disabled: .5;
$opacity_normal: .7;
$opacity_full: 1;
// menu round background hover feedback
// good looking on dark AND white bg
$action-background-hover: rgba(127, 127, 127, .25);
// various structure data used in the
// `NcAppNavigation` component
$header-height: 50px;
$navigation-width: 300px;
// mobile breakpoint
$breakpoint-mobile: 1024px;
//messages list max width
$messages-list-max-width: 800px;
//message max width
$message-max-width: 680px;
//message utils width
$message-utils-width: 100px;
//message form max height
$message-form-max-height: 180px;
$color-call-background: rgba(34, 34, 34, 0.8);
$color-guests-avatar: #ffffff;
$color-background-guests-avatar: #b9b9b9;
//chat font size
$chat-font-size: 15px;
//chat line height
$chat-line-height: 1.6em;
// fade transition
$fade-transition: all var(--animation-quick, 100ms) ease-in-out;
.fade {
&-enter {
opacity: 0;
}
&-enter-to {
opacity: 1;
}
&-leave {
opacity: 1;
}
&-leave-to {
opacity: 0;
}
&-enter-active,
&-leave-active {
transition: $fade-transition;
}
}
.slide-down {
&-enter {
transform: translateY(50%);
opacity: 0;
}
&-enter-to {
transform: translateY(0);
opacity: 1;
}
&-leave {
transform: translateY(0);
opacity: 1;
}
&-leave-to {
transform: translateY(50%);
opacity: 0;
}
&-enter-active,
&-leave-active {
transition: $fade-transition;
/* force top container to resize during animation */
position: absolute !important;
}
}