Skip to content
Snippets Groups Projects
base.less 46.8 KiB
Newer Older
	.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;
		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: 90%;
		}
	}
	.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;
		&.add-room {
			&:hover {
				background-color: rgba(0, 0, 0, 0.1);
Rafael Caferati's avatar
Rafael Caferati committed
				i{
					&:before{
						.transform(rotate(180deg));
					}
					&:after{
						.transform(rotate(-90deg));
					}
				}
Rafael Caferati's avatar
Rafael Caferati committed
				position: absolute;
				right: 5px;
				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;
				}
			}
			&.away {
				a {
					color: #666;
				}
			}
		}
		a {
			display: block;
			border-radius: 2px 0 0 2px;
Rafael Caferati's avatar
Rafael Caferati committed
			padding: 6px 25px 7px 8px;
			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: 6px;
			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);
				}
			}
		}
		i {
			color: rgba(255, 255, 255, 0.35);
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: block;
	padding: 15px 10px 15px 20px;
	background: #fff;
	border-bottom: 1px solid @tertiary-background-color;
	z-index: 100;
	top: 0;
	left: 0;
	width: 99%;
	h2 {
		max-width: 90%;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		font-size: 22px;
		font-weight: 500;
		line-height: 29px;
		.icon-star {
Rafael Caferati's avatar
Rafael Caferati committed
			margin-right: -4px;
		}
		.icon-at,
		.icon-hash {
Rafael Caferati's avatar
Rafael Caferati committed
			margin-right: -7px;
			color: @secondary-font-color;
		}
	.hidden {
Rafael Caferati's avatar
Rafael Caferati committed
		visibility: hidden;
		display: none;
	}
	// input[type='text']{
	// 	.calc(width, ~'100% - 100px');
	// 	vertical-align: top;
	// 	margin-top: 0;
	// }
}

// 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 {
	.fixed-title{
		h2{
			overflow: visible;
		}
	}
Gabriel Engel's avatar
Gabriel Engel committed
	.logo {
		width: 240px;
		vertical-align: text-top;
		margin-top: -5px;
		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;
Gabriel Engel's avatar
Gabriel Engel committed
	.input-message-editing {
Rafael Caferati's avatar
Rafael Caferati committed
		display: block;
		resize: none;
		padding-top: 9px;
		padding-bottom: 9px;
		overflow-y: hidden;
		.calc(width, ~"100% - 16px");
	}
	.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: scroll;
		overflow-x: hidden;
		word-wrap: break-word;
		-webkit-overflow-scrolling: touch;
		.custom-scroll(transparent, #EAEAEA);
	}
	.footer {
		position: absolute;
		padding: 14px 20px 0px 20px;
		border-top: 1px solid @tertiary-background-color;
		height: @footer-min-height;
	.message-popup {
		position: absolute;
		background: #FAFAFA;
		z-index: 101;
		bottom: @footer-min-height;
		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 {
			height: 20px;
			font-size: 12px;
			color: #888;
			padding: 3px 0px 0px 5px;
		}
	}
	.add-user-search {
		height: 100%;
		overflow: hidden;
		display: inline-block;
		vertical-align: top;
		width: 100%;
	}
}

.messages-box {
	position: relative;
	margin: 60px 20px 0px;
	overflow: hidden;
	.calc(width, ~'100% - 20px');
	.calc(height, ~'100% - 120px');
Rafael Caferati's avatar
Rafael Caferati committed
	ul {
		padding: 21px 0 10px;
	}
	.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;
		&.with-thumb {
			margin-top: 12px;
			min-height: 40px;
			.time {
				position: relative;
				left: 4px;
				opacity: 1;
			}
		}
		&:nth-child(1) {
			margin-top: 0;
		}
		.edit-message {
			display: none;
			cursor: pointer;
		}
		&.own:hover .edit-message {
			display: inherit;
		}
		.avatar-initials {
			line-height: 40px;
		}
		> div {
			a {
				color: @primary-background-color;
				font-weight: 500;
				&:hover {
					color: darken(@primary-background-color, 10%);
				}
			}
Rafael Caferati's avatar
Rafael Caferati committed
			ul{
				margin: 0;
				padding: 0;
			}
	}
	.pageView {
		display: table;
		width: 100%;
		text-align: left;
	}
	.system {
		display: inline-block;
		background-color: #EFEFEF;
		border-radius: 4px;
		padding: 8px 12px;
		font-size: 12px;
		color: @secondary-font-color;
		i {
			margin-right: 5px;
		}
	}
	.date {
		text-align: center;
		position: relative;
		margin-top: 12px;
		&:before {
			content: " ";
			height: 1px;
			width: 80%;
			position: absolute;
			left: 10%;
			top: 11px;
			background-color: #DFDFDF;
		}
		span {
			display: inline-block;
			padding: 5px 10px;
			background-color: #FFF;
			position: relative;
			z-index: 1;
			font-size: 12px;
			font-weight: 600;
			color: @secondary-font-color;
		}
	}
	.user {
		display: inline-block;
		font-weight: 600;
		color: #444;
		&:hover {
			color: #333;
		}
	}
	.own {
		.user {
			color: #4c617b;
			&:hover {
				color: #3c4958;
			}
		}
	}
	.time {
		font-size: 12px;
		position: absolute;
		display: inline-block;
		color: #888;
		left: 6px;
		opacity: 0;
	}
	.thumb {
		position: absolute;
		left: 0;
		top: 0;
		display: block;
		width: 40px;
		height: 40px;
		background-color: #FFF;
		border-radius: 2px;
		background-image: url(/images/no_picture.png);
		background-size: 100% auto;
		background-position: 50% 50%;
	}
}

.load-more {
	text-align: center;
	span {
		border: 1px solid #CCC;
		border-radius: 20px;
		padding: 5px 14px;
		background-color: #EEE;
	}
}

.chat-begin {
	text-align: center;
	position: relative;
	margin-top: 12px;
	&:before {
		content: " ";
		height: 1px;
		width: 80%;
		position: absolute;
		left: 10%;
		top: 11px;
		background-color: #DFDFDF;
	}
	span {
		display: inline-block;
		padding: 5px 10px;
		background-color: #FFF;
		position: relative;
		z-index: 1;
		font-size: 12px;
		font-weight: 600;
		color: @secondary-font-color;
	}
}

// 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: @secondary-background-color;
			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 .3s ease-out .4s);
			&:hover {
				color: @primary-font-color;
			}
			i {
				.transform-origin(50%, 50%, 0);
				.transition(transform .3s ease-out);
				height: 12.5px;
				vertical-align: top;
				margin-top: 1px;
			}
Rafael Caferati's avatar
Rafael Caferati committed
			.flex-opened &{
				.transition-delay(0s);
				.transform(translateX(0));
			}
		}
		.search-form {
			padding: 0 4px 0 0;
			width: 100%;
			> div {
				position: relative;
			}
			.icon-plus {
Rafael Caferati's avatar
Rafael Caferati committed
				font-size: 13px;
				color: @secondary-font-color;
			}
		}
	}
	.content {
		&:extend(.fill-all);
		.custom-scroll(transparent, #DADADA);
		margin-top: 60px;
		overflow-y: scroll;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		.calc(height, ~"100% - " @footer-min-height + @header-min-height);
			.transition(transform .45s cubic-bezier(.5, 0, 0, 1), opacity .125s ease-out .1s);
Rafael Caferati's avatar
Rafael Caferati committed
			opacity: 0;
		}
		> .animated {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}
	}
	footer{
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 9px 15px 0px 15px;
		z-index: 100;
		text-align: right;
		height: @footer-min-height;
	}
	.social{
		text-align: center;
		h4{
			font-weight: 300;
			position: absolute;
			width: 100%;
			top: -12px;
			left: 0;
			font-size: 13px;
		}
		.share {
			border-radius: 50%;
			min-height: 40px;
			line-height: 20px;
			&:before {
				border-radius: 50%;
			}
			span {
				display: none;
			}
		}
	}
