summaryrefslogtreecommitdiffstats
path: root/core/css/share.scss
blob: 1dbec689898ba7782d2b4f355406c2a373f5921c (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
166
167
168
169
170
171
172
173
/**
 * @copyright Copyright (c) 2011, Jan-Christoph Borchardt <hey@jancborchardt.net>
 * @copyright Copyright (c) 2017, John Molakvoæ (skjnldsv@protonmail.com)
 *
 * @license GNU AGPL version 3 or any later version
 *
 */

/* SHARE TAB STYLING -------------------------------------------------------- */
.shareTabView {
	.unshare.icon-loading-small {
		margin-top: 1px;
	}
	.shareWithLoading, .linkShare .icon-loading-small {
		display: inline-block !important;
		padding-left: 10px;
	}
	.shareWithLoading {
		position: relative;
		right: 70px;
		top: 2px;
	}
	.icon-loading-small.hidden {
		display: none !important;
	}
	.avatar {
		margin-right: 8px;
		display: inline-block;
		overflow: hidden;
		vertical-align: middle;
		width: 32px;
		height: 32px;
	}
	label {
		font-weight: 400;
		white-space: nowrap;
	}
	input[type='checkbox'] {
		margin: 0 3px 0 8px;
		vertical-align: middle;
	}
	input[type='submit'] {
		margin-left: 7px;
	}
	form {
		font-size: 100%;
		margin-left: 0;
		margin-right: 0;
	}
	.error {
		color: #e9322d;
		border-color: #e9322d;
		box-shadow: 0 0 6px #f8b9b7;
	}
	.mailView .icon-mail {
		opacity: 0.5;
	}
}

.share-autocomplete-item {
	display: flex;
	.autocomplete-item-text {
		margin-left: 10px;
		margin-right: 10px;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
		line-height: 32px;
		vertical-align: middle;
	}
}

#shareWithList {
	list-style-type: none;
	padding: 8px;
	> li {
		padding-top: 10px;
		padding-bottom: 10px;
		font-weight: bold;
		line-height: 21px;
		white-space: normal;
		width: 100%;
	}
	.sharingOptionsGroup {
		flex-shrink: 0;
		position: relative;
		.popovermenu {
			right: -11px;
			top: 35px;
			padding: 3px 6px;
		}
	}
	.shareOption {
		white-space: nowrap;
		display: inline-block;
	}
	.unshare img,
	.showCruds img {
		vertical-align: text-bottom;
		/* properly align icons */
	}
	label input[type=checkbox] {
		margin-left: 0;
		position: relative;
	}
	.username {
		padding-right: 8px;
		white-space: nowrap;
		text-overflow: ellipsis;
		display: inline-block;
		overflow: hidden;
		vertical-align: middle;
		flex-grow: 5;
	}
}

a {
	&.showCruds {
		display: inline;
		opacity: .5;
	}
	&.unshare {
		display: inline-block;
		opacity: .5;
		padding: 10px;
	}
	&.showCruds:hover,
	&.unshare:hover {
		opacity: 1;
	}
}

#link {
	border-top: 1px solid #ddd;
	padding-top: 8px;
	#showPassword img {
		padding-left: 5px;
		width: 12px;
	}
}

.reshare,
#link label,
#expiration label {
	display: inline-block;
	padding: 6px 4px;
}

#defaultExpireMessage, .reshare {
	/* fix shared by text going out of box */
	white-space: normal;
}

#defaultExpireMessage {
	/* show message on new line */
	display: block;
	padding-left: 4px;
	/* TODO: style the dropdown in a proper way - border-box, etc. */
	width: 90%;
}

.ui-autocomplete {
	/* limit dropdown height to 4 1/2 entries */
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
}

.notCreatable {
	padding-left: 12px;
	padding-top: 12px;
	color: #999;
}