tabs-bar.scss 7.13 KB
Newer Older
Rob Colbert's avatar
Rob Colbert committed
1 2 3 4 5 6 7 8 9 10
.tabs-bar {
	display: flex;
	box-sizing: border-box;
	background: #000;
	flex: 0 0 auto;
	overflow-y: auto;
	height: 50px;
	position: sticky;
	top: 0;
	z-index: 1000;
mgabdev's avatar
mgabdev committed
11
	transition: transform 0.2s ease;
12
	overflow: hidden;
mgabdev's avatar
mgabdev committed
13 14 15 16 17 18 19 20

	// body.theme-gabsocial-light & {
	// 	background: #fff;
	// 	border-bottom: 1px solid #ddd;
	// }

	&--collapsed {
		@media screen and (max-width: 895px) {
21 22
			margin-top: -50px;
			transform: translateY(-50px);
mgabdev's avatar
mgabdev committed
23 24
		}
	}
Rob Colbert's avatar
Rob Colbert committed
25 26 27 28 29 30 31 32 33 34

	&__container {
		display: flex;
		box-sizing: border-box;
		width:100%;
		max-width: 1200px;
		margin: 0 auto;
		padding: 0 15px;

		// NOTE - might need to adjust this based on column sizing
35
		@media screen and (max-width: $nav-breakpoint-4) {padding: 0 10px;}
Rob Colbert's avatar
Rob Colbert committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
	}

	&__split {
		display: flex;
		width: auto;

		&--left {
			margin-right: auto;
		}

		&--right {
			margin-left: auto;
			padding-top: 8px;
			@media screen and (max-width: $nav-breakpoint-3) {padding-top: 4px;}
		}
	}

	&__search-container {
		display: block;
		width: 251px;
56

mgabdev's avatar
mgabdev committed
57 58
		@media screen and (max-width: 1024px) {
			display: none;
59
		}
Rob Colbert's avatar
Rob Colbert committed
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
	}

	&__profile {
		position: relative;
		overflow: hidden;
		margin: 0 0 0 20px;
		height: 34px;
		width: 34px;

		@media screen and (max-width: $nav-breakpoint-3) {
			height: 42px;
			width: 42px;
			margin: 0;
		}

		.account__avatar {
			width: 34px;
			height: 34px;
			background-size: 34px 34px;

			@media screen and (max-width: $nav-breakpoint-3) {
				width: 42px;
				height: 42px;
				background-size: 42px 42px;
			}
mgabdev's avatar
mgabdev committed
85
		}
Rob Colbert's avatar
Rob Colbert committed
86

mgabdev's avatar
mgabdev committed
87 88 89 90
		@media screen and (max-width: 895px) {
			width: 30px;
			height: 30px;
			background-size: 30px 30px;
Rob Colbert's avatar
Rob Colbert committed
91

mgabdev's avatar
mgabdev committed
92 93 94
			.account__avatar {
				width: 30px;
				height: 30px;
95
				background-size: 30px 30px;
mgabdev's avatar
mgabdev committed
96
			}
Rob Colbert's avatar
Rob Colbert committed
97 98 99 100 101 102 103 104 105 106 107 108 109
		}

		.compose__action-bar {
			display: block;
			position: absolute;
			top: 0;
			right: 0;
			left: -5px;
			bottom: 0;

			i {
				display: none;
			}
mgabdev's avatar
mgabdev committed
110 111 112 113

			@media screen and (max-width: 895px) {
				display: none;
			}
Rob Colbert's avatar
Rob Colbert committed
114 115
		}
	}
mgabdev's avatar
mgabdev committed
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

	&__sidebar-btn {
		display: block;
		position: absolute;
		top: 0;
    right: 0;
    left: 0;
    bottom: 0;
		width: 30px;
		opacity: 0;

		@media (min-width: 895px) {
			display: none;
		}
	}

	&__page-name {
		display: block;
    margin-left: 18px;
    line-height: 30px;
    font-weight: 600;
    font-size: 18px;
		color: #fff;

		@media (min-width: 895px) {
			display: none;
		}
	}

Rob Colbert's avatar
Rob Colbert committed
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
	&__button-compose {
		display: block;
		@media screen and (max-width: $nav-breakpoint-3) {display: none;}
		width: 70px;
		height: 34px;
		margin-left: 20px;
		border-radius: 4px;
		background-image: url('../images/sprite-main-navigation.png');
		background-color: $gab-brand-default !important;
		background-repeat: no-repeat;
		background-size: 161px 152px;
		background-position: 18px 2px;
		&:hover {
			background-color: lighten($gab-brand-default, 5%) !important;
			background-position: 18px -98px;
			box-shadow: inset 0px 0px 6px darken($gab-brand-default, 10%);
		}
		span {display: none;}
	}

	&__button {
		margin-left: 12px;
    height: 34px;
	}

	.flex {
		display: flex;
	}
mgabdev's avatar
mgabdev committed
173

174 175 176
	&__search-btn {
		display: none;
		margin-left: auto;
mgabdev's avatar
mgabdev committed
177

178 179 180 181 182 183 184 185
		.tabs-bar__link__icon--search {
			display: block;
			height: 32px;
			width: 32px;
			background-position: -995px 5px !important;
		}

		> span {
mgabdev's avatar
mgabdev committed
186 187
			display: none;
		}
188
	}
mgabdev's avatar
mgabdev committed
189

190 191 192 193
	@media (max-width: 895px) {
		&__search-container,
		&__button-compose {
			display: none;
mgabdev's avatar
mgabdev committed
194 195 196 197 198 199 200 201 202 203 204 205
		}

		&__profile {
			margin: 0;
		}

		&__split {
			flex-direction: row;
			align-items: stretch;

			&--left {
				margin: 0;
206
				width: 80px;
mgabdev's avatar
mgabdev committed
207 208 209
			}

			&--right {
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 240
				padding: 8px 0 6px 20px;
			}
		}

		&__link {
			display: none !important;

			&--logo {
				display: flex !important;
			}
		}

		&.logged-in & {
			&__split {
				&--left {
					display: none !important;
				}

				&--right {
					padding-top: 10px;
					margin-left: 0 !important;
					width: 100% !important;

					.flex {
						width: 100%;
					}
				}
			}

			&__search-btn {
				display: block;
mgabdev's avatar
mgabdev committed
241 242 243
			}
		}
	}
Rob Colbert's avatar
Rob Colbert committed
244 245 246 247 248
}

.tabs-bar__link {
	display: flex;
	flex: 1 1 auto;
mgabdev's avatar
mgabdev committed
249
	margin: 0 20px 0 0;
Rob Colbert's avatar
Rob Colbert committed
250 251
	color: white;
	text-decoration: none;
mgabdev's avatar
mgabdev committed
252 253

	@media screen and (max-width: 895px) {
254
		width: 36px;
255
		height: 42px;
256
		margin: 4px 4px 0 0;
mgabdev's avatar
mgabdev committed
257 258
		justify-content: center;

259
		&.active {
mgabdev's avatar
mgabdev committed
260
			border-bottom: 2px solid $gab-brand-default;
261
		}
262
		& > span {display: none;}
263
	}
264

mgabdev's avatar
mgabdev committed
265 266 267 268
	> span {
		font-size: 15px;
		line-height: 50px;
    margin-left: 4px;
Rob Colbert's avatar
Rob Colbert committed
269
	}
mgabdev's avatar
mgabdev committed
270 271 272 273

	&--search {
		@media (min-width: 1024px) {
			display: none;
274 275
		}
	}
mgabdev's avatar
mgabdev committed
276 277 278 279

	@media screen and (max-width:895px) {
		&.apps {
			display: none;
280 281
		}
	}
mgabdev's avatar
mgabdev committed
282 283 284 285 286 287 288

	&__icon {
		width: 20px;
		background-repeat: no-repeat;
		background-image: url('../images/sprite-main-navigation-links.png');
		background-size: auto 84px;

mgabdev's avatar
mgabdev committed
289 290
		&.chat {
			font-size: 25px;
mgabdev's avatar
mgabdev committed
291 292
			padding-top: 7px;
			width: 24px;
mgabdev's avatar
mgabdev committed
293 294 295 296 297 298 299 300 301 302
			color: #C8C8C8;
			background-image: none !important;

			&--sm {
				font-size: 20px !important;
				width: 24px !important;
				padding-top: 14px !important;
			}
		}

mgabdev's avatar
mgabdev committed
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
		@media screen and (max-width: 895px) {
			width: 32px;
			background-size: auto 120px;
		}

		&.home {
			background-position: 0 18px;
			@media screen and (max-width: 895px) {
				background-position: 1px 11px;
			}
		}
		&.notifications {
			background-position: -140px 18px;
			@media screen and (max-width: 895px) {
				background-position: -195px 11px;
			}
		}
		&.groups {
			background-position: -280px 18px;
			@media screen and (max-width: 895px) {
				background-position: -400px 11px;
			}
		}
		&.apps {
			background-position: -825px 18px;
		}
329 330 331 332 333 334
		&.trends {
			background-position: -850px 18px;
			@media screen and (max-width: 895px) {
				background-position: -1208px 8px;
			}
		}
mgabdev's avatar
mgabdev committed
335 336 337 338 339
		&.tabs-bar__link__icon--search {
			background-position: -697px 18px;
			@media screen and (max-width: 895px) {
				background-position: -995px 11px;
			}
Rob Colbert's avatar
Rob Colbert committed
340 341
		}
	}
mgabdev's avatar
mgabdev committed
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375

	&.active {
		color: $gab-text-highlight;
		font-weight: 700;
	}

	&.active & {
		&__icon {
			&.home {
				background-position: 0 -52px;
				@media screen and (max-width: 895px) {
					background-position: 1px -89px;
				}
			}
			&.notifications {
				background-position: -140px -52px;
				@media screen and (max-width: 895px) {
					background-position: -195px -89px;
				}
			}
			&.groups {
				background-position: -280px -52px;
				@media screen and (max-width: 895px) {
					background-position: -400px -89px;
				}
			}
			&.tabs-bar__link__icon--search {
				@media (min-width: 895px) and (max-width: 1024px) {
					background-position: -697px -52px;
				}
				@media screen and (max-width: 895px) {
					background-position: -995px -89px;
				}
			}
376
		}
Rob Colbert's avatar
Rob Colbert committed
377 378 379 380 381 382 383
	}

	&--logo {
		display: block;

		// NOTE - Revisit right-margin of home button / positioning between 376px and 350px
		//		- want to keep the icons centered between logo and profile image while shrinking
mgabdev's avatar
mgabdev committed
384
		@media screen and (max-width: 895px) {display:none;}
Rob Colbert's avatar
Rob Colbert committed
385 386 387

		width: 50px;
		height: 50px;
388
		margin-right: 28px;
Rob Colbert's avatar
Rob Colbert committed
389 390 391 392 393 394 395 396 397 398
		border: none;
		background-image: url('../images/gab_logo.svg');
		background-repeat: no-repeat;
		background-position: 0 10px;
		background-size: 50px 30px;
		& span {display: none !important;}
		&:hover {
			background-color: #000 !important;
			border: none !important;
		}
399 400


Rob Colbert's avatar
Rob Colbert committed
401 402 403 404 405 406 407 408 409
	}
	&--no-highlight,
	&--no-highlight:hover,
	&--no-highlight.active,
	&--no-highlight:active,
	&--no-highlight:focus {
		background: transparent !important;
		border-bottom-color: transparent !important;
	}
410
}