Skip to content
Snippets Groups Projects
base.less 43.6 KiB
Newer Older
		width: 100%;
		color: #fff;
		z-index: 110;
		height: @header-min-height;
		background-color: @primary-background-color;
		padding: 15px 15px 0px 15px;
		z-index: 100;
		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;
			color: @secondary-font-color;
			margin-bottom: 1px;
			font-weight: 300;
			padding-right: 3px;
		}
		img {
			display: inline-block;
			width: 90%;
		}
	}
	.content {}
	.search-form {
		.search {
			padding-left: 25px;
		}
		> div {
			position: relative;
		}
		margin-right: 20px;
		.fa {
			display: block;
			position: absolute;
			top: 10px;
			left: 8px;
			color: @secondary-font-color;
		}
	}
	h3 {
		&:extend(.small-title);
		cursor: pointer;
		position: relative;
		text-transform: uppercase;
		font-weight: 500;
		margin: 25px 0 5px 0;
		color: rgba(255, 255, 255, 0.75);
	}
	.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;
		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;
Gabriel Engel's avatar
Gabriel Engel committed
			padding: 4px 25px 4px 5px;
			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;
			color: rgba(255, 255, 255, 0.5);
			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: 5px;
			text-align: right;
			opacity: 0;
			background-color: transparent;
			display: block;
			top: 6px;
			.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);
		}
		input[type="text"] {
			color: #000;
			width: 100%;
			font-size: 12px;
		}
	}
}

.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;
	}
	// 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% - 620px');
		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 {
	.logo {
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;
	.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: 10px 20px 0px 20px;
		background: #fff;
		border-top: 1px solid @tertiary-background-color;
		z-index: 100;
		bottom: 0;
		left: 0;
		width: 100%;
	}
	.message-form {
		> div {
			position: relative;
		}
		textarea {
			display: block;
			width: 100%;
			border: 1px solid #dfdfdf;
			border-radius: 4px;
			box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
			padding-top: 9px;
			padding-bottom: 9px;
			padding-right: 38px;
			overflow-y: hidden;
			resize: none;
		}
		.icon-paper-plane {
			position: absolute;
			top: 4px;
			right: 10px;
			cursor: pointer;
			padding: 8px;
			color: @secondary-font-color;
			&:hover {
				color: @primary-font-color;
			}
		}
		> .users-typing {
			height: 20px;
			font-size: 12px;
			color: #888;
			padding: 5px 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');
	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;
		}
	}
	.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;
	.transform(translateX(100%));
	.transition(transform .25s cubic-bezier(.5, 0, .1, 1));
	.control {
		height: 60px;
		position: relative;
		text-align: left;
		z-index: 10;
		padding: 12px 15px 12px;
		background-color: @secondary-background-color;
		> a, > form {
			float: left;
		}
		&:before {
			content: " ";
			height: 1px;
			left: 15px;
			position: absolute;
			background-color: @tertiary-background-color;
			bottom: 0px;
			.calc(width, ~'100% - 30px');
		}
		.-btn {
			min-height: 36px;
			margin: 0 1px;
		}
		.more {
			position: absolute;
			left: -28px;
			top: 0px;
			background-color: @secondary-background-color;
			border-bottom: 1px solid @tertiary-background-color;
			color: @secondary-font-color;
			&: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;
			}
			&.opened {
				i {
					.transform(rotate(180deg));
				}
			}
		}
		.search-form {
			padding: 0 4px 0 0;
			width: 100%;
			> div {
				position: relative;
			}
			.icon-plus {
				position: absolute;
				top: 11px;
				left: 8px;
				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% - 60px");
		> div {
			.transition(transform .35s cubic-bezier(.5, 0, .1, 1));
		}
		> .-hidden {
			.transform(translateX(100%));
		}
		> .animated {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}
	}
}

.list-view {
	padding: 5px 20px 20px;
	.list {
		display: block;
		position: relative;
	}
	> .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;
			box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
			.avatar-initials {
				line-height: 100px;
			}
		}
	}
	.nav {}
	.info {
		margin-left: 120px;
		white-space: normal;
		.calc(width, ~'100% - 120px');
		h3 {
			font-size: 24px;
			margin-bottom: 8px;
		}
		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;
		}
		.fa {
			margin-right: 3px;
		}
	}
	.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;
		}
		.fa {
			margin-right: 3px;
		}
	}
	.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 {
		margin: -5px 0 10px 0;
		font-size: 12px;
	}
	.views {}
	.recent {}
}

Gabriel Engel's avatar
Gabriel Engel committed
.user-image-status(@color) {
Gabriel Engel's avatar
Gabriel Engel committed
		background-color: darken(@color, 5%);
Gabriel Engel's avatar
Gabriel Engel committed
			background-color: darken(@color, 5%);
.user-image {
	float: left;
	margin: 4px;
	height: 45px;
	width: 45px;
	cursor: pointer;
	background-color: @tertiary-background-color;
	border-radius: 2px;
	font-size: 12px;
	position: relative;
	&:after, &:before {
		content: " ";
		width: 0;
		height: 1px;
		position: absolute;
		z-index: 1;
	}
	&:after {
		right: -3px;
		bottom: -3px;
		.transition(width .15s ease-in);
	}
	&:before {
		left: -3px;
		top: -3px;
		.transition(width .15s ease-in .06s);
	}
	&:hover,
	&.selected {
		&:before, &:after {
			.calc(width, ~'100% + 6px');
		}
		a {
			&:before, &:after {
				.calc(height, ~'100% + 6px');
			}
		}
		&.status-offline {
			.status {
				background-color: @status-offline;
				background-color: @status-online;
				background-color: @status-away;
				background-color: @status-busy;
		.avatar-initials {
			line-height: 45px;
		}
	}
	a {
		display: block;
		width: 100%;
		height: 100%;
		&:before, &:after {
			content: " ";
			width: 1px;
			height: 0;
			position: absolute;
			z-index: 1;
		}
		&:after {
			top: -3px;
			left: -3px;
			.transition(height .15s ease-in .12s);
		}
		&:before {
			right: -3px;
			bottom: -3px;
			.transition(height .15s ease-in .18s);
		}
	}
	.status {
		position: absolute;
		bottom: 1px;
		display: block;
		width: 14px;
		height: 14px;
		border: 3px solid #F8F8F8;
		border-radius: 50%;
		left: -5px;
		z-index: 10;
		.user-image-status(@status-offline);
	}