Skip to content
Snippets Groups Projects
base.less 51.1 KiB
Newer Older
			vertical-align: middle;
			text-align: left;
Rafael Caferati's avatar
Rafael Caferati committed
			line-height: 18px;
			font-size: 20px;
			margin-top: 2px;
Rafael Caferati's avatar
Rafael Caferati committed
			font-weight: 300;
			overflow: hidden;
			text-overflow: ellipsis;
			position: relative;
		}
Rafael Caferati's avatar
Rafael Caferati committed
			line-height: 18px;
			margin-top: 4px;
			font-weight: 400;
			font-size: 13px;
		}
	}
Gabriel Engel's avatar
Gabriel Engel committed
	footer {
		display: table;
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 0 10px;
		z-index: 120;
		text-align: left;
		background: #fff;
		min-height: @footer-min-height;
		background-color: @primary-background-color;
		.transition-delay(.22s);
Gabriel Engel's avatar
Gabriel Engel committed
		> div {
			display: table-cell;
			vertical-align: middle;
			text-align: left;
	.content {
		direction: rtl;
		position: absolute;
		top: @header-min-height;
		.calc(height, ~"100% - " @header-min-height + @footer-min-height);
		width: 100%;
		overflow-x: hidden;
		overflow-y: scroll;
		display: block;
		-webkit-overflow-scrolling: touch;
		box-shadow: 0 0 5px rgba(0, 0, 0, 0.4) inset;
		padding: 35px 10px;
		.custom-scroll(transparent, rgba(255, 255, 255, 0.05));
		.transition-delay(.135s);
		background-color: @primary-background-color;
Gabriel Engel's avatar
Gabriel Engel committed
		> .wrapper {
Gabriel Engel's avatar
Gabriel Engel committed
		h4 {
			margin-bottom: 30px;
			font-weight: 400;
			text-transform: uppercase;
			font-size: 13px;
		}
	.input-line {
Rafael Caferati's avatar
Rafael Caferati committed
		margin-bottom: 25px;
		&:nth-last-child(1) {
		label {
Rafael Caferati's avatar
Rafael Caferati committed
			text-transform: uppercase;
			font-weight: 400;
			margin-bottom: 0;
			color: inherit;
		}
		input[type='text'] {
Rafael Caferati's avatar
Rafael Caferati committed
			border-width: 0 0 1px 0;
			border-color: @tertiary-font-color;
			background-color: transparent;
			color: @quaternary-font-color;
Rafael Caferati's avatar
Rafael Caferati committed
			padding: 0 8px;
			box-shadow: 0 0 0;
			border-radius: 0;
		}
	}
	.input-submit {
Rafael Caferati's avatar
Rafael Caferati committed
		margin: 35px 0 0 -4px;
	}
	.selected-users {
Rafael Caferati's avatar
Rafael Caferati committed
		padding: 20px 0 0;
Rafael Caferati's avatar
Rafael Caferati committed
			display: inline-block;
			padding: 5px;
			background-color: rgba(0, 0, 0, 0.1);
Rafael Caferati's avatar
Rafael Caferati committed
			margin-right: 2px;
			margin-bottom: 2px;
		}
			cursor: pointer;
		}
.side-nav {
	position: fixed;
	display: block;
	top: 0;
	bottom: 0;
	left: 0;
	width: @rooms-box-width;
	height: auto;
	overflow: visible;
	background-color: #F4F4F4;
	z-index: 100;
	color: #000;
	padding: 12px 0 0 0;
	.transition(transform .3s ease-out);
	&:before {
		content: " ";
		height: 1px;
		width: 189px;
		left: 8px;
		position: absolute;
		top: 59px;
		background-color: #dfdfdf;
	}
	.rooms-list {
		direction: rtl;
		position: absolute;
		top: @header-min-height;
		.calc(height, ~"100% - " @header-min-height + @footer-min-height);
		width: 100%;
		overflow-x: hidden;
		display: block;
		-webkit-overflow-scrolling: touch;
		box-shadow: 0 0 5px rgba(0, 0, 0, 0.4) inset;
		background-color: lighten(@primary-background-color, 2%);
		.custom-scroll(transparent, rgba(255, 255, 255, 0.05));
		> .wrapper {
			direction: ltr;
			padding-left: 8px;
Gabriel Engel's avatar
Gabriel Engel committed
	.more {
		display: block;
		color: @tertiary-font-color;
		font-size: 11px;
		padding: 4px 0 4px 10px;
		margin-top: 2px;
		&:hover {
			background-color: rgba(0, 0, 0, 0.1);
	.input-error {
		text-align: center;
		color: #f09286;
		font-size: 12px;
		padding: 0;
		text-align: left;
		margin-bottom: -20px;
		margin-top: -12px;
		strong {
			display: block;
			margin-bottom: 2px;
		}
	}
	.empty {
		padding-left: 10px;
		font-size: 11px;
		padding: 2px 0 2px 10px;
		color: @tertiary-font-color;
	}
		width: 100%;
		color: #fff;
		z-index: 110;
Rafael Caferati's avatar
Rafael Caferati committed
		cursor: pointer;
		height: @header-min-height;
		background-color: @primary-background-color;
Gabriel Engel's avatar
Gabriel Engel committed
	> .arrow {
		position: absolute;
		top: 18px;
		right: 8px;
		z-index: 1000;
		cursor: pointer;
Gabriel Engel's avatar
Gabriel Engel committed
		&.hover, &:hover {
			&:before, &:after {
				background-color: rgba(255, 255, 255, 0.85);
			}
		}
	}
	.footer {
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 10px 15px 0px 15px;
		background: #fff;
		min-height: @footer-min-height;
		background-color: @primary-background-color;
		.logo {
			display: block;
			width: 100%;
			height: 100%;
			&:hover {
				text-decoration: none;
			}
		}
		small {
			font-size: 11px;
			width: 100%;
			display: block;
			text-transform: lowercase;
Rafael Caferati's avatar
Rafael Caferati committed
			color: @tertiary-font-color;
			margin-bottom: 1px;
			font-weight: 300;
			padding-right: 3px;
		}
		img {
			display: inline-block;
			width: 85%;
		}
	}
	.search-form {
		.search {
			padding-left: 25px;
		}
		> div {
			position: relative;
		}
		margin-right: 20px;
	}
	h3 {
		&:extend(.small-title);
		cursor: pointer;
		position: relative;
		text-transform: uppercase;
		font-weight: 500;
Rafael Caferati's avatar
Rafael Caferati committed
		margin: 25px 0 0 0;
		color: @tertiary-font-color;
		line-height: 28px;
Rafael Caferati's avatar
Rafael Caferati committed
		padding-left: 10px;
		a {
			color: inherit;
			display: block;
		}
		&:hover {
			background-color: rgba(0, 0, 0, 0.1);
		}
Rafael Caferati's avatar
Rafael Caferati committed
		&.add-room {
			&:hover {
Gabriel Engel's avatar
Gabriel Engel committed
				i {
					&: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));
					}
				}
Rafael Caferati's avatar
Rafael Caferati committed
				position: absolute;
Rafael Caferati's avatar
Rafael Caferati committed
				top: 1px;
	}
	.unread {
		background-color: #1dce73;
		min-width: 15px;
		padding: 0 2px;
		border-radius: 2px;
		color: #FFF;
		text-align: center;
		position: absolute;
		right: 6px;
		font-size: 11px;
		top: 6px;
		line-height: 16px;
		font-weight: 800;
	}
	ul {
		position: relative;
Rafael Caferati's avatar
Rafael Caferati committed
		//left: 1px;
		li {
			white-space: nowrap;
			max-width: 100%;
			overflow: hidden;
			text-overflow: ellipsis;
			vertical-align: middle;
			.remove, .erase {
				position: absolute;
				display: block;
				right: -18px;
				top: 2px;
				color: #666;
				opacity: 0;
				.transform(translateX(-10px));
				.transition(opacity .15s ease .35s, transform .12s ease-out .35s);
			}
			&:hover {
				.opt {
					background-color: transparent;
					opacity: 1;
					.transform(translateX(0));
				}
			}
			&.active {
				a {
					background-color: rgba(255, 255, 255, 0.075);
					color: rgba(255, 255, 255, 0.75);
				}
				.opt {
					background-color: transparent;
				}
			}
			&.has-unread {
				.opt {
					opacity: 0;
				}
			}
			&.has-alert {
				.name {
					color: #ffffff;
					font-weight: bold;
				}
			}
Diego Sampaio's avatar
Diego Sampaio committed
			padding: 6px 25px 7px 6px;
			font-size: 15px;
			position: relative;
			line-height: 16px;
			white-space: nowrap;
			max-width: 100%;
			overflow: hidden;
			text-overflow: ellipsis;
			vertical-align: middle;
			text-decoration: none;
Rafael Caferati's avatar
Rafael Caferati committed
			color: @tertiary-font-color;
			text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
			&:hover {
				background-color: rgba(255, 255, 255, 0.05);
				text-decoration: none;
			}
		}
		.opt {
			position: absolute;
			right: 0;
			width: 50px;
			padding-right: 10px;
			text-align: right;
			opacity: 0;
			background-color: transparent;
			display: block;
Rafael Caferati's avatar
Rafael Caferati committed
			top: 7px;
			.transform(translateX(-10px));
			.transition(opacity .12s ease .25s, transform .15s ease-out .25s);
			i {
				margin: 0 1px;
				color: rgba(255, 255, 255, 0.5);
				&:hover {
					color: rgba(255, 255, 255, 0.75);
				}
			}
			.icon-cancel-circled:before {
				margin-left: 1px;
			}
Gabriel Engel's avatar
Gabriel Engel committed
			font-size: 14px;
Rafael Caferati's avatar
Rafael Caferati committed
			width: 16px;
			display: inline-block;
.new-room-highlight a {
	-webkit-animation: highlight 2s infinite;
	-moz-animation: highlight 2s infinite;
	-o-animation: highlight 2s infinite;
	animation: highlight 2s infinite;
}

.page-container {
	&:extend(.fill-all);
	overflow-y: hidden;
	.content {
		&:extend(.fill-all);
		padding: 0px 40px;
		overflow-y: scroll;
		margin-top: 60px;
		padding-top: 15px;
		-webkit-overflow-scrolling: touch;
		.calc(height, ~'100% - 60px');
		.custom-scroll(transparent, #EAEAEA);
	}
}

.fixed-title {
	position: absolute;
	display: table;
	padding: 0 10px 0 20px;
	border-bottom: 1px solid @tertiary-background-color;
Gabriel Engel's avatar
Gabriel Engel committed
	width: 100%;
	height: @header-min-height;
Gabriel Engel's avatar
Gabriel Engel committed
	&.visible {
		h2 {
Gabriel Engel's avatar
Gabriel Engel committed
	> div {
		display: table-cell;
		vertical-align: middle;
	}
	h2 {
		max-width: 90%;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		font-size: 22px;
		font-weight: 500;
		line-height: 29px;
Gabriel Engel's avatar
Gabriel Engel committed
		.icon-at, .icon-hash {
Rafael Caferati's avatar
Rafael Caferati committed
			margin-right: -7px;
Gabriel Engel's avatar
Gabriel Engel committed
			color: #CCCCCC;
Rafael Caferati's avatar
Rafael Caferati committed
		}
Gabriel Engel's avatar
Gabriel Engel committed
		.icon-star,
		.icon-star-empty {
			margin-right: -4px;
		}
	.hidden {
Rafael Caferati's avatar
Rafael Caferati committed
		visibility: hidden;
		display: none;
	}
Gabriel Engel's avatar
Gabriel Engel committed
	input[type='text'] {
		.calc(width, ~'100% - 100px');
		vertical-align: top;
		margin-top: -4px;
		margin-left: -3px;
		font-size: 20px;
	}
Gabriel Engel's avatar
Gabriel Engel committed
	.icon-pencil {
		vertical-align: text-top;
		margin-top: -7px;
		display: inline-block;
		font-size: 16px;
	}
// MAIN CONTENT + MAIN PAGES //
.main-content {
	display: table;
	position: relative;
	margin-left: @rooms-box-width;
	margin-top: 0;
	height: 100%;
	.calc(width, ~'100% - ' @rooms-box-width);
	.transition(width .25s cubic-bezier(.5, 0, .1, 1));
	&.flex-opened {
		.calc(width, ~'100% - ' @rooms-box-width + @flex-tab-width);
		margin-right: 420px;
		.flex-tab {
			.transform(translateX(0));
		}
	}
	.container-fluid {
		padding-top: 0;
	}
	.history-date {
		margin-bottom: 20px;
	}
}

Gabriel Engel's avatar
Gabriel Engel committed
.page-static {
	p {
Gabriel Engel's avatar
Gabriel Engel committed
.page-home {
Gabriel Engel's avatar
Gabriel Engel committed
	.fixed-title {
		h2 {
			overflow: visible;
		}
	}
Gabriel Engel's avatar
Gabriel Engel committed
	.logo {
		width: 190px;
		vertical-align: text-top;
		margin-top: -3px;
		margin-left: 10px;
Gabriel Engel's avatar
Gabriel Engel committed
	.info {
		margin-bottom: 20px;
		max-width: 680px;
		line-height: 20px;
Gabriel Engel's avatar
Gabriel Engel committed
		p {}
Gabriel Engel's avatar
Gabriel Engel committed
	.social {
		h4 {
Gabriel Engel's avatar
Gabriel Engel committed
		nav {
			margin-left: -4px;
		}
	}
}

.page-list {
	.search {
		margin-bottom: 12px;
	}
	.results {
		padding: 10px 0;
		border-bottom: 1px solid #DFDFDF;
		margin-bottom: 10px;
		font-weight: 300;
		color: @secondary-font-color;
		p {
			font-size: 12px;
			text-transform: uppercase;
		}
	}
	.list {
		a {
			.cf_;
			padding: 10px 16px;
			width: 100%;
			color: @primary-font-color;
			border-bottom: 1px solid @secondary-background-color;
			.transition(background .15s ease-out);
			&:hover {
				background-color: @secondary-background-color;
			}
		}
		ul {
			margin: 6px 0;
		}
		li {
			display: inline-block;
			margin-right: 14px;
			font-size: 11px;
			color: @secondary-font-color;
			position: relative;
			&:after {
				content: " ";
				width: 4px;
				height: 4px;
				border-radius: 50%;
				background-color: @secondary-font-color;
				position: absolute;
				right: -12px;
				.calc(top, ~"50% - 2px");
			}
			&:nth-last-child(1) {
				&:after {
					display: none;
				}
			}
		}
		.info {
			display: block;
			float: left;
			.calc(width, ~"100% - 150px");
			i {
				margin-right: 5px;
				width: 20px;
				text-align: left;
			}
			h3 {
				font-size: 18px;
				font-weight: 500;
			}
			a {
				text-decoration: none;
				color: @primary-font-color;
			}
		}
		.status {
			display: block;
			float: right;
			width: 150px;
			min-height: 30px;
			color: @secondary-font-color;
			text-align: right;
			strong {
				font-size: 12px;
				font-weight: 500;
			}
		}
	}
}

.messages-container {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
	.input-message-editing-container {
		.calc(width, ~"100% - 16px");
	}
Gabriel Engel's avatar
Gabriel Engel committed
	.input-message-editing {
Rafael Caferati's avatar
Rafael Caferati committed
		resize: none;
Rafael Caferati's avatar
Rafael Caferati committed
		padding-top: 9px;
		padding-bottom: 9px;
		overflow-y: hidden;
	}
	.edit-room-title {
		color: @secondary-font-color;
		margin-left: 4px;
		font-size: 16px;
		&:hover {
			color: @primary-font-color;
		}
	}
	.wrapper {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		overflow-y: auto;
		overflow-x: hidden;
		word-wrap: break-word;
		-webkit-overflow-scrolling: touch;
		.custom-scroll(transparent, #EAEAEA);
	}
	.footer {
		position: absolute;
		padding: 10px 20px 0px 20px;
		border-top: 1px solid @tertiary-background-color;
		min-height: @footer-min-height;
	.message-popup {
		position: absolute;
		background: #FAFAFA;
		z-index: 101;
		left: 0px;
		right: 0px;
		overflow: hidden;
	}
	.message-popup-title {
		background-color: @secondary-background-color;
		border-bottom: 1px solid #EEE;
		padding: 10px 20px;
		font-size: 18px;
		font-weight: 300;
	}
	.popup-item {
		padding: 8px 20px;
		color: @secondary-font-color;
		&.selected {
			background-color: @tertiary-background-color;
			color: @primary-font-color;
	.message-form {
		> div {
			position: relative;
		}
		textarea {
			display: block;
			padding-top: 9px;
			padding-bottom: 9px;
			padding-right: 38px;
			overflow-y: hidden;
			resize: none;
		}
		.icon-paper-plane {
Rafael Caferati's avatar
Rafael Caferati committed
			top: 2px;
Rafael Caferati's avatar
Rafael Caferati committed
			font-size: 16px;
			color: @secondary-font-color;
			&:hover {
				color: @primary-font-color;
			}
		}
		> .users-typing {
			float: left;
Gabriel Engel's avatar
Gabriel Engel committed
			color: #888888;
			padding: 3px 0px 0px 5px;
Gabriel Engel's avatar
Gabriel Engel committed
		> .formatting-tips {
			float: right;
			height: 20px;
			font-size: 11px;
Gabriel Engel's avatar
Gabriel Engel committed
			color: #888888;
			padding: 5px 0px 0px 5px;
Gabriel Engel's avatar
Gabriel Engel committed
			display: inline-block;
			white-space: nowrap;
Gabriel Engel's avatar
Gabriel Engel committed
			overflow: hidden;
			&:hover {
				color: #444444;
			}
			q {
				padding: 0 0 0 3px;
				border-left: 3px solid #ccc;
				&:before {
					content: none !important;
				}
			}
			code {
Gabriel Engel's avatar
Gabriel Engel committed
				color: inherit;
				line-height: 13px;
				overflow: hidden;
				vertical-align: top;
				font-size: 10px;
			}
			.hidden-br {
				display: inline-block;
			}
			.icon-level-down:before {
				transform: rotate(90deg);
Gabriel Engel's avatar
Gabriel Engel committed
		}
	}
	.add-user-search {
		height: 100%;
		overflow: hidden;
		display: inline-block;
		vertical-align: top;
		width: 100%;
	}
}

.messages-box {
	position: relative;
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
	margin: 60px 20px 0px 0px;
Gabriel Engel's avatar
Gabriel Engel committed
	width: 100%;
Rafael Caferati's avatar
Rafael Caferati committed
	ul {
Gabriel Engel's avatar
Gabriel Engel committed
	.load-more {
		text-align: center;
		span {
			border: 1px solid #CCC;
			border-radius: 20px;
			padding: 5px 14px;
			background-color: #EEE;
		}
	}
	.start {
		text-align: center;
		margin-top: 12px;
		color: @secondary-font-color;
	}
	.new-message {
		margin: 0 -65px;
		position: absolute;
		background: #428bca;
		border-radius: 20px;
		width: 130px;
		height: 30px;
		text-align: center;
		color: #FFF;
		line-height: 30px;
		font-size: 0.8em;
		cursor: pointer;
		bottom: 8px;
		left: 50%;
		.transition(transform 0.3s ease-out);
		.transform(translateY(0));
		&.not {
			.transform(translateY(150%));
		}
	}
	.message {
		font-size: 14px;
		padding-left: 50px;
		position: relative;
		line-height: 20px;
		margin: 12px 20px 5px;
		margin-top: 12px;
		min-height: 40px;
		&.new-day {
			margin-top: 60px;
		}
		&.new-day:before {
			content: attr(data-date);
			display: block;
			position: absolute;
			top: -30px;
			left: 0;
			width: 100%;
			font-size: 12px;
			font-weight: 600;
			text-align: center;
			border-top: 1px solid #ddd;
			color: @secondary-font-color;
		}
		.edit-message {
			display: none;
			cursor: pointer;
		}
		&.own:hover .edit-message {
			display: inline-block;
		}
		.user {
			display: inline-block;
			font-weight: 600;
			color: #444444;
			margin-right: 5px;
			&:hover {
				color: #333;
			}
		}
		.thumb {
			position: absolute;
			left: 0;
			top: 0;
			display: block;
			width: 40px;
			height: 40px;
		}
		.info {
			font-size: 12px;
			color: #888888;
		}
		&.sequential {
			margin-top: 5px;
			min-height: 20px;
			.user {
				display: none;
			}
			.thumb {
				display: none;
			}
			.info {
				position: absolute;
				text-align: right;
				left: -15px;
				width: 55px;
				.time {
					display: none;
				}
				.edited {
					display: inline-block;
				}
				.edit-message {
					float: left;
					margin-left: 5px;
				}
			}
			&:hover {
				.time {
					display: inline-block;
				}
				.edited {
					display: none;
				}
			}
		}
		.system {
			display: inline-block;
			background-color: #EFEFEF;
			border-radius: 4px;
			padding: 8px 12px;
			font-size: 12px;
			color: @secondary-font-color;
			i {
				margin-right: 5px;
			}
		}
		.avatar-initials {
			line-height: 40px;
		}
Gabriel Engel's avatar
Gabriel Engel committed
		a {
			color: @link-font-color;
			font-weight: 400;
			&:hover {
				color: darken(@link-font-color, 10%);
				text-decoration: underline;
// FLEX-TAB and FLEX-TAB views
	background-color: @secondary-background-color;
	border-left: 1px solid @tertiary-background-color;
	overflow-x: visible;
	max-width: @flex-tab-width;
	.transform(translateX(100%));
	.transition(transform .25s cubic-bezier(.5, 0, .1, 1));
	.control {
		height: 60px;
		position: relative;
		text-align: left;
		z-index: 100;
Rafael Caferati's avatar
Rafael Caferati committed
		padding: 12px 30px 12px;
		background-color: @secondary-background-color;
		> a, > form {
			float: left;
		}
		&:before {
			content: " ";
			height: 1px;
			left: 15px;
			position: absolute;
			background-color: @tertiary-background-color;
Rafael Caferati's avatar
Rafael Caferati committed
		.button {
			min-height: 36px;
			margin: 0 1px;
		}
		.more {
			position: absolute;
Rafael Caferati's avatar
Rafael Caferati committed
			left: 0;
			background-color: @tertiary-background-color;
			width: 30px;
			border-bottom: 1px solid @tertiary-background-color;
Rafael Caferati's avatar
Rafael Caferati committed
			cursor: pointer;
Rafael Caferati's avatar
Rafael Caferati committed
			.transform(translateX(-27px));
			.transition(transform .25s ease-out .475s, background .075s ease-out .5s);
				.arrow {
					.arrow {
						&:before, &:after {
							background-color: #4a4a4a;
						}
					}
				}
			}