aboutsummaryrefslogtreecommitdiffstats
path: root/core/css/toast.scss
blob: a8348c9263284d61121f53d76766dc068a5311aa (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
/*!
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
@use 'variables';
@import 'functions';

.toastify.toast {
	min-width: 200px;
	background: none;
	background-color: var(--color-main-background);
	color: var(--color-main-text);
	box-shadow: 0 0 6px 0 var(--color-box-shadow);
	padding: 12px;
	padding-right: 34px;
	margin-top: 45px;
	position: fixed;
	z-index: 9000;
	border-radius: var(--border-radius);

	.toast-close {
		position: absolute;
		top: 0;
		right: 0;
		width: 38px;
		opacity: 0.4;
		padding: 12px;
		@include icon-color('close', 'actions', variables.$color-black, 2, true);
		background-position: center;
		background-repeat: no-repeat;
		text-indent: 200%;
		white-space: nowrap;
		overflow: hidden;

		&:hover, &:focus, &:active {
			cursor: pointer;
			opacity: 1;
		}
	}
}
.toastify.toastify-top {
	right: 10px;
}

.toast-error {
	border-left: 3px solid var(--color-error);
}
.toast-info {
	border-left: 3px solid var(--color-primary-element);
}
.toast-warning {
	border-left: 3px solid var(--color-warning);
}
.toast-success {
	border-left: 3px solid var(--color-success);
}