Welcome to mirror list, hosted at ThFree Co, Russian Federation.

At.scss « css - github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b473e36ebbce82a493695d31c9e0059cde45ecb4 (plain)
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// Copied from vue-at (https://github.com/fritx/vue-at/blob/d16d5eefdae8987c0bffe2d9c3867b7da12c808f/src/At.scss)
// and wrapped to affect only the panel for candidate mentions.

.talk.candidate-mentions {

	// atwho.css https://github.com/ichord/At.js
	.atwho-view {
		// position:absolute;
		// top: 0;
		// left: 0;
		// display: none;
		// margin-top: 18px;
		// background: white;
		color: black;
		// border: 1px solid #DDD;
		border-radius: 3px;
		box-shadow: 0 0 5px rgba(0,0,0,0.1);
		min-width: 120px;
		z-index: 11110 !important;
	}
	.atwho-ul {
		/* width: 100px; */
		list-style:none;
		// padding:0;
		// margin:auto;
		// max-height: 200px;
		// overflow-y: auto;
	}
	.atwho-li {
		display: block;
		// padding: 5px 10px;
		// border-bottom: 1px solid #DDD;
		// cursor: pointer;
		/* border-top: 1px solid #C8C8C8; */
	}

	////// added 1
	.atwho-view {
		// font-size: 14px;
		// min-width: 140px;
		// max-width: 180px;
		border-radius: 6px;
		// overflow: hidden;
		box-shadow: 0 0 10px 0 rgba(101, 111, 122, .5);
	}
	.atwho-ul {
		max-height: 135px;
		padding: 0;
		margin: 0;
	}
	.atwho-li {
		box-sizing: border-box;
		height: 27px;
		padding: 0 12px;
		white-space: nowrap;
		display: flex;
		align-items: center;
		span {
			overflow: hidden;
			text-overflow: ellipsis;
		}
	}
	.atwho-cur {
		// background: #44a8f2;
		background: #5BB8FF;
		color: white;
	}

	////// added 2
	.atwho-wrap {
		position: relative;
	}
	&.atwho-panel {
		position: absolute;
	}
	.atwho-inner {
		position: relative;
	}
	.atwho-view {
		position: absolute;
		bottom: 0;
		left: -0.8em; // 抵消左边距
		cursor: default;
		background-color: rgba(255,255,255,.94);
		min-width: 140px;
		max-width: 180px;
		max-height: 200px;
		overflow-y: auto;
		&::-webkit-scrollbar {
			width: 11px;
			height: 11px;
		}
		&::-webkit-scrollbar-track {
			// background-color: rgba(127, 127, 127, .1);
			background-color: #F5F5F5;
		}
		&::-webkit-scrollbar-thumb {
			min-height: 36px;
			border: 2px solid transparent;
			border-top: 3px solid transparent;
			border-bottom: 3px solid transparent;
			background-clip: padding-box;
			border-radius: 7px;
			// background-color: rgba(0, 0, 0, 0.2);
			background-color: #C4C4C4;
		}
	}
}

.talk.candidate-mentions {
	// Override "max-width: 180px", as that makes the autocompletion panel too
	// narrow.
	.atwho-view {
		max-width: unset;
	}

	// Override max height to show 4.5 mentions to make clear you can scroll for more options
	.atwho-ul {
		// (padding top: 6 + avatar height: 32 + padding bottom: 6) * visible mentions: 4.5
		max-height: 198px;
	}

	// Override autocompletion panel items height, as they are too short
	// for the avatars and also need some padding.
	.atwho-li {
		height: unset;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	// Although the height of its wrapper is 32px the height of the icon
	// is the default 16px. This is a temporary fix until it is fixed
	// in the avatar component.
	.atwho-li .icon-group-forced-white {
		width: 32px;
		height: 32px;
	}

	// Override all colors with our theming and dark mode
	.atwho-view {
		background: var(--color-main-background);
		color: var(--color-main-text);
		box-shadow: 0 0 5px var(--color-box-shadow);

		&::-webkit-scrollbar-track {
			background-color: var(--color-background-dark);
		}
		&::-webkit-scrollbar-thumb {
			background-color: var(--color-background-darker);
		}

		.atwho-cur {
			background: var(--color-primary);
			color: var(--color-primary-text);
		}
	}
}

// Override conflicting rules from the comments tab.
.talk.candidate-mentions {
	.atwho-view {
		top: unset;
		display: unset;
	}
}