Skip to content
Snippets Groups Projects
base.less 63.9 KiB
Newer Older

			i:after {
				content: " ";
				display: inline-block;
				width: 8px;
				height: 8px;
				border-radius: 4px;
				vertical-align: middle;
			}

			i.status-offline {
				&:after {
				}
			}
			i.status-online {
				&:after {
				}
			}
			i.status-away {
				&:after {
				}
			}
			i.status-busy {
				&:after {
				}
			}
		}
		p {
			line-height: 18px;
			font-size: 12px;
			font-weight: 300;
		}
	}
	.stats {
		li {
			margin-bottom: 3px;
			display: inline-block;
			padding: 4px 6px;
			border-right: 2px;
			border-radius: 2px;
		}
	}
	.box {
		position: relative;
		margin-bottom: 25px;
		font-size: 13px;
		h4 {
			&:extend(.small-title);
			margin-bottom: 6px;
		}
		&:after {
			content: " ";
			height: 1px;
			width: 100%;
			bottom: -10px;
			left: 0;
			position: absolute;
		}
	}
	.tags {
		li {
			display: inline-block;
			padding: 4px;
			border-right: 2px;
		}
	}
	.links {
		i {
			margin-right: 5px;
			font-size: 13px;
		}
		a {
			white-space: nowrap;
			max-width: 100%;
			overflow: hidden;
			text-overflow: ellipsis;
			display: block;
			border-radius: 2px;
			padding: 0 5px;
			line-height: 22px;
			position: relative;
			.transition(background .18s ease,
			colo .18s ease);
			&:before {
				content: attr(data-stats);
				position: absolute;
				right: 5px;
				top: 0;
				font-size: 11px;
				opacity: 0;
			}
			&:hover {
				padding-right: 34px;
				text-decoration: none;
				&:before {
					opacity: 1;
				}
			}
			span {
				font-weight: 300;
			}
		}
	}
	.contact-code {
		margin: -5px 0 10px 0;
		font-size: 12px;
	}
	.channels {
		h3 {
			font-size: 24px;
			margin-bottom: 8px;
			line-height: 22px;
		}
		p {
			line-height: 18px;
			font-size: 12px;
			font-weight: 300;
		}
		a {
			white-space: nowrap;
			max-width: 100%;
			overflow: hidden;
			text-overflow: ellipsis;
			display: block;
			border-radius: 2px;
			padding: 0 5px;
			line-height: 22px;
			position: relative;
			.transition(background .18s ease,
			colo .18s ease);
			&:before {
				content: attr(data-stats);
				position: absolute;
				right: 5px;
				top: 0;
				font-size: 11px;
				opacity: 0;
			}
			span {
				font-weight: 300;
			}
		}
	}
	.edit-form {
		white-space: normal;
		h3 {
			font-size: 24px;
			margin-bottom: 8px;
			line-height: 22px;
		}
		p {
			line-height: 18px;
			font-size: 12px;
			font-weight: 300;
		}
		> .input-line {
			margin-top: 20px;
		}
	}
	.room-info-content > div {
		margin: 0 0 20px 0;
	}
Gabriel Engel's avatar
Gabriel Engel committed
.user-image-status(@color) {
Gabriel Engel's avatar
Gabriel Engel committed
	.avatar {
@user-image-square: 20px;
	height: @user-image-square;
	width: @user-image-square;
	cursor: pointer;
	font-size: 12px;
	position: relative;
	display: inline-table;
	.avatar {
		&:before {
			font-size: 10px;
		}
	}
Gabriel Engel's avatar
Gabriel Engel committed
		.avatar {
			&:after {
				.transform(scaleX(1))
			.status-offline {
				&:after {
			.status-online {
				&:after {
			.status-away {
				&:after {
			.status-busy {
				&:after {
Gabriel Engel's avatar
Gabriel Engel committed
			p {
		overflow: visible;
Gabriel Engel's avatar
Gabriel Engel committed
			height: 6px;
			width: 6px;
			position: absolute;
			z-index: 1;
Gabriel Engel's avatar
Gabriel Engel committed
			left: -12px;
			top: 8px;
			border-radius: 3px;
		.avatar-initials {
			line-height: @user-image-square;
Gabriel Engel's avatar
Gabriel Engel committed
	p {
Gabriel Engel's avatar
Gabriel Engel committed
	.lines & {
		margin: 0;
Gabriel Engel's avatar
Gabriel Engel committed
		&:after {
Gabriel Engel's avatar
Gabriel Engel committed
		a {
Gabriel Engel's avatar
Gabriel Engel committed
			.clearfix;
			padding: 5px 0;
			height: 30px;
			display: block;
Gabriel Engel's avatar
Gabriel Engel committed
			> div {
				width: @user-image-square;
				height: @user-image-square;
Gabriel Engel's avatar
Gabriel Engel committed
		p {
			float: left;
			display: block;
			line-height: @user-image-square;
			font-size: 15px;
			font-weight: 400;
			overflow: hidden;
			text-overflow: ellipsis;
			position: relative;
			padding-left: 10px;
			.calc(width,
			~"100% - 45px");
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
		width: 100%;
	}
}

.user-profile {
	white-space: normal;
	overflow: hidden;
	.thumb {
		float: left;
		width: 75px;
		img {
			width: 60px;
			height: 60px;
		}
	}
	.info {
		display: block;
		margin-left: 75px;
		h3 {
			font-size: 14px;
			margin-bottom: 8px;
			font-weight: 600;
		}
		p {
			font-size: 12px;
			margin-bottom: 6px;
		}
		a {
			&:hover {
				text-decoration: none;
			}
		}
	}
}

.profile-buttons {
	margin-top: 1em;
}

	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	visibility: hidden;
	&.fluid {
			height: 100%;
			main {
				position: absolute;
				overflow-y: scroll;
				.calc(height,
				~'100% - 112px');
			.animation(modalEnter .35s cubic-bezier(.5,
			0,
			.1,
			1) forwards .1s);
		}
	}
	&.closed {
		.animation(fadeOut .2s ease-out forwards);
			.animation(modalExit .25s cubic-bezier(.5,
			0,
			.1,
			1) forwards);
			overflow: visible;
			main {
				overflow: visible;
				position: relative;
			}
		}
	}
	.wrapper {
		display: table;
		height: 100%;
		width: 100%;
		position: relative;
	}
	.window {
		display: table-cell;
		vertical-align: middle;
		text-align: center;
		width: 100%;
		height: 100%;
		position: relative;
	}
	fieldset {
		margin-bottom: 8px;
	}
	legend {
		position: relative;
		z-index: 2;
		display: block;
		margin-bottom: 18px;
		position: relative;
		text-transform: uppercase;
		font-size: 13px;
		i {
			margin-right: 4px;
		}
		&:before {
			content: " ";
			width: 100%;
			height: 1px;
			position: absolute;
			top: 19px;
			left: 0;
			z-index: 1;
		}
	}
		display: block;
		max-width: 800px;
		margin: 0 auto;
		width: 90%;
		position: relative;
		overflow: hidden;
		text-align: left;
		border-radius: 4px;
		box-shadow: 4px 4px 0 rgba(0, 0, 0, .15);
		padding: 56px 0;
		opacity: 0;
		header {
			height: 55px;
			position: absolute;
			top: 0;
			width: 100%;
			z-index: 1;
			font-size: 14px;
			text-align-last: right;
			padding: 0 25px;
			box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
			h3 {
				display: inline-block;
				margin: 0;
				text-align: left;
				font-size: 18px;
rcaferati's avatar
rcaferati committed
				font-weight: 600;
				line-height: 55px;
				text-overflow: ellipsis;
				overflow: hidden;
			}
			.close {
				position: absolute;
				width: 20px;
				height: 26px;
				right: 20px;
				top: 16px;
				opacity: 1;
				i {
					font-size: 24px;
				}
				&:hover {
					i {
					}
				}
			}
		}
		main {
			display: block;
			width: 100%;
			height: 100%;
			overflow-y: auto;
			overflow-x: hidden;
			padding: 20px 25px;
		}
		footer {
			height: 55px;
			position: absolute;
			bottom: 0;
			width: 100%;
			z-index: 1;
			padding: 11px 25px 0;
			text-align: right;
			box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
		}
	}
}

.avatarPrompt {
	header {
		p {
			font-size: 14px;
			line-height: 22px;
			font-weight: 300;
		}
	}
	img {
		width: 200px;
	}
}

	width: 100%;
	padding: 20px;
	margin: 20px auto;
	box-shadow: 0 0 6px 10px rgba(0, 0, 0, 0.1);
	border-radius: 2px;
Rafael Caferati's avatar
Rafael Caferati committed
	position: relative;
	z-index: 1;
Gabriel Engel's avatar
Gabriel Engel committed
	header {
		padding: 18px 0 23px;
Gabriel Engel's avatar
Gabriel Engel committed
		p {
			//font-family: "Muli";
			margin: 8px 0 0;
			font-size: 14px;
			line-height: 22px;
			font-weight: 300;
		}
	}
		line-height: 24px;
		margin: 0;
Gabriel Engel's avatar
Gabriel Engel committed
	a {
Rafael Caferati's avatar
Rafael Caferati committed
		margin: 4px 0;
		display: inline-block;
Gabriel Engel's avatar
Gabriel Engel committed
		&:active {
Gabriel Engel's avatar
Gabriel Engel committed
		&:hover {
	.options {
		display: none;
		width: 100%;
		font-size: 10px;
	}
	.submit {
		margin: 12px 0;
	}
	.remember {
		float: left;
	}
	.remember input {
		margin-right: 4px;
	}
	.forgot {
		float: right;
		line-height: 20px;
	}
	.input-text {
		margin: 0 0 14px 0;
		position: relative;
		&:before {
			content: " ";
			width: 100%;
			height: 40px;
			position: absolute;
			top: 7px;
			left: 0;
			cursor: text;
		}
		&.active {
			&:before {
				visibility: hidden;
			}
		}
		input {
			box-shadow: 0 0 0;
			border-width: 0;
			position: relative;
			padding: 4px 8px;
			font-size: 18px;
			border-bottom: 1px solid;
			border-radius: 0px;
			&.error {
				border-bottom: 1px solid;
Gabriel Engel's avatar
Gabriel Engel committed
				&::-webkit-input-placeholder {
				}
				&:-moz-placeholder {
				}
				/* Firefox 18- */
				&::-moz-placeholder {
				}
				/* Firefox 19+ */
				&:-ms-input-placeholder {
				}
		}
		input:-webkit-autofill {
		}
		input:-webkit-autofill {
			-webkit-box-shadow: 0 0 0px 1000px #f4f4f4 inset;
		}
	}
}

Rafael Caferati's avatar
Rafael Caferati committed
	position: relative;
	z-index: 1;
	display: -webkit-flex;
	display: flex;
	flex-wrap: wrap;
	-webkit-flex-wrap: wrap;
	margin-bottom: 20px;
	h3 {
		&:extend(.rocket-h3);
		margin-top: 0;
		margin-bottom: 12px;
	}
	.button {
		border-radius: 2px;
		min-height: 40px;
		line-height: 20px;
		font-size: 18px;
		margin: 2px;
		padding: 0;
		-webkit-flex-grow: 1;
		flex-grow: 1;
	}
.full-page {
	.flex-center;
	flex-flow: row nowrap;
	margin: auto;
Rafael Caferati's avatar
Rafael Caferati committed
	width: 100%;
	min-height: 100%;
	z-index: 101;
	.wrapper {
		text-align: center;
		z-index: 10;
		position: relative;
		padding: 20px;
	.logo {
		display: block;
		> img {
			display: inline-block;
			position: relative;
			top: 0;
			right: 0;
			z-index: 20;
			width: 500px;
			max-width: 100%;
		}
	}
	a {
		font-weight: 300;
	}
	.cell {
		display: table-cell;
		vertical-align: middle;
		text-align: center;
	}
	header {
		display: block;
Rafael Caferati's avatar
Rafael Caferati committed
		position: relative;
		z-index: 1;
	}
	.text {
		font-weight: 300;
		margin-bottom: 25px;
		margin: 0 auto 25px;
		max-width: 580px;
Rafael Caferati's avatar
Rafael Caferati committed
		position: relative;
		z-index: 1;
		.button {
			font-weight: 400;
			padding: 16px 20px;
			margin-top: 20px;
		}
		h1 {
rcaferati's avatar
rcaferati committed
			font-weight: 600;
			text-transform: uppercase;
			font-size: 24px;
			letter-spacing: -0.5px;
			margin-bottom: 20px;
			display: none;
		}
		h2 {
			&:extend(.rocket-h2);
		}
		h3 {
			&:extend(.rocket-h3);
		}
		p {
			margin: 18px 0;
			font-size: 16px;
			line-height: 24px;
			font-weight: 400;
		}
	}
	footer {
		padding: 20px 0 0;
Rafael Caferati's avatar
Rafael Caferati committed
		position: relative;
		z-index: 1;
		h4 {
			text-transform: uppercase;
			margin-bottom: 8px;
			font-size: 12px;
Rafael Caferati's avatar
Rafael Caferati committed
			font-weight: 300;
	}
	a.meteor {
		position: fixed;
		right: 30px;
		bottom: 20px;
		width: 100px;
		height: 50px;
		background: url(/images/meteor.png) no-repeat center center;
		background-size: 100% auto;
		text-indent: -9999em;
	}
	.share {
		border-radius: 50%;
		min-height: 40px;
		line-height: 20px;
Gabriel Engel's avatar
Gabriel Engel committed
		&:before {
#particles-js {
	&:extend(.fill-all);
	position: fixed;
}

	background-color: #008ce3;
	padding: 0px 4px 2px 4px;
	color: white;
	&:hover {
		color: white;
	}
.avatar-suggestions {
	display: flex;
	flex-flow: column nowrap;
}

.avatar-suggestion-item {
	margin: 5px 0px;
	text-align: left;
	.flex-center;
	flex-flow: row nowrap;
	width: 100%;
	padding: 12px;
	border: 1px solid;
	.transition(background-color .15s ease-out,
	border-color .15s ease-out);
	&:first-child {
		margin-top: 10px;
	}
	.avatar {
		height: 55px;
		max-height: 55px;
		min-height: 55px;
		max-width: 55px;
		min-width: 55px;
		background-size: cover;
		font-size: 40px;
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
		text-align: center;
		position: relative;
	}
Gabriel Engel's avatar
Gabriel Engel committed
	.question-mark {
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
			position: absolute;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
			margin: 0;
			line-height: 55px;
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
		}
Gabriel Engel's avatar
Gabriel Engel committed
	.action {
		text-align: right;
		padding-left: 20px;
	}
		min-width: 120px;
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
	input[type=file] {
		position: absolute !important;
		width: 100%;
		top: 0;
		left: 0;
		height: 100%;
		opacity: 0;
		z-index: 10000;
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
		* {
			cursor: pointer;
		}
	}
.statistics-table {
Gabriel Engel's avatar
Gabriel Engel committed

	th, td {
		text-align: left;
		padding: 3px 10px;
	}
}

Gabriel Engel's avatar
Gabriel Engel committed
.rocket-team {
	display: block;
Gabriel Engel's avatar
Gabriel Engel committed
	li {
		display: inline-block;
	}
		display: inline-block;
		width: 50px;
		height: 50px;
		border-radius: 50%;
		background-size: 100%;
		background-position: 50% 50%;
		margin-right: 5px;
	}
}

#fullscreendiv:-webkit-full-screen {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	background: none;
}

@media all and(max-width: 1100px) {
	#rocket-chat {
		.flex-opened {
		}
	}
}

@media all and(max-width: 780px) {
	#rocket-chat {
		.burger {
			visibility: visible;
			display: inline-block;
		}
		.side-nav {
			// .transform(translateX(-100%));
			.transition(transform .3s ease-out);
		}
		.main-content {
			.transition(transform .2s linear);
			z-index: 1000;

			&.notransition {
				.transition(transform .0s);
			}
		}
		&.menu-opened {
			.side-nav {
				.transform(translateX(0));
			}
			.burger {
				i {
					&:nth-child(1) {
						opacity: 1;
						width: 10px;
						.transform-origin(50%, 50%, 0);
						.transform(translateY(3px) rotate(-45deg));
					}
					&:nth-child(2) {
						//.transform(rotate(180deg));
					}
					&:nth-child(3) {
						opacity: 1;
						width: 10px;
						.transform-origin(50%, 50%, 0);
						.transform(translateY(-3px) rotate(45deg));

	.sweet-alert {
		h2 {
			font-size: 20px;
			line-height: 30px;
			margin: 10px 0;
		}
		button {
			margin-top: 6px;
			padding: 10px 22px;
}

@media all and(max-width: 500px) {
	.user-view {
		.thumb {
			width: 60px;
			height: 60px;
		}
		.info {
			margin-left: 75px;
			.calc(width,
			~'100% - 120px');
Gabriel Engel's avatar
Gabriel Engel committed
	.messages-container {
		.message-form {
			> .formatting-tips {
				display: none;
			}
		}
	}

.dropzone {
	.dropzone-overlay {
		display: none;
	}
	&.over .dropzone-overlay {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		z-index: 1000000;
		display: block;
		font-size: 50px;
		display: flex;
		align-items: center;
		justify-content: center;
		> div {
			padding: 40px;
			border-radius: 10px;
			pointer-events: none;
		}
	}

.is-cordova {
	.flex-tab {
		.control {
			padding-left: 50px;
		}

		button.more {
			width: 60px;
			.transform(translateX(-57px));
		}
	}

	.connection-status > .alert {
		border-width: 0 0 1px 0;
	}

.touch {
	.footer {
		padding-left: 10px;
		padding-right: 10px;
	}
	.mobile-message-menu {
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
	}