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

admin.scss « css - github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1d013c108faca85001ba56900d6335a08cb7168 (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
.rd-settings-documentation {
	max-width: 50em;
}

#richdocuments {
	input[name="wopi_url"] {
		width: 300px;
	}
	#use_group_select, #edit_group_select {
		width: 200px; display: block;
	}
	p {
		margin-bottom: 15px;
	}
	#s2id_use_group_select,
	#s2id_edit_group_select {
		margin-left: 18px;
		margin-top: -4px;
		width: 300px !important;
	}
}

#richdocuments,
#richdocuments-templates {
	// inline buttons on section headers
	> h2 {
		display: inline-flex;
		align-items: center;

		.icon-info,
		.icon-add,
		.icon-loading-small {
			width: 44px;
			height: 44px;
			margin: -6px;
			margin-left: 10px;
			opacity: 0.5;
			white-space: nowrap;
			line-height: 44px;
			padding-left: 44px;
			font-size: 16px;
			&:hover,
			&:focus,
			&:active {
				opacity: 0.7;
			}
		}
	}
}

#richdocuments-templates {
	> input {
		// feedback for keyboard navigation
		&:hover,
		&:focus,
		&:active {
			+ h2 .icon-add,
			+ h2 .icon-loading-small {
				opacity: 0.7;
			}
			+ #emptycontent label {
				color: nc-lighten($color-main-text, 15%);		// 12&13 fallback
				color: $color-text-light;
			}
		}
	}
	ul:not(.hidden) {
		display: flex;
		flex-wrap: wrap;
		li {
			$size: 150px;
			$sizeY: $size / 210 * 297;
			$space: 10px;
			border-radius: 3px;						// 12&13 fallback
			border-radius: $border-radius;
			border: 1px solid $color-border;		// 12&13 fallback
			margin: $space;
			position: relative;
			figure {
				display: flex;
				flex-direction: column;
				width: $size;
				margin: $space;
				img, .templatePlaceholder {
					width: $size;
					height: $sizeY;
					background-color: nc-darken($color-main-background, 7%);	// 12&13 fallback
					background-color: $color-background-dark;
				}
				figcaption {
					margin-top: $space;
				}
			}
			.delete-cover,
			.delete-template {
				width: $size;
				height: $sizeY;
				top: 0;
				left: 0;
				position: absolute;
				margin: $space;
				opacity: 0;
				transition: opacity 250ms ease-in-out;
				z-index: 3;
				line-height: $sizeY;
				text-align: center;
				font-size: 20px;
				background-size: 24px;
				// text is set as bg
				color: nc-darken($color-main-background, 14%);			// 12&13 fallback
				color: $color-background-darker;
			}
			.delete-cover {
				// bg is set as color
				background-color: nc-lighten($color-main-text, 30%);	// 12&13 fallback
				background-color: $color-text-lighter;
				z-index: 2;
			}
			&:hover .delete-template,
			.delete-template:focus,
			.delete-template.icon-loading {
				opacity: 1;
				+ .delete-cover {
					opacity: 0.5;
				}
			}
		}
	}
}