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

4 5 6 7
div.gradebook-wrapper {

  section.gradebook-content {
    @extend .content;
8 9 10
    display: block;
    width: 100%;
    @include clearfix;
11

12
    .student-search {
Tom Giannattasio committed
13
    	padding: 0 20px 0 15px;
14 15 16
    }

    .student-search-field {
Tom Giannattasio committed
17
    	width: 100%;
18
    	height: 27px;
Tom Giannattasio committed
19
    	padding: 0 15px 0 35px;
20
    	@include box-sizing(border-box);
21 22
    	border-radius: 13px;
    	border: 1px solid $table-border-color;
Tom Giannattasio committed
23
    	background: url(../images/search-icon.png) no-repeat 9px center #f6f6f6;
24 25
    	font-family: $sans-serif;
    	font-size: 11px;
26
    	box-shadow: 0 1px 4px rgba(0, 0, 0, .12) inset;
27
    	@include transition(border-color .15s linear 0s);
28 29 30 31 32 33 34 35 36 37 38

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

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

Tom Giannattasio committed
39 40
    .student-table {
		float: left;
Tom Giannattasio committed
41
		width: 24%;
Tom Giannattasio committed
42 43 44 45 46 47 48 49
		border-radius: 3px 0 0 3px;
		color: #3c3c3c;

		th {
			height: 50px;
		}

		tr:first-child td {
50
			border-top: 1px solid $table-border-color;
51 52 53 54
			border-radius: 5px 0 0 0;
		}

		tr:last-child td {
55
			border-bottom: 1px solid $table-border-color;
56
			border-radius: 0 0 0 5px;
Tom Giannattasio committed
57 58 59 60 61
		}

		td {
			height: 50px;
			padding-left: 20px;
62 63
			border-bottom: 1px solid $cell-border-color;
			border-left: 1px solid $table-border-color;
64
			background: #f3f3f3;
Tom Giannattasio committed
65 66 67 68
			font-size: 13px;
			line-height: 50px;
		}

69
		tr:nth-child(odd) td {
Tom Giannattasio committed
70 71 72 73 74 75 76
			background-color: #fbfbfb;
		}
	}

	.grades {
		position: relative;
		float: left;
Tom Giannattasio committed
77
		width: 76%;
Tom Giannattasio committed
78
		overflow: hidden;
79 80 81 82 83 84 85 86 87 88 89 90

		.left-shadow,
		.right-shadow {
			position: absolute;
			top: 0;
			z-index: 9999;
			width: 20px;
			pointer-events: none;
		}

		.left-shadow {
			left: 0;
91 92 93 94 95
			background-image: -webkit-gradient(linear, left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -webkit-gradient(linear, left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
			background-image:  -webkit-linear-gradient(left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -webkit-linear-gradient(left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
			background-image:     -moz-linear-gradient(left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -moz-linear-gradient(left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
			background-image:      -ms-linear-gradient(left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -ms-linear-gradient(left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
			background-image:       -o-linear-gradient(left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -o-linear-gradient(left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
96 97 98 99
		}

		.right-shadow {
			right: 0;
100 101 102 103 104
			background-image: -webkit-gradient(linear, right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -webkit-gradient(linear, right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
			background-image:  -webkit-linear-gradient(right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -webkit-linear-gradient(right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
			background-image:     -moz-linear-gradient(right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -moz-linear-gradient(right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
			background-image:      -ms-linear-gradient(right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -ms-linear-gradient(right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
			background-image:       -o-linear-gradient(right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 20%), -o-linear-gradient(right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
105
		}
Tom Giannattasio committed
106 107 108 109 110 111 112 113
	}

	.grade-table {
		position: absolute;
		top: 0;
		left: 0;
		width: 1000px;
		cursor: move;
114 115
		@include transition(none);
		@include user-select(none);
Tom Giannattasio committed
116 117 118 119 120 121 122 123

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

		thead th {
124
			position: relative;
Tom Giannattasio committed
125
			height: 50px;
126
			@include linear-gradient(top, $cell-border-color, #ddd);
Tom Giannattasio committed
127 128 129 130
			font-size: 10px;
			line-height: 10px;
			font-weight: bold;
			text-align: center;
131
			box-shadow: 0 1px 0 $table-border-color inset, 0 2px 0 rgba(255, 255, 255, .7) inset;
132 133
			border-left: 1px solid #ccc;

Tom Giannattasio committed
134
			&:first-child {
135
				border-radius: 5px 0 0 0;
136
				box-shadow: 1px 1px 0 $table-border-color inset, 1px 2px 0 rgba(255, 255, 255, .7) inset;
137
				border-left: none;
Tom Giannattasio committed
138 139 140 141
			}

			&:last-child {
				border-radius: 0 3px 0 0;
142
				box-shadow: -1px 1px 0 $table-border-color inset, -1px 2px 0 rgba(255, 255, 255, .7) inset;
Tom Giannattasio committed
143 144 145 146 147 148 149 150 151 152 153 154 155 156
			}

			.assignment {
				margin: 9px 0;
			}

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

			.max {
				height: 12px;
157
				@include linear-gradient(top, #c6c6c6, #bababa);
Tom Giannattasio committed
158 159 160 161 162 163
				font-size: 9px;
				line-height: 12px;
				color: #fff;
			}
		}

164 165 166 167
		tr {
			border-right: 1px solid $table-border-color;
		}

Tom Giannattasio committed
168
		tr:first-child td {
169
			border-top: 1px solid $table-border-color;
170 171 172
		}

		tr:last-child td {
173
			border-bottom: 1px solid $table-border-color;
Tom Giannattasio committed
174 175 176 177
		}

		td {
			height: 50px;
178
			border-bottom: 1px solid $cell-border-color;
179
			background: #f3f3f3;
Tom Giannattasio committed
180 181
			font-size: 13px;
			line-height: 50px;
182
			border-left: 1px solid $cell-border-color;
Tom Giannattasio committed
183 184
		}

185
		tr:nth-child(odd) td {
Tom Giannattasio committed
186 187 188 189
			background-color: #fbfbfb;
		}
	}

190 191 192 193
    h1 {
      @extend .top-header;
    }
  }
194 195 196

	.student-table tr:hover td,
	.grade-table tr:hover td,
197 198
    .student-table tr:focus td,
	.grade-table tr:focus td,
199 200 201 202 203 204 205 206 207 208
	.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
209 210 211
}