Commit ce6f8e12 by Waheed Ahmed Committed by GitHub

Merge pull request #453 from edx/waheed/small-fixes

Small issues fixed and RTL support.
parents f36f4bb0 a4590621
...@@ -993,7 +993,7 @@ class DashboardTests(TestCase): ...@@ -993,7 +993,7 @@ class DashboardTests(TestCase):
# group-b course # group-b course
self._create_course_assign_permissions(State.DRAFT, self.group_b) self._create_course_assign_permissions(State.DRAFT, self.group_b)
self.table_class = "data-table-{id} display nowrap" self.table_class = "data-table-{id} display"
def _create_course_assign_permissions(self, state, group): def _create_course_assign_permissions(self, state, group):
""" DRY method to create course and assign the permissions""" """ DRY method to create course and assign the permissions"""
......
...@@ -56,7 +56,7 @@ $(function() { ...@@ -56,7 +56,7 @@ $(function() {
var key = e.which, var key = e.which,
focused = $(e.currentTarget), focused = $(e.currentTarget),
index = $(e.currentTarget).parent().find('.tab').index(focused), index = $(e.currentTarget).parent().find('.tab').index(focused),
total = $(e.currentTarget).parent().find('.tab').size() - 1, total = $(e.currentTarget).parent().find('.tab').length - 1,
panel = $(focused).attr('aria-controls'); panel = $(focused).attr('aria-controls');
switch (key) { switch (key) {
......
...@@ -23,5 +23,5 @@ ...@@ -23,5 +23,5 @@
// ------------------------------ // ------------------------------
@import "base"; @import "base";
@import 'publisher/course_form'; @import 'publisher/course_form';
@import 'publisher/course_detail'; @import 'publisher/publisher';
@import 'publisher/dashboard'; @import 'publisher/dashboard';
.publisher-container { .publisher-container {
@include padding(5px, 5px, 5px, 5px); @include margin(0, 0, 0, 0);
@include padding-left(5px);
font-family: "Open Sans", Arial, Helvetica, sans-serif; font-family: "Open Sans", Arial, Helvetica, sans-serif;
.studio-instance-success { .studio-instance-success {
...@@ -91,7 +92,7 @@ ...@@ -91,7 +92,7 @@
} }
.tab-panel { .tab-panel {
@include padding(35px, 20px, 35px, 20px); @include padding(20px, 20px, 20px, 20px);
display: none; display: none;
border: 2px solid #169bd5; border: 2px solid #169bd5;
background-color: #fff; background-color: #fff;
...@@ -121,7 +122,7 @@ ...@@ -121,7 +122,7 @@
tr { tr {
td { td {
@include text-align(right); @include text-align(left);
} }
} }
} }
...@@ -213,4 +214,3 @@ ...@@ -213,4 +214,3 @@
} }
} }
} }
...@@ -228,18 +228,20 @@ $light-gray: rgba(204, 204, 204, 1); ...@@ -228,18 +228,20 @@ $light-gray: rgba(204, 204, 204, 1);
} }
} }
.layout, .layout-flush { .layout, .layout-flush {
margin-left: 0; @include margin-left(0);
margin-right: 0; @include margin-right(0);
max-width: 100%; max-width: 100%;
.layout-col-menu { .layout-col-menu {
padding-left: 0; @include margin-left(0);
padding-right: 0; @include padding-left(0);
@include padding-right(0);
width: 20%; width: 20%;
} }
.layout-col-container { .layout-col-container {
width: 80%; @include padding(20px, 20px, 20px, 20px);
width: 78%;
} }
.menu-list { .menu-list {
...@@ -353,16 +355,16 @@ $light-gray: rgba(204, 204, 204, 1); ...@@ -353,16 +355,16 @@ $light-gray: rgba(204, 204, 204, 1);
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
display: inline-block; display: inline-block;
margin: 5px 0 5px; @include margin(5px, 0px, 5px, 0px);
.tab-container { .tab-container {
button { button {
@include padding(5px, 5px, 5px, 5px);
@include margin(5px, 5px, 5px, 5px);
@include float(left);
display: block; display: block;
padding: 10px;
color: #0ea6ec; color: #0ea6ec;
@include float(left);
margin: 0 5px;
border: none; border: none;
background-color: transparent; background-color: transparent;
...@@ -370,17 +372,12 @@ $light-gray: rgba(204, 204, 204, 1); ...@@ -370,17 +372,12 @@ $light-gray: rgba(204, 204, 204, 1);
border-bottom: 4px solid #0ea6ec; border-bottom: 4px solid #0ea6ec;
color: black; color: black;
} }
&:first-child {
@include margin-left(30px);
}
} }
} }
} }
#app { #app {
background: #fff; background: #fff;
padding: 0 30px 30px;
} }
.alert-messages .alert { .alert-messages .alert {
...@@ -388,8 +385,8 @@ $light-gray: rgba(204, 204, 204, 1); ...@@ -388,8 +385,8 @@ $light-gray: rgba(204, 204, 204, 1);
} }
.publisher-layout { .publisher-layout {
@include padding(15px, 15px, 15px, 15px);
background: rgb(242, 242, 242); background: rgb(242, 242, 242);
padding: 15px;
margin-bottom: 20px; margin-bottom: 20px;
.layout-title { .layout-title {
...@@ -398,7 +395,7 @@ $light-gray: rgba(204, 204, 204, 1); ...@@ -398,7 +395,7 @@ $light-gray: rgba(204, 204, 204, 1);
} }
.course-form { .course-form {
margin: 0; @include margin(0px, 0px, 0px, 0px);
box-shadow: none; box-shadow: none;
} }
} }
...@@ -415,8 +412,8 @@ select { ...@@ -415,8 +412,8 @@ select {
.checkbox-inline { .checkbox-inline {
ul { ul {
@include margin-left(0);
list-style: none; list-style: none;
margin-left: 0;
margin-bottom: 15px; margin-bottom: 15px;
li { li {
...@@ -424,7 +421,7 @@ select { ...@@ -424,7 +421,7 @@ select {
@include margin-right(10px); @include margin-right(10px);
&:last-child { &:last-child {
margin-right: 0; @include margin-right(0);
} }
} }
} }
...@@ -452,10 +449,10 @@ select { ...@@ -452,10 +449,10 @@ select {
font-weight: bold; font-weight: bold;
} }
.course-tabs{ .course-tabs{
list-style: none;
@include float(left); @include float(left);
@include margin-right(10px); @include margin-right(10px);
padding: 10px; @include padding(10px, 10px, 10px, 10px);
list-style: none;
border-bottom: 3px solid #ccc; border-bottom: 3px solid #ccc;
color: #ccc; color: #ccc;
text-align: center; text-align: center;
...@@ -472,7 +469,7 @@ select { ...@@ -472,7 +469,7 @@ select {
.content{ .content{
display: none; display: none;
p{ p{
margin: 0; @include margin(0px, 0px, 0px, 0px);
} }
p:first-of-type{ p:first-of-type{
margin-bottom: 20px; margin-bottom: 20px;
...@@ -496,12 +493,12 @@ select { ...@@ -496,12 +493,12 @@ select {
font-size: 16px; font-size: 16px;
.btn-copy { .btn-copy {
text-decoration: none;
@include margin-left(10px); @include margin-left(10px);
padding-top: 2px;
padding-bottom: 2px;
@include padding-left(5px); @include padding-left(5px);
@include padding-right(5px); @include padding-right(5px);
text-decoration: none;
padding-top: 2px;
padding-bottom: 2px;
} }
} }
} }
...@@ -531,12 +528,12 @@ select { ...@@ -531,12 +528,12 @@ select {
} }
.breadcrumb { .breadcrumb {
padding: 8px 15px; @include padding-left(0);
@include padding(8px, 15px, 8px, 15px);
@include margin(0, 0, 1.25rem, 0);
list-style: none; list-style: none;
background: white; background: white;
border-radius: 3px; border-radius: 3px;
padding-left: 0;
margin: 0 0 1.25rem;
> li { > li {
display: inline-block; display: inline-block;
...@@ -552,8 +549,8 @@ select { ...@@ -552,8 +549,8 @@ select {
} }
+ li:before { + li:before {
@include padding(0px, 5px, 0px, 5px);
content: " / "; content: " / ";
padding: 0 5px;
color: #ccc; color: #ccc;
} }
...@@ -570,12 +567,12 @@ select { ...@@ -570,12 +567,12 @@ select {
.page-header { .page-header {
@include margin(0, 0, 20px, 0);
padding-top: 10px; padding-top: 10px;
margin: 0 0 20px;
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
.hd-1 { .hd-1 {
margin: 0; @include margin(0, 0, 0, 0);
color: black; color: black;
font-weight: 600; font-weight: 600;
} }
...@@ -617,7 +614,7 @@ select { ...@@ -617,7 +614,7 @@ select {
} }
.border-left { .border-left {
border-left: 1px solid; @include border-left(1px solid);
} }
.border-top { .border-top {
...@@ -625,11 +622,11 @@ select { ...@@ -625,11 +622,11 @@ select {
} }
.empty-courserun-text { .empty-courserun-text {
padding: 100px 160px; @include padding(100px, 160px, 100px, 160px);
p { p {
padding: 0; @include padding(0px, 0px, 0px, 0px);
margin: 0; @include margin(0px, 0px, 0px, 0px);
} }
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</li> </li>
<li role="tab" id="tab-studio" class="tab" aria-selected="false" aria-expanded="true" <li role="tab" id="tab-studio" class="tab" aria-selected="false" aria-expanded="true"
aria-controls="studio" tabindex="-1" data-studio-count="{{ studio_count }}"> aria-controls="studio" tabindex="-1" data-studio-count="{{ studio_count }}">
<span>{{ studio_count }}</span>{% trans "STUDIO REQUEST" %} <span id="studio-count">{{ studio_count }}</span>{% trans "STUDIO REQUEST" %}
</li> </li>
<li role="tab" id="tab-published" class="tab" aria-selected="false" aria-expanded="false" <li role="tab" id="tab-published" class="tab" aria-selected="false" aria-expanded="false"
aria-controls="published" tabindex="-1"> aria-controls="published" tabindex="-1">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{% if in_progress_count == 0 %} {% if in_progress_count == 0 %}
<p>{% trans "There are no in progress course runs." %}</p> <p>{% trans "There are no in progress course runs." %}</p>
{% else %} {% else %}
<table class="data-table-in-progress display nowrap" cellspacing="0" width="100%"> <table class="data-table-in-progress display" cellspacing="0" width="100%">
<thead> <thead>
<tr> <tr>
<th role="button"> <th role="button">
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
{% else %} {% else %}
<p>{% trans "The list below contains all course runs awaiting course team approval. Once approved, the marketing team will push the course run. you will be notified via email when the course runs are live on the production site." %}</p> <p>{% trans "The list below contains all course runs awaiting course team approval. Once approved, the marketing team will push the course run. you will be notified via email when the course runs are live on the production site." %}</p>
<div class="table-view"> <div class="table-view">
<table class="data-table-preview display nowrap" cellspacing="0" width="100%"> <table class="data-table-preview display" cellspacing="0" width="100%">
<thead> <thead>
<tr> <tr>
<th role="button"> <th role="button">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
The list below contains all course runs published in the past {{ default_published_days }} days. The list below contains all course runs published in the past {{ default_published_days }} days.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
<table class="data-table-published display nowrap" cellspacing="0" width="100%"> <table class="data-table-published display" cellspacing="0" width="100%">
<thead> <thead>
<tr> <tr>
<th role="button"> <th role="button">
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<p class="copy-meta"></p> <p class="copy-meta"></p>
</div> </div>
<div class="table-view"> <div class="table-view">
<table class="data-table-studio display nowrap" cellspacing="0" width="100%"> <table class="data-table-studio display" cellspacing="0" width="100%">
<thead> <thead>
<tr> <tr>
<th role="button"> <th role="button">
......
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