_gradebook.scss 5.11 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
    	outline: none;
28
    	@include transition(border-color .15s linear 0s);
29 30 31 32 33 34 35 36 37 38 39

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

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

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

		th {
			height: 50px;
		}

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

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

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

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

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

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

		.left-shadow {
			left: 0;
92 93 94 95 96
			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));
97 98 99 100
		}

		.right-shadow {
			right: 0;
101 102 103 104 105
			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));
106
		}
Tom Giannattasio committed
107 108 109 110 111 112 113 114
	}

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

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

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

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

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

			.assignment {
				margin: 9px 0;
			}

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

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

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

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

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

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

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

191 192 193 194
    h1 {
      @extend .top-header;
    }
  }
195 196 197 198 199 200 201 202 203 204 205 206 207

	.student-table tr:hover td,
	.grade-table tr:hover td,
	.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
208 209 210
}