summaryrefslogtreecommitdiffstats
path: root/css/_app-content-list.scss
blob: fd577cd9df27bb525e8aec35353e42f70199c60b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/* app content list & detail view */
/* TO BE MOVED TO CORE apps.css ONCE STANDARDIZED ACROSS APPS */
/* DO NOT MAKE ANY CHANGES SPECIFIC TO CONTACTS HERE! */

.app-content-list {
	width: 30%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	border-right: 1px solid nc-darken($color-main-background, 8%);
}

.app-content-detail {
	position: absolute;
	top: 0;
	right: 0;
	width: 70%;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
}

.app-content-list-button {
	display: block;
	margin: 10px auto;
	padding: 10px;
}

.app-content-list-item {
	position: relative;
	height: 68px;
	border-top: 1px solid nc-darken($color-main-background, 8%);
	cursor: pointer;
}

.app-content-list-item:hover,
.app-content-list-item:focus,
.app-content-list-item.active {
	background-color: nc-darken($color-main-background, 6%);
}

.app-content-list-item-link {
	display: block;
	height: 100%;
}

.app-content-list-item-icon {
	position: absolute;
	display: inline-block;
	left: 6px;
	top: 14px;
}

.app-content-list-item-star {
	position: absolute;
	display: none; /* change to inline-block when we implement it */
	left: 16px;
	top: 28px;
	padding: 20px;
	background-size: 16px;
	z-index: 100;
}

.app-content-list-item-line-one,
.app-content-list-item-line-two {
	position: absolute;
	display: inline-block;
	width: 100%;
	padding: 12px;
	padding-left: 50px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.app-content-list-item-line-one.no-line-two {
	padding-top: 24px;
	padding-bottom: 24px;
}

.app-content-list-item-line-two {
	top: 25px;
	opacity: .5;
}

#app-navigation-toggle-back {
	display: none;
}

/* Mobile width < 768px */
@media only screen and (max-width: 768px) {

	/* full width for message list on mobile */
	.app-content-list {
		width: 100%;
		background: $color-main-background;
		position: relative;
		z-index: 100;
	}

	/* overlay message detail on top of message list */
	.app-content-detail {
		background: $color-main-background;
		width: 100%;
		left: 0;
		height: 100%;
		top: 0;
		box-shadow: 0 0 100px rgba(100, 100, 100, .9);
		position: absolute;
	}

	#app-navigation-toggle.showdetails {
		transform: translate(-50px, 0);
	}

	#app-navigation-toggle-back {
		position: fixed;
		display: inline-block !important;
		top: 45px;
		left: 0;
		width: 44px;
		height: 44px;
		z-index: 149;
		background-color: rgba(255, 255, 255, .7);
		cursor: pointer;
		opacity: .6;
		transform: rotate(90deg);
	}

	/* end of media query */
}