Spaces:
Running
Running
File size: 4,385 Bytes
f2bee8a |
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 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
@import "../../css/colors.css";
@import "../../css/units.css";
@import "../../css/z-index.css";
.menu-bar {
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: nowrap;
/*
For most things, we shouldn't explicitly set height, and let the
content push the element to whatever fits. Using a fixed height
instead, will help us subtract the value we assign from the body,
adding up to a perfect 100%. This means we don't need to set
overflow: hidden, which makes it hard to debug. border-box
simplifies by all of this by removing padding from the equation.
*/
box-sizing: border-box;
height: $menu-bar-height;
/*
@todo: This adds ~20px in Chrome, when scrolling to the right,
but fixes [FFx + Safari] [resize window down + scroll to the right] bug.
width: 100%;
*/
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: $menu-bar-standard-font-size;
font-weight: bold;
background-color: $motion-primary;
color: $ui-white;
}
[theme="dark"] .menu-bar {
background-color: $motion-primary-dark;
}
.main-menu {
display: flex;
flex-direction: row;
justify-content: flex-start;
flex-wrap: nowrap;
align-items: center;
flex-grow: 1;
}
.scratch-logo {
height: 1.6rem;
vertical-align: middle;
}
.scratch-logo.clickable {
cursor: pointer;
}
.language-icon {
height: 1.5rem;
vertical-align: middle;
}
.language-caret {
margin: 0 .125rem;
}
.language-menu {
box-sizing: border-box;
display: inline-flex;
width: $language-selector-width;
}
.menu-bar-item {
display: flex;
padding: 0 0.25rem;
text-decoration: none;
color: $ui-white;
user-select: none;
align-self: center;
position: relative;
align-items: center;
white-space: nowrap;
height: $menu-bar-height;
}
.menu-bar-item.hoverable {
cursor: pointer;
}
.menu-bar-item.active,
.menu-bar-item.hoverable:hover {
background-color: $ui-black-transparent;
}
.menu-bar-item.growable {
max-width: $menu-bar-item-max-width;
flex: 1;
}
.title-field-growable {
flex-grow: 1;
width: 2rem;
}
.file-group {
display: flex;
flex-direction: row;
align-items: center;
}
.file-group .menu-bar-item {
padding: 0 0.75rem;
}
.menu-bar-item.language-menu {
padding: 0 0.5rem;
}
.menu-bar-menu {
margin-top: $menu-bar-height;
z-index: $z-index-menu-bar;
}
.feedback-link {
color: $motion-primary !important;
text-decoration: none;
}
[theme="dark"] .feedback-link {
color: $motion-primary-dark !important;
}
.feedback-button {
background-color: $ui-white;
height: 34px;
}
.divider {
margin: 0 .5rem;
height: 34px;
}
.author-info {
margin-left: .25rem;
margin-right: .6875rem;
}
.menu-bar-button {
height: $menu-bar-button-size;
}
.remix-button {
background-color: $pen-primary
}
.remix-button-icon {
height: 1.25rem;
}
.coming-soon >:not(.coming-soon-tooltip) {
opacity: 0.5;
}
.account-info-group {
display: flex;
flex-direction: row;
align-items: center;
}
.account-info-group .menu-bar-item {
padding: 0 0.75rem;
}
.mystuff-icon {
margin: 0 .25rem;
height: 1rem;
}
.help-icon {
margin-right: 0.35rem;
}
.account-nav-menu, .mystuff-button {
padding: 0 .25rem;
display: flex;
flex-direction: row;
align-items: center;
}
.profile-icon {
margin: 0 .25rem;
width: $menu-bar-button-size;
border-radius: $form-radius;
}
.dropdown-caret-icon {
width: 0.5rem;
height: 0.5rem;
}
[dir="ltr"] .dropdown-caret-icon {
margin-left: .5rem;
}
[dir="rtl"] .dropdown-caret-icon {
margin-right: .5rem;
}
.disabled {
opacity: 0.5;
}
.mystuff > a {
background-repeat: no-repeat;
background-position: center center;
background-size: 45%;
padding-right: 10px;
padding-left: 10px;
width: 30px;
overflow: hidden;
text-indent: 50px;
white-space: nowrap;
}
.mystuff > a:hover {
background-size: 50%;
}
.mystuff > a {
/* background-image: url("/images/mystuff.png"); */
}
.about-icon {
height: 1.25rem;
margin: 0.5rem;
vertical-align: middle;
}
/* tw: styles to override <a> styles */
.menu-item-link {
color: $ui-white !important;
text-decoration: none;
}
|