_gradebook.scss 5.36 KB
Newer Older
1 2 3
$cell-border-color: #e1e1e1;
$table-border-color: #c8c8c8;

4 5 6 7 8 9 10 11 12
.no-select {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

13 14 15 16
div.gradebook-wrapper {

  section.gradebook-content {
    @extend .content;
17 18
    display: block;
    width: 100%;
19
    @include clearfix();
20

21
    .student-search {
22
    	padding: 0 $baseline 0 ($baseline*0.75);
23 24 25
    }

    .student-search-field {
Tom Giannattasio committed
26
    	width: 100%;
27
    	height: 27px;
28
    	padding: 0 ($baseline*0.75) 0 35px;
29
    	@include box-sizing(border-box);
30 31
    	border-radius: 13px;
    	border: 1px solid $table-border-color;
32
    	background: url('#{$static-path}/images/search-icon.png') no-repeat 9px center $gray-l6;
33 34
    	font-family: $sans-serif;
    	font-size: 11px;
35
    	box-shadow: 0 1px 4px rgba(0, 0, 0, .12) inset;
36
    	@include transition(border-color .15s linear 0s);
37 38 39 40 41 42 43 44 45 46 47

    	&::-webkit-input-placeholder,
    	&::-moz-input-placeholder {
    		font-style: italic;
    	}

    	&:focus {
    		border-color: #1d9dd9;
    	}
    }

Tom Giannattasio committed
48 49
    .student-table {
		float: left;
Tom Giannattasio committed
50
		width: 24%;
Tom Giannattasio committed
51 52 53 54 55 56 57 58
		border-radius: 3px 0 0 3px;
		color: #3c3c3c;

		th {
			height: 50px;
		}

		tr:first-child td {
59
			border-top: 1px solid $table-border-color;
60
			border-radius: ($baseline/4) 0 0 0;
61 62 63
		}

		tr:last-child td {
64
			border-bottom: 1px solid $table-border-color;
65
			border-radius: 0 0 0 ($baseline/4);
Tom Giannattasio committed
66 67 68 69
		}

		td {
			height: 50px;
70
			padding-left: $baseline;
71 72
			border-bottom: 1px solid $cell-border-color;
			border-left: 1px solid $table-border-color;
73
			background: $gray-l5;
Tom Giannattasio committed
74 75 76 77
			font-size: 13px;
			line-height: 50px;
		}

78
		tr:nth-child(odd) td {
Tom Giannattasio committed
79 80 81 82
			background-color: #fbfbfb;
		}
	}

83 84 85 86 87 88 89 90 91 92
	.grade-book-footer {
	    position: relative;
	    top: 15px;
		width: 100%;
		border: 0;
		box-shadow: 0;
		text-align: center;
	    display: inline-block;
	}

Tom Giannattasio committed
93 94 95
	.grades {
		position: relative;
		float: left;
Tom Giannattasio committed
96
		width: 76%;
97 98
		overflow-x: auto;
		overflow-y: hidden;
99 100 101

		.left-shadow,
		.right-shadow {
102
			@extend %ui-depth4;
103 104 105 106 107 108 109 110
			position: absolute;
			top: 0;
			width: 20px;
			pointer-events: none;
		}

		.left-shadow {
			left: 0;
111 112 113 114 115
			background-image: -webkit-gradient(linear, left, $shadow-l1, $transparent 20%), -webkit-gradient(linear, left, $shadow-l1, $transparent);
			background-image:  -webkit-linear-gradient(left, $shadow-l1, $transparent 20%), -webkit-linear-gradient(left, $shadow-l1, $transparent);
			background-image:     -moz-linear-gradient(left, $shadow-l1, $transparent 20%), -moz-linear-gradient(left, $shadow-l1, $transparent);
			background-image:      -ms-linear-gradient(left, $shadow-l1, $transparent 20%), -ms-linear-gradient(left, $shadow-l1, $transparent);
			background-image:       -o-linear-gradient(left, $shadow-l1, $transparent 20%), -o-linear-gradient(left, $shadow-l1, $transparent);
116 117 118 119
		}

		.right-shadow {
			right: 0;
120 121 122 123 124
			background-image: -webkit-gradient(linear, right, $shadow-l1, $transparent 20%), -webkit-gradient(linear, right, $shadow-l1, $transparent);
			background-image:  -webkit-linear-gradient(right, $shadow-l1, $transparent 20%), -webkit-linear-gradient(right, $shadow-l1, $transparent);
			background-image:     -moz-linear-gradient(right, $shadow-l1, $transparent 20%), -moz-linear-gradient(right, $shadow-l1, $transparent);
			background-image:      -ms-linear-gradient(right, $shadow-l1, $transparent 20%), -ms-linear-gradient(right, $shadow-l1, $transparent);
			background-image:       -o-linear-gradient(right, $shadow-l1, $transparent 20%), -o-linear-gradient(right, $shadow-l1, $transparent);
125
		}
Tom Giannattasio committed
126 127 128 129 130 131 132 133
	}

	.grade-table {
		position: absolute;
		top: 0;
		left: 0;
		width: 1000px;
		cursor: move;
134 135
		@include transition(none);
		@include user-select(none);
Tom Giannattasio committed
136 137 138 139 140 141 142 143

		td,
		th {
			width: 50px;
			text-align: center;
		}

		thead th {
144
			position: relative;
Tom Giannattasio committed
145
			height: 50px;
146
			@include linear-gradient(top, $cell-border-color, #ddd);
Tom Giannattasio committed
147 148 149 150
			font-size: 10px;
			line-height: 10px;
			font-weight: bold;
			text-align: center;
151
			box-shadow: 0 1px 0 $table-border-color inset, 0 2px 0 rgba(255, 255, 255, .7) inset;
152
			border-left: 1px solid $gray-l3;
153

Tom Giannattasio committed
154
			&:first-child {
155
				border-radius: 5px 0 0 0;
156
				box-shadow: 1px 1px 0 $table-border-color inset, 1px 2px 0 rgba(255, 255, 255, .7) inset;
157
				border-left: none;
Tom Giannattasio committed
158 159 160 161
			}

			&:last-child {
				border-radius: 0 3px 0 0;
162
				box-shadow: -1px 1px 0 $table-border-color inset, -1px 2px 0 rgba(255, 255, 255, .7) inset;
Tom Giannattasio committed
163 164 165 166 167 168 169 170 171 172 173 174 175 176
			}

			.assignment {
				margin: 9px 0;
			}

			.type,
			.number,
			.max {
				display: block;
			}

			.max {
				height: 12px;
177
				@include linear-gradient(top, #c6c6c6, #bababa);
Tom Giannattasio committed
178 179
				font-size: 9px;
				line-height: 12px;
180
				color: $white;
Tom Giannattasio committed
181 182 183
			}
		}

184 185 186 187
		tr {
			border-right: 1px solid $table-border-color;
		}

Tom Giannattasio committed
188
		tr:first-child td {
189
			border-top: 1px solid $table-border-color;
190 191 192
		}

		tr:last-child td {
193
			border-bottom: 1px solid $table-border-color;
Tom Giannattasio committed
194 195 196 197
		}

		td {
			height: 50px;
198
			border-bottom: 1px solid $cell-border-color;
199
			background: #f3f3f3;
Tom Giannattasio committed
200 201
			font-size: 13px;
			line-height: 50px;
202
			border-left: 1px solid $cell-border-color;
Tom Giannattasio committed
203 204
		}

205
		tr:nth-child(odd) td {
Tom Giannattasio committed
206 207 208 209
			background-color: #fbfbfb;
		}
	}

210 211 212 213
    h1 {
      @extend .top-header;
    }
  }
214 215 216

	.student-table tr:hover td,
	.grade-table tr:hover td,
217 218
    .student-table tr:focus td,
	.grade-table tr:focus td,
219 220 221 222 223 224 225 226 227 228
	.student-table tr.highlight td,
	.grade-table tr.highlight td {
		border-color: #74b7d6;
		@include linear-gradient(#8ed6f7, #76cbf4);
		color: #333;

		a {
			color: #333;
		}
	}
Tom Giannattasio committed
229 230 231
}