summaryrefslogtreecommitdiff
path: root/src/Toolbar.css
blob: b96e40c3b975b85b36c74ad5076b38e36cc8f604 (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
@scope (.__Toolbar) {
	.toolbar {
		background-color: var(--surface);
		border-bottom: 1px solid var(--overlay);
		width: 100%;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	
		> * {
			flex-grow: 1;
			display: flex;
			justify-content: center;
		}
		:first-child, :last-child { flex-basis: 0 }
		:first-child { justify-content: flex-start }
		:last-child { justify-content: flex-end }
	
		> menu {
			margin: 0;
			padding: 0;
			list-style: none;
			display: flex;
			flex-direction: row;
		}
	
		h1 {
			font-size: 1.5rem;
			font-weight: normal;
			margin: 0;
		}
	
		button {
			background-color: transparent;
			border: none;
			outline: none;
			padding: 1rem;
			color: var(--text);
			font-size: 1em;
			:hover { background-color: var(--overlay) }
		}
	
		path {
			fill: var(--text);
		}
	}
	
	.addMenu:popover-open {
		background-color: var(--surface);
		list-style: none;
		border: none;
		position: absolute;
		inset: unset;
		width: auto;
		height: auto;
		left: 140px;
		top: 52px;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
		--shadow-color: 0deg 0% 0%;
		box-shadow:
			0.1px 0.4px 0.6px hsl(var(--shadow-color) / 0.04),
			0.5px 3.3px 4.8px -0.2px hsl(var(--shadow-color) / 0.15),
			1.4px 10.2px 14.7px -0.5px hsl(var(--shadow-color) / 0.27);
	
		button {
			padding: 4px;
			width: 100%;
			text-align: left;
			&:hover { background-color: var(--overlay) }
		}
	}
}