Rafael Caferati's avatar
Rafael Caferati committed
	padding: 5px 30px 20px;
		width: 100%;
		height: 100%;
	}
	> .status {
		margin: 5px 0 15px;
		h2 {
			font-size: 20px;
			line-height: 25px;
			font-weight: 300;
		}
		p {
			font-size: 12px;
			color: @secondary-font-color;
			margin-top: 4px;
		}
		b {
			font-weight: 600;
		}
		.see-all {
			float: right;
			color: @secondary-font-color;
			border: none;
			background-color: transparent;
		}
	}
}

.user-view {
	padding: 20px;
	.about {
		width: 100%;
		margin-bottom: 20px;
	}
	.thumb {
		float: left;
		width: 100px;
		height: 100px;
Rafael Caferati's avatar
Rafael Caferati committed
			border-radius: 0;
			box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
			.avatar-initials {
				line-height: 100px;
			}
Rafael Caferati's avatar
Rafael Caferati committed
	nav {
		margin-left: -4px;
		.back {
Rafael Caferati's avatar
Rafael Caferati committed
			float: right;
		}
	}
	.info {
		margin-left: 120px;
		white-space: normal;
		.calc(width, ~'100% - 120px');
		h3 {
			font-size: 24px;
			margin-bottom: 8px;
Rafael Caferati's avatar
Rafael Caferati committed
			line-height: 22px;
		}
		p {
			line-height: 18px;
			font-size: 12px;
			font-weight: 300;
			color: @secondary-font-color;
		}
	}
	.stats {
		li {
			margin-bottom: 3px;
			display: inline-block;
			padding: 4px 6px;
			background-color: #e9e9e9;
			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;
			background-color: #CDCDCD;
			position: absolute;
		}
	}
	.tags {
		li {
			display: inline-block;
			padding: 4px;
			background-color: #CDCDCD;
			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;
			color: #6f6f6f;
			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;
				background-color: #e9e9e9;
				text-decoration: none;
				color: #333;
				&:before {
					opacity: 1;
				}
			}
			span {
				font-weight: 300;
			}
		}
	}
	.contact-code {