File size: 2,457 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.responsive-toolbar-group__dropdown .responsive-toolbar-group__button-item,
.responsive-toolbar-group__dropdown .responsive-toolbar-group__menu-item,
.responsive-toolbar-group__swipe .responsive-toolbar-group__swipe-item {
	height: 36px;
	padding: 8px 12px;
	border-radius: 4px;
	line-height: 20px;

	&::before {
		left: 4px;
		right: 4px;
		height: 36px;
		border-radius: 4px;
		background-color: var(--studio-white);
	}
}

.responsive-toolbar-group__grouped-list,
.responsive-toolbar-group__swipe-list {
	align-items: center;
}

.responsive-toolbar-group__dropdown {
	position: relative;
	padding-bottom: 24px;

	.responsive-toolbar-group__grouped-list {
		background-color: transparent;
		border-color: transparent;
		justify-content: space-between;
		flex-wrap: nowrap;
		display: flex;
		opacity: 0;

		.responsive-toolbar-group__menu-item {
			font-size: rem(13px);

			&.is-selected {
				color: var(--color-text-inverted);

				&::before {
					background-color: #1e1e1e;
				}
			}

			&:not(.is-selected):not(.responsive-toolbar-group__more-item) {
				&:hover::before {
					background: var(--studio-gray-0);
				}
			}

			&:not(:first-child) {
				margin-top: 8px;
			}
		}

		// Stretch selected item border to page border
		>div:first-of-type {
			margin-left: -8px;
		}
		>div:last-of-type {
			margin-right: -8px;
		}

		.responsive-toolbar-group__button-item:not([class*="is-pressed"]) {
			&:hover::before {
				background: var(--studio-gray-0);
			}
		}

		.responsive-toolbar-group__button-item.is-pressed:hover {
			color: var(--color-text-inverted);
		}
	}

	.is-visible {
		opacity: 1;
	}

	.responsive-toolbar-group__full-list {
		overflow: hidden;
		position: absolute;
		height: 0;
		visibility: hidden;
		top: 0;
		left: 0;
		right: 0;
	}

	.responsive-toolbar-group__button-item {
		flex-basis: max-content;
		white-space: nowrap;

		font-size: 0.875rem;
	}
}

.responsive-toolbar-group__swipe {
	width: calc(100% + 20px);

	.responsive-toolbar-group__swipe-list {
		padding: 0 8px;
		display: flex;
		flex-wrap: nowrap;
		overflow-x: scroll;
		overflow-y: hidden;
		border: none;

		// hides the scrollbar
		scrollbar-width: none; // hides the scrollbar in firefox

		&::-webkit-scrollbar { // hides the scrollbar in webkit browsers
			display: none;
		}

		.responsive-toolbar-group__swipe-item {
			font-size: 0.875rem;
		}

		// Core override - prevent buttons from wordwrapping content
		>div {
			flex-shrink: 0;
		}
	}
}