Commit a496cc0a by Brian Talbot

studio - Sass Cleanup: moved all page/view specific css to their own views and…

studio - Sass Cleanup: moved all page/view specific css to their own views and created forms specific sheet
parent 524db5e3
......@@ -350,10 +350,11 @@ h1 {
// layout - grandfathered
.main-wrapper {
position: relative;
margin: 0 40px;
margin: 40px;
}
.inner-wrapper {
@include clearfix();
position: relative;
max-width: 1280px;
margin: auto;
......@@ -363,6 +364,12 @@ h1 {
}
}
.main-column {
clear: both;
float: left;
width: 70%;
}
.sidebar {
float: right;
width: 28%;
......@@ -378,86 +385,6 @@ h1 {
// ====================
// forms
input[type="text"],
input[type="email"],
input[type="password"],
textarea.text {
padding: 6px 8px 8px;
@include box-sizing(border-box);
border: 1px solid $mediumGrey;
border-radius: 2px;
@include linear-gradient($lightGrey, tint($lightGrey, 90%));
background-color: $lightGrey;
@include box-shadow(0 1px 2px rgba(0, 0, 0, .1) inset);
font-family: 'Open Sans', sans-serif;
font-size: 11px;
color: $baseFontColor;
outline: 0;
&::-webkit-input-placeholder,
&:-moz-placeholder,
&:-ms-input-placeholder {
color: #979faf;
}
&:focus {
@include linear-gradient($paleYellow, tint($paleYellow, 90%));
outline: 0;
}
}
// forms - specific
input.search {
padding: 6px 15px 8px 30px;
@include box-sizing(border-box);
border: 1px solid $darkGrey;
border-radius: 20px;
background: url(../img/search-icon.png) no-repeat 8px 7px #edf1f5;
font-family: 'Open Sans', sans-serif;
color: $baseFontColor;
outline: 0;
&::-webkit-input-placeholder {
color: #979faf;
}
}
label {
font-size: 12px;
}
code {
padding: 0 4px;
border-radius: 3px;
background: #eee;
font-family: Monaco, monospace;
}
.CodeMirror {
font-size: 13px;
border: 1px solid $darkGrey;
background: #fff;
}
.text-editor {
width: 100%;
min-height: 80px;
padding: 10px;
@include box-sizing(border-box);
border: 1px solid $mediumGrey;
@include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3));
background-color: #edf1f5;
@include box-shadow(0 1px 2px rgba(0, 0, 0, 0.1) inset);
font-family: Monaco, monospace;
}
// ====================
// UI - chrome
// ====================
// UI - actions
.new-unit-item,
.new-subsection-item,
......@@ -839,13 +766,3 @@ body.hide-wip {
display: none;
}
}
\ No newline at end of file
// ====================
// needed fudges for now
body.dashboard {
.my-classes {
margin-top: $baseline;
}
}
\ No newline at end of file
......@@ -24,6 +24,7 @@
@import 'elements/header';
@import 'elements/footer';
@import 'elements/navigation';
@import 'elements/forms';
@import 'elements/modal';
@import 'elements/alerts';
@import 'elements/jquery-ui-calendar';
......
// studio - global footer
// studio - elements - global footer
// ====================
.wrapper-footer {
......
// studio - elements - forms
// ====================
// forms - general
input[type="text"],
input[type="email"],
input[type="password"],
textarea.text {
padding: 6px 8px 8px;
@include box-sizing(border-box);
border: 1px solid $mediumGrey;
border-radius: 2px;
@include linear-gradient($lightGrey, tint($lightGrey, 90%));
background-color: $lightGrey;
@include box-shadow(0 1px 2px rgba(0, 0, 0, .1) inset);
font-family: 'Open Sans', sans-serif;
font-size: 11px;
color: $baseFontColor;
outline: 0;
&::-webkit-input-placeholder,
&:-moz-placeholder,
&:-ms-input-placeholder {
color: #979faf;
}
&:focus {
@include linear-gradient($paleYellow, tint($paleYellow, 90%));
outline: 0;
}
}
// forms - specific
input.search {
padding: 6px 15px 8px 30px;
@include box-sizing(border-box);
border: 1px solid $darkGrey;
border-radius: 20px;
background: url(../img/search-icon.png) no-repeat 8px 7px #edf1f5;
font-family: 'Open Sans', sans-serif;
color: $baseFontColor;
outline: 0;
&::-webkit-input-placeholder {
color: #979faf;
}
}
label {
font-size: 12px;
}
code {
padding: 0 4px;
border-radius: 3px;
background: #eee;
font-family: Monaco, monospace;
}
.CodeMirror {
font-size: 13px;
border: 1px solid $darkGrey;
background: #fff;
}
.text-editor {
width: 100%;
min-height: 80px;
padding: 10px;
@include box-sizing(border-box);
border: 1px solid $mediumGrey;
@include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3));
background-color: #edf1f5;
@include box-shadow(0 1px 2px rgba(0, 0, 0, 0.1) inset);
font-family: Monaco, monospace;
}
\ No newline at end of file
// studio - global header
// studio - elements - global header
// ====================
.wrapper-header {
......
// studio - views - assets
// ====================
.uploads {
body.course.uploads {
input.asset-search-input {
float: left;
width: 260px;
......
// studio - views - user dashboard
// ====================
.class-list {
body.dashboard {
.my-classes {
margin-top: $baseline;
}
.class-list {
margin-top: 20px;
border-radius: 3px;
border: 1px solid $darkGrey;
......@@ -61,9 +67,9 @@
pointer-events: auto;
}
}
}
}
.new-course {
.new-course {
padding: 15px 25px;
margin-top: 20px;
border-radius: 3px;
......@@ -114,4 +120,5 @@
.new-course-cancel {
@include white-button;
}
}
}
\ No newline at end of file
// studio - views - course export
// ====================
.export {
body.course.export {
.export-overview {
@extend .window;
@include clearfix;
......@@ -121,6 +122,4 @@
}
}
}
}
\ No newline at end of file
// studio - views - course import
// ====================
.import {
body.course.import {
.import-overview {
@extend .window;
@include clearfix;
......
// studio - views - how it works
// ====================
.index {
body.index {
&.not-signedin {
......
// studio - views - course outline
// ====================
input.courseware-unit-search-input {
body.course.outline {
input.courseware-unit-search-input {
float: left;
width: 260px;
background-color: #fff;
}
}
.branch {
.branch {
.section-item {
@include clearfix();
......@@ -128,7 +130,7 @@ input.courseware-unit-search-input {
}
.courseware-section {
.courseware-section {
position: relative;
background: #fff;
border-radius: 3px;
......@@ -519,9 +521,9 @@ input.courseware-unit-search-input {
}
}
}
}
}
.toggle-button-sections {
.toggle-button-sections {
display: none;
position: relative;
float: right;
......@@ -547,29 +549,29 @@ input.courseware-unit-search-input {
.label {
display: inline-block;
}
}
}
.new-section-name,
.new-subsection-name-input {
.new-section-name,
.new-subsection-name-input {
width: 515px;
}
}
.new-section-name-save,
.new-subsection-name-save {
.new-section-name-save,
.new-subsection-name-save {
@include blue-button;
padding: 4px 20px 7px;
margin: 0 5px;
color: #fff !important;
}
}
.new-section-name-cancel,
.new-subsection-name-cancel {
.new-section-name-cancel,
.new-subsection-name-cancel {
@include white-button;
padding: 4px 20px 7px;
color: #8891a1 !important;
}
}
.dummy-calendar {
.dummy-calendar {
display: none;
position: absolute;
top: 55px;
......@@ -577,26 +579,13 @@ input.courseware-unit-search-input {
z-index: 9999;
border: 1px solid #3C3C3C;
@include box-shadow(0 1px 15px rgba(0, 0, 0, .2));
}
.unit-name-input {
padding: 20px 40px;
label {
display: block;
}
input {
width: 100%;
font-size: 20px;
}
}
.preview {
.preview {
background: url(../img/preview.jpg) center top no-repeat;
}
}
.edit-subsection-publish-settings {
.edit-subsection-publish-settings {
display: none;
position: fixed;
top: 100px;
......@@ -648,17 +637,17 @@ input.courseware-unit-search-input {
.cancel-button {
font-size: 16px;
}
}
}
.collapse-all-button {
.collapse-all-button {
float: right;
margin-top: 10px;
font-size: 13px;
color: $darkGrey;
}
}
// sort/drag and drop
.ui-droppable {
// sort/drag and drop
.ui-droppable {
@include transition (padding 0.5s ease-in-out 0s);
min-height: 20px;
padding: 0;
......@@ -666,9 +655,9 @@ input.courseware-unit-search-input {
&.dropover {
padding: 15px 0;
}
}
}
.ui-draggable-dragging {
.ui-draggable-dragging {
@include box-shadow(0 1px 2px rgba(0, 0, 0, .3));
border: 1px solid $darkGrey;
opacity : 0.2;
......@@ -683,9 +672,9 @@ input.courseware-unit-search-input {
.new-unit-item {
display: none;
}
}
}
ol.ui-droppable .branch:first-child .section-item {
ol.ui-droppable .branch:first-child .section-item {
border-top: none;
}
}
\ No newline at end of file
// studio - views - course static pages
// ====================
.static-pages {
body.course.static-pages {
.new-static-page-button {
@include grey-button;
display: block;
......
// studio - views - course subsection
// ====================
.subsection .main-wrapper {
margin: 40px;
}
body.course.subsection {
.subsection .inner-wrapper {
@include clearfix();
}
.unit-settings {
.window-contents {
padding: 10px 20px;
}
.unit-actions {
border-bottom: none;
padding-bottom: 0;
}
.published-alert {
display: none;
padding: 10px;
border: 1px solid #edbd3c;
border-radius: 3px;
background: #fbf6e1;
font-size: 14px;
line-height: 1.4;
div {
margin-top: 15px;
}
}
input[type="radio"] {
margin-right: 7px;
}
.status {
font-size: 12px;
strong {
font-weight: 700;
}
}
.preview-button, .view-button {
@include white-button;
margin-bottom: 10px;
}
.publish-button {
@include orange-button;
}
.delete-button {
@include blue-button;
}
.delete-draft {
display: inline-block;
}
.delete-button,
.preview-button,
.publish-button,
.view-button {
font-size: 11px;
margin-top: 10px;
padding: 6px 15px 8px;
}
}
.unit-history {
&.collapsed {
h4 {
border-bottom: none;
border-radius: 3px;
}
.window-contents {
display: none;
}
}
ol {
border: 1px solid #ced2db;
.subsection-body {
li {
display: block;
padding: 6px 8px 8px 10px;
background: #edf1f5;
font-size: 12px;
&:hover {
background: #fffcf1;
.item-actions {
display: block;
}
}
&.checked {
background: #d1dae3;
}
.item-actions {
display: none;
}
input[type="radio"] {
margin-right: 7px;
}
}
}
}
.unit-location {
.url {
width: 100%;
margin-bottom: 10px;
@include box-shadow(none);
}
.draft-tag,
.hidden-tag,
.private-tag,
.has-new-draft-tag {
font-size: 8px;
}
.window-contents > ol {
@include tree-view;
.section-item {
display: inline-block;
width: 100%;
font-size: 11px;
padding: 2px 8px 4px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
@include box-sizing(border-box);
}
ol {
.section-item {
padding-left: 20px;
}
.new-unit-item {
margin-left: 20px;
}
}
ol ol {
.section-item {
padding-left: 34px;
}
.new-unit-item {
margin: 0 0 10px 41px;
}
}
}
}
.subsection-body {
padding: 32px 40px;
@include clearfix;
......@@ -104,9 +255,9 @@
vertical-align: middle;
}
}
}
}
.subsection-name-input {
.subsection-name-input {
label {
display: block;
}
......@@ -115,10 +266,10 @@
width: 100%;
font-size: 20px;
}
}
}
.scheduled-date-input,
.due-date-input {
.scheduled-date-input,
.due-date-input {
@include clearfix;
.date-input,
......@@ -138,9 +289,9 @@
font-size: 11px;
color: #999;
}
}
}
.due-date-input {
.due-date-input {
label {
display: inline-block !important;
margin-right: 10px;
......@@ -160,9 +311,9 @@
.remove-date {
display: block;
}
}
}
.row.visibility {
.row.visibility {
label {
display: inline-block !important;
margin-right: 10px;
......@@ -189,9 +340,9 @@
background-position: 0 -5px;
}
}
}
}
.gradable {
.gradable {
label {
display: inline-block;
......@@ -295,4 +446,5 @@
}
}
}
}
}
\ No newline at end of file
// studio - views - course unit
// studio - views - unit
// ====================
.unit .main-wrapper {
body.course.unit {
.unit .main-wrapper {
@include clearfix();
margin: 40px;
}
}
//Problem Selector tab menu requirements
.js .tabs .tab {
//Problem Selector tab menu requirements
.js .tabs .tab {
display: none;
}
//end problem selector reqs
}
//end problem selector reqs
.main-column {
.main-column {
clear: both;
float: left;
width: 70%;
}
}
.unit-body.published {
.unit-body.published {
.components > li {
border: none;
......@@ -26,9 +28,23 @@
padding: 0 20px;
}
}
}
}
.unit-body {
.unit-name-input {
padding: 20px 40px;
label {
display: block;
}
input {
width: 100%;
font-size: 20px;
}
}
.unit-body {
.breadcrumbs {
border-radius: 3px 3px 0 0;
border-bottom: 1px solid #cbd1db;
......@@ -445,9 +461,9 @@
margin: 15px 8px 0 0;
}
}
}
}
.unit-settings {
.unit-settings {
.window-contents {
padding: 10px 20px;
}
......@@ -508,9 +524,9 @@
margin-top: 10px;
padding: 6px 15px 8px;
}
}
}
.unit-history {
.unit-history {
&.collapsed {
h4 {
border-bottom: none;
......@@ -552,9 +568,9 @@
}
}
}
}
}
.unit-location {
.unit-location {
.url {
width: 100%;
margin-bottom: 10px;
......@@ -602,9 +618,9 @@
}
}
}
}
}
.edit-state-draft {
.edit-state-draft {
.visibility,
.edit-draft-message,
......@@ -615,9 +631,9 @@
.published-alert {
display: block;
}
}
}
.edit-state-public {
.edit-state-public {
.delete-draft,
.component-actions,
.new-component-item,
......@@ -634,9 +650,9 @@
.drag-handle {
display: none !important;
}
}
}
.edit-state-private {
.edit-state-private {
.delete-draft,
.publish-draft,
.editing-draft-alert,
......@@ -644,10 +660,10 @@
.view-button {
display: none;
}
}
}
// editing units from courseware
body.unit {
// editing units from courseware
body.unit {
.component {
padding-top: 30px;
......@@ -667,4 +683,5 @@ body.unit {
padding-top: 0;
}
}
}
}
\ No newline at end of file
// studio - views - course updates
// ====================
.course-info {
body.course.updates {
h2 {
margin-bottom: 24px;
font-size: 22px;
......
// studio - views - course users
// ====================
.users {
body.course.users {
.new-user-form {
display: none;
padding: 15px 20px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment