Skip to content
Snippets Groups Projects
base.less 53.8 KiB
Newer Older
@import "global/_variables.less";
@import "utils/_fonts.import.less";
@import "utils/_keyframes.import.less";
@import "utils/_preloader.import.less";
Rafael Caferati's avatar
Rafael Caferati committed
@import "utils/_emojione.import.less";
.cf_ {
	display: inline-block;
	&:after {
		content: ".";
		display: block;
		clear: both;
		visibility: hidden;
		line-height: 0;
		height: 0;
	}
}

Gabriel Engel's avatar
Gabriel Engel committed
*,
*:before,
*:after {
	.box-sizing(border-box);
}

:focus {
	outline: 0 !important;
	outline-color: transparent;
	outline-style: none;
}

Gabriel Engel's avatar
Gabriel Engel committed
a {
	text-decoration: none;
	&:hover, &:active {
		color: @primary-font-color;
		text-decoration: none;
	}
}

Gabriel Engel's avatar
Gabriel Engel committed
code {
Gabriel Engel's avatar
Gabriel Engel committed
	background: #f8f8f8;
	border-radius: 4px;
Gabriel Engel's avatar
Gabriel Engel committed
	border: 1px solid #ccc;
Gabriel Engel's avatar
Gabriel Engel committed
	color: #333;
	display: block;
Gabriel Engel's avatar
Gabriel Engel committed
	font-size: 13px;
Gabriel Engel's avatar
Gabriel Engel committed
	font-weight: bold;
Gabriel Engel's avatar
Gabriel Engel committed
	margin: 5px 0;
Gabriel Engel's avatar
Gabriel Engel committed
	overflow-x: auto;
Gabriel Engel's avatar
Gabriel Engel committed
	padding: 0.5em;
Gabriel Engel's avatar
Gabriel Engel committed
	vertical-align: middle;
Gabriel Engel's avatar
Gabriel Engel committed
	word-wrap: break-word;
	text-align: left;
	&.inline {
		display: inline-block;
Gabriel Engel's avatar
Gabriel Engel committed
		padding: 0 5px;
		margin: 0;
Gabriel Engel's avatar
Gabriel Engel committed
		line-height: 16px;
pre {
	display: inline-block;
	width: 100%;
}

	padding-left: 10px;
	position: relative;
	&:before {
		content: ' ';
		background-color: #ccc;
		width: 3px;
		position: absolute;
.flex-center{
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
}

.copyonly {
	float: left;
	display: inline-block;
	vertical-align: baseline;
	width: 0;
	height: 0;
	font-size: 0;
	-moz-box-orient: vertical;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.text-center {
	text-align: center;
}

.connection-status > .alert {
	padding: 2px;
	position: absolute;
	width: 100%;
	z-index: 1000;
	border-radius: 0px;
}

Gabriel Engel's avatar
Gabriel Engel committed
.iframely-oembed {
Gabriel Engel's avatar
Gabriel Engel committed
	clear: both;
	max-width: 400px;
	min-height: 200px;
	// background-color: #DFDFDF;
Gabriel Engel's avatar
Gabriel Engel committed
	font {
		display: none;
	}
	> img {
		height: 200px;
	}
Gabriel Engel's avatar
Gabriel Engel committed
}

.alert {
	padding: 15px;
	margin-bottom: 20px;
	border: 1px solid rgba(0, 0, 0, 0);
	border-radius: 4px;
}

.alert-warning {
	color: #8A6D3B;
	background-color: #FCF8E3;
	border-color: #FAEBCC;
}

.alert-danger {
	color: #A94442;
	background-color: #F2DEDE;
	border-color: #EBCCD1;
}

.landing-page .hidden {
	visibility: hidden !important;
	display: none !important;
}
.small-title {
	font-size: 13px;
	text-transform: uppercase;
	margin-bottom: 5px;
	font-weight: 600;
}

.fill-all {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.custom-scroll(@background, @thumb, @width: 6px) {
	}
	&::-webkit-scrollbar-thumb {
		background-color: @thumb;
		-webkit-border-radius: 50px;
	}
	&::-webkit-scrollbar-corner {
		background-color: @background;
.scrollable {
	&:extend(.fill-all);
	.custom-scroll(transparent, #BFBFBF);
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}

Gabriel Engel's avatar
Gabriel Engel committed
.rocket-form {
	max-width: 620px;
	width: 90%;
	padding: 25px 0;
Gabriel Engel's avatar
Gabriel Engel committed
	legend {
		margin-bottom: 23px;
		position: relative;
		width: 100%;
		display: block;
Gabriel Engel's avatar
Gabriel Engel committed
		h3 {
			margin-bottom: 5px !important;
		}
Gabriel Engel's avatar
Gabriel Engel committed
		&:after {
			content: " ";
			height: 1px;
			background-color: #DFDFDF;
			display: block;
			position: absolute;
			width: 100%;
			bottom: -10px;
			left: 0;
		}
	}
Gabriel Engel's avatar
Gabriel Engel committed
	fieldset {
		display: block;
		margin-bottom: 40px;
	}
Gabriel Engel's avatar
Gabriel Engel committed
	.submit {
		margin-top: 20px;
		text-align: right;
	}
}

	.cf_;
	display: block;
Rafael Caferati's avatar
Rafael Caferati committed
	margin-bottom: 12px;
	&:nth-last-child(1) {
Rafael Caferati's avatar
Rafael Caferati committed
		margin-bottom: 0;
	}
	&.search {
		.icon-search {
			position: absolute;
			color: @secondary-font-color;
			left: 5px;
			top: 10px;
			font-weight: 400;
		}
		input {
			padding-left: 25px;
		}
	}
	> label {
Rafael Caferati's avatar
Rafael Caferati committed
		display: block;
		margin-bottom: 4px;
		color: @primary-font-color;
	}
	input[type='text'] {
Rafael Caferati's avatar
Rafael Caferati committed
		display: block;
	}
Gabriel Engel's avatar
Gabriel Engel committed
	&.double-col {
		> label {
			width: 30%;
			float: left;
			margin-bottom: 0;
			padding-right: 20px;
			text-align: right;
			line-height: 15px;
			padding: 10px 20px 10px 0;
		}
Gabriel Engel's avatar
Gabriel Engel committed
		> div {
			float: left;
			width: 70%;
Gabriel Engel's avatar
Gabriel Engel committed
			label {
				display: inline-block;
				margin-right: 4px;
				line-height: 35px;
Gabriel Engel's avatar
Gabriel Engel committed
				&:nth-last-child(1) {
					margin-right: 0;
				}
Gabriel Engel's avatar
Gabriel Engel committed
				input {
					margin-right: 4px;
				}
			}
		}
	}
}

.rocket-h2 {
	font-weight: 300;
	text-transform: uppercase;
	font-size: 20px;
	letter-spacing: -0.5px;
	margin: 18px 0;
	color: #EFEFEF;
}

Gabriel Engel's avatar
Gabriel Engel committed
.unselectable {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.rocket-h3 {
	font-weight: 300;
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: -0.5px;
	margin: 18px 0;
	color: #EAEAEA;
}

html {
	overflow-y: scroll;
	.custom-scroll(transparent, rgba(255, 255, 255, 0.05), 3px);
	height: 100%;
	&.noscroll {
		overflow: hidden;
	}
}

body {
	font-family: "Roboto", "HelveticaNeue-Light", "sans-serif";
	font-size: 14px;
Rafael Caferati's avatar
Rafael Caferati committed
	color: @primary-font-color;
Gabriel Engel's avatar
Gabriel Engel committed
	// min-width: 768px;
	-webkit-font-smoothing: antialiased;
	line-height: 1rem;
	padding: 0;
	overflow: visible;
	position: relative;
Rafael Caferati's avatar
Rafael Caferati committed
	background-color: @primary-background-color;
}

// input & form styles
input,
button,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

input:focus {
	outline: none;
	box-shadow: 0 0 0;
}

textarea,
select,
input[type='text'],
input[type='email'],
input[type='password'] {
	height: 35px;
	line-height: normal;
	border: 1px solid #dfdfdf;
	background-color: #fff;
	border-radius: 2px;
	padding: 2px 8px;
Rafael Caferati's avatar
Rafael Caferati committed
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
	position: relative;
	width: 100%;
	outline: none;
}

input.input-forward {
	width: 0px;
	visibility: hidden;
	.transition(width .5s ease-in);
}

input.input-forward.show {
	visibility: visible;
	.calc(width, ~'100% - 48px');
}

input.search {
	&:before {
		content: " ";
		width: 30px;
		height: 30px;
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		background-color: #000;
	}
}

Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
.search-form {
	position: relative;
}

.form-group {
	.-btn {
		margin-left: 2px;
		&:nth-child(1) {
			margin-left: 3px;
		}
	}
	.input-group {
		padding: 2px 0;
	}
}

.form-horizontal .control-label {
	padding-top: 12px;
	font-weight: bold;
	color: @primary-font-color;
}

.-autocomplete-container {
	box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
	border: none;
	border-radius: 0;
	width: 100%;
	top: auto !important;
	p {
		font-size: 14px;
		padding: 8px 8px;
		color: @secondary-font-color;
	}
Rafael Caferati's avatar
Rafael Caferati committed
	> i {
		visibility: hidden;
Rafael Caferati's avatar
Rafael Caferati committed
			content: " ";
			visibility: visible;
Gabriel Engel's avatar
Gabriel Engel committed
			background-image: url('/images/logo/loading.gif');
Rafael Caferati's avatar
Rafael Caferati committed
			background-position: center;
			background-repeat: no-repeat;
			display: block;
			height: 40px;
			margin-bottom: 12px;
		}
	}
}

.-autocomplete-item {
	padding: 8px 5px;
	font-size: 12px;
	cursor: pointer;
Rafael Caferati's avatar
Rafael Caferati committed
	color: @secondary-font-color;
Rafael Caferati's avatar
Rafael Caferati committed
		color: @secondary-font-color;
	}
	&.selected {
		background-color: @tertiary-background-color;
		color: @primary-font-color;
	}
label.required:after {
	content: ' *';
	color: red;
}

.icon-at.status-offline {
.icon-at.status-online {
	color: @status-online;
.icon-at.status-busy {
.icon-at.status-away {
	color: @status-away;
// TODO -- Refactor favorite styles and logic;
.favorite-room {
	color: #FECF09;
}

.toggle-favorite {
	color: #AAA;
}

.loading {
	background-image: url('/images/loading.gif');
	background-repeat: no-repeat;
	background-position: 50%;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	&.inline {
		position: relative;
		min-height: 40px;
		background-size: 24px 24px;
	}
}

.btn-loading {
	background-image: url('/images/loading.gif');
	background-repeat: no-repeat;
	background-position: 50%;
	color: transparent !important;
	pointer-events: none;
	cursor: not-allowed;
	background-color: transparent;
	border: none;
	&:hover {
		background-color: transparent;
	}
}

Rafael Caferati's avatar
Rafael Caferati committed
	&:extend(.unselectable);
	padding: 9px 12px;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	font-size: 13px;
	margin: 4px;
	text-transform: uppercase;
	word-spacing: 0;
Rafael Caferati's avatar
Rafael Caferati committed
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.125);
	border: none;
	line-height: 16px;
	position: relative;
Rafael Caferati's avatar
Rafael Caferati committed
	background-color: lighten(desaturate(@primary-background-color, 15%), 12.5%);
Rafael Caferati's avatar
Rafael Caferati committed
	cursor: pointer;
Gabriel Engel's avatar
Gabriel Engel committed
	span {
Gabriel Engel's avatar
Gabriel Engel committed
	&:before {
		content: " ";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
Rafael Caferati's avatar
Rafael Caferati committed
		background-color: rgba(0, 0, 0, 0.1);
		opacity: 0;
		z-index: 1;
		.transition(opacity .1s ease-out);
	}
	&:hover {
		text-decoration: none;
		color: #FFF;
Gabriel Engel's avatar
Gabriel Engel committed
		&:before {
Rafael Caferati's avatar
Rafael Caferati committed
	&.secondary {
Rafael Caferati's avatar
Rafael Caferati committed
		background-color: @tertiary-background-color;
		color: @primary-font-color;
		&:before {
Rafael Caferati's avatar
Rafael Caferati committed
			background-color: rgba(0, 0, 0, 0.045);
		}
	&.delete,
Rafael Caferati's avatar
Rafael Caferati committed
	&.remove,
	&.red {
		min-width: 120px;
		background-color: #bc2031;
	}
	&.clean {
Rafael Caferati's avatar
Rafael Caferati committed
		background-color: rgba(0, 0, 0, 0.025);
		font-size: 14px;
		box-shadow: 0 0 3px rgba(0, 0, 0, 0.08);
		&.primary {
Rafael Caferati's avatar
Rafael Caferati committed
			font-weight: 600;
		}
	}
	&.facebook {
		background-color: #325c99;
	}
	&.twitter {
		background-color: #02acec;
	}
	&.google {
		background-color: #dd4b39;
	}
	&.github {
		background-color: #4c4c4c;
	}
	&.trello {
		background-color: #026aa7;
	}
	&.meteor-developer {
		background-color: #de4f4f;
	}
}

.sec-header {
	margin: 16px 0;
	text-align: center;
	> * {
		display: inline-table;
		width: auto;
		vertical-align: middle;
		line-height: 35px;
	}
	label {
		margin-left: 20px;
	}
}

.burger {
	padding: 12px;
	visibility: hidden;
	display: none;
	cursor: pointer;
	margin-left: 7px;
	position: absolute;
	top: 4px;
	left: 5px;
	.transition(transform .2s ease-out .1s);
	i {
		display: block;
		height: 2px;
		width: 20px;
		margin: 5px 0;
		background-color: #333;
		opacity: .8;
		.transition(transform .2s ease-out, width .2s ease-out);
		&:nth-child(1) {
			//	.transition-delay(.06s);
		}
		&:nth-child(3) {
			.transition-delay(.1s);
		}
	}
}

.arrow {
	display: block;
	width: 25px;
	height: 25px;
	z-index: 100;
	.calc(top, ~"50% - 13px");
	&:before, &:after {
		content: " ";
		display: block;
		background-color: #aaa;
		width: 2px;
		height: 10px;
		position: absolute;
		.calc(top, ~"50% - 5px");
		.calc(left, ~"50% - 5px");
	}
	&:before {
		.transform(rotate(135deg) translateX(-4px));
		.transition(transform .185s ease-out .085s, background .15s ease-out);
	}
	&:after {
		.transform(rotate(-135deg) translateX(-4px));
		.transition(transform .185s ease-out, background .15s ease-out);
	}
	&.left {
		&:before {
			.transform(rotate(45deg) translateY(-4px));
		}
		&:after {
			.transform(rotate(-45deg) translateY(4px));
		}
	}
}

Gabriel Engel's avatar
Gabriel Engel committed
.a-plus {
Rafael Caferati's avatar
Rafael Caferati committed
	display: block;
	width: 25px;
	height: 25px;
	z-index: 100;
	position: relative;
Gabriel Engel's avatar
Gabriel Engel committed
	&:before, &:after {
Rafael Caferati's avatar
Rafael Caferati committed
		content: " ";
		display: block;
		background-color: #aaa;
		width: 2px;
		height: 10px;
		position: absolute;
		.calc(top, ~"50% - 5px");
		.calc(left, ~"50% - 1px");
		.transform-origin(50%, 50%);
	}
	&:after {
		.transform(rotate(90deg));
		.transition(transform .315s ease-out .1s, background .15s ease-out);
Rafael Caferati's avatar
Rafael Caferati committed
	}
	&:before {
		.transition(transform .315s ease-out .3s, background .15s ease-out);
Gabriel Engel's avatar
Gabriel Engel committed
	&:hover {
		&:before {
Rafael Caferati's avatar
Rafael Caferati committed
			.transform(rotate(180deg));
		}
Gabriel Engel's avatar
Gabriel Engel committed
		&:after {
Rafael Caferati's avatar
Rafael Caferati committed
			.transform(rotate(-90deg));
		}
	}
}

	display: block;
	width: 260px;
	z-index: 901;
	right: -62px;
	top: 50px;
	background-size: 100% auto;
	cursor: pointer;
	background-color: #5c5c5c;
	color: #f0f0f0;
	padding: 1em 0 0.95em;
	line-height: 1.04em;
	text-decoration: none;
	font-size: 1.04em;
	box-shadow: -2px 3px 1px rgba(0, 0, 0, 0.23);
	opacity: 1;
	text-transform: uppercase;
	font-weight: 400 !important;
	.transform(rotate(45deg) translateY(0));
	.transition(background-color .2s ease-out, transform .45s cubic-bezier(.15, 0, 0, 1) 2.15s, opacity .2s ease-out 2.15);
	&:hover {
		background-color: #4b4b4b;
		color: #FFF;
	}
	&:before {
		content: " ";
		border-top: 1px dashed #f0f0f0;
		position: absolute;
		top: 3px;
		width: 100%;
		left: 0;
		height: 1px;
		z-index: 1;
	}
	&:after {
		content: " ";
		border-top: 1px dashed #f0f0f0;
		position: absolute;
		bottom: 2px;
		z-index: 1;
		left: 0;
		width: 100%;
		height: 1px;
	}
Gabriel Engel's avatar
Gabriel Engel committed
	@media all and (max-width: 600px) {
		display: none;
	}
}

.mac-bar {
	display: block;
	position: relative;
	height: 24px;
	background-color: #ddd;
	z-index: 10;
	i {
		height: 12px;
		width: 12px;
		background-color: #ff5f57;
		border-radius: 50%;
		position: absolute;
		top: 6px;
		left: 10px;
		&:nth-child(2) {
			left: 26px;
			background-color: #ffbd2e;
		&:nth-child(3) {
			left: 42px;
			background-color: #28ca41;
.avatar {
	height: 100%;
	width: 100%;
	overflow: hidden;
	position: relative;
Gabriel Engel's avatar
Gabriel Engel committed
	border-radius: 4px;
	.avatar-image {
		height: 100%;
		width: 100%;
		min-height: 20px;
		min-width: 20px;
		display: block;
		position: relative;
		background-color: transparent;
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
Gabriel Engel's avatar
Gabriel Engel committed
		border-radius: 4px;
	&[initials]:before {
		content: attr(initials);
		position: absolute;
		position: absolute;
		font-size: 22px;
		text-align: center;
		width: 100%;
		height: 100%;
		color: #FFF;
		.flex-center;
		justify-content: center;
		font-family: Helvetica;
		text-transform: uppercase;
		font-weight: bold;
	}
#rocket-chat {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	opacity: 1;
	visibility: visible;
	background-color: #fff;
	.transition(opacity .2s ease-out);
	&.-hidden {
		visibility: hidden;
		opacity: 0;
	}
	> .alert {
		margin-bottom: 0;
		padding: 5px;
Rafael Caferati's avatar
Rafael Caferati committed
		position: absolute;
.account-box {
	position: relative;
	height: 100%;
	cursor: pointer;
	width: 100%;
	.info {
		position: relative;
		height: 100%;
		padding: 10px 0px 10px 18px;
		.thumb {
			float: left;
			height: 100%;
			position: relative;
			width: 42px;
			padding: 0;
			height: 42px;
Gabriel Engel's avatar
Gabriel Engel committed
				width: 8px;
				height: 8px;
Gabriel Engel's avatar
Gabriel Engel committed
				border-radius: 4px;
				top: 18px;
				left: -14px;
			.avatar-initials {
				line-height: 44px;
			}
			padding: 0 25px 0 10px;
			.flex-center;
			flex-flow: row nowrap;
			.calc(width, ~"100% - 60px");
		}
		h4 {
			display: block;
			line-height: 18px;
			color: rgba(255, 255, 255, 0.65);
			font-size: 16px;
			margin-top: 3px;
			font-weight: 400;
			overflow: hidden;
			text-overflow: ellipsis;
			position: relative;
			width: 130px;
			text-align: left;
			.transition(color .15s ease-out);
		}
		&.status-offline {
			.thumb:after {
				border-color: darken(@status-offline, 5%);
				background-color: @status-offline;
				border-color: darken(@status-online, 5%);
				background-color: @status-online;
				border-color: darken(@status-away, 5%);
				background-color: @status-away;
				border-color: darken(@status-busy, 5%);
				background-color: @status-busy;
		background-color: @primary-background-color;
		position: fixed;
		top: @header-min-height;
		left: 0;
		padding-top: 15px;
		width: @rooms-box-width;
		.calc(height, ~'100% - ' @header-min-height + @footer-min-height);
		.transition(transform .3s cubic-bezier(.5, 0, .1, 1));
		&._hidden {
			.transform(translateX(-100%));
		}
		.status {
			padding-left: 38px;
			position: relative;
			&:after {
				content: " ";
				display: block;
				width: 13px;
				height: 13px;
				border: 1px solid #6f6f6f;
				border-radius: 50%;
				z-index: 5;
				position: absolute;
				left: 18px;
				.calc(top, ~"50% - 8px");
			}
			&.offline {
				&:after {
					border-color: #666666;
					background-color: #7b7b7b;
				}
			}
			&.online {
				&:after {
					border-color: #2c9210;
					background-color: #35AC19;
				}
			}
			&.away {
				&:after {
					border-color: #e69200;
					background-color: #fcb316;
				}
			}
			&.busy {
				&:after {
					border-color: #9f0030;
					background-color: #D30230;
				}
			}
		}
		span.soon {
			// content: "em breve";
			width: 100px;
			position: absolute;
			right: -30px;
			color: #aaa;
			font-size: 10px;
			top: 17px;
		}
		i {
			width: 26px;
			display: inline-block;
			text-align: center;
			margin-left: 0 -1px 0 1px;
		}
		a {
			position: relative;
			display: table;
			color: rgba(255, 255, 255, 0.5);
			width: 100%;
			height: 20px;
			padding: 15px 12px;
			line-height: 1;
			text-decoration: none;
Rafael Caferati's avatar
Rafael Caferati committed
			border-bottom: 1px solid darken(@primary-background-color, 2%);
			&:nth-child(even) {
				// background-color: #EFEFEF;
			}
			&:hover {
Rafael Caferati's avatar
Rafael Caferati committed
				background-color: darken(@primary-background-color, 2%);
				color: rgba(255, 255, 255, 0.75);
				text-decoration: none;