Unverified Commit 9fc58a25 by Marco Morales Committed by GitHub

Merge pull request #16506 from edx/hrein/responsive-experience/cleanups

Styling changes for responsive behavior on LMS.
parents e88d384a aa853a93
...@@ -313,12 +313,20 @@ $seq-nav-height: 50px; ...@@ -313,12 +313,20 @@ $seq-nav-height: 50px;
&:hover, &:hover,
&:active, &:active,
&.active { &.active {
border-bottom: 3px solid $seq-nav-link-color;
// keeps icon/text centered on hover, necessary due to border-box setting
padding-top: 2px; padding-top: 2px;
background-color: theme-color("primary");
.icon { .icon {
color: $seq-nav-icon-color; color: theme-color("inverse");
}
@include media-breakpoint-up(sm) {
border-bottom: 3px solid $seq-nav-link-color;
background-color: theme-color("inverse");
.icon {
color: $seq-nav-icon-color;
}
} }
} }
} }
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
<span class="icon fa fa-chevron-prev" aria-hidden="true"></span> <span class="icon fa fa-chevron-prev" aria-hidden="true"></span>
<span>Previous</span> <span>Previous</span>
</button> </button>
<button class="sequence-nav-button button-next">
<span>Next</span>
<span class="icon fa fa-chevron-next" aria-hidden="true"></span>
</button>
<nav class="sequence-list-wrapper" aria-label="Unit"> <nav class="sequence-list-wrapper" aria-label="Unit">
<ol id="sequence-list" role="tablist"> <ol id="sequence-list" role="tablist">
<li> <li>
...@@ -23,10 +27,6 @@ ...@@ -23,10 +27,6 @@
</li> </li>
</ol> </ol>
</nav> </nav>
<button class="sequence-nav-button button-next">
<span>Next</span>
<span class="icon fa fa-chevron-next" aria-hidden="true"></span>
</button>
</div> </div>
<div class="sr-is-focusable" tabindex="-1"></div> <div class="sr-is-focusable" tabindex="-1"></div>
......
...@@ -33,7 +33,7 @@ from openedx.core.djangolib.markup import HTML ...@@ -33,7 +33,7 @@ from openedx.core.djangolib.markup import HTML
<div class="page-header-secondary"> <div class="page-header-secondary">
## Add Post button ## Add Post button
% if has_permission(user, 'create_thread', course.id): % if has_permission(user, 'create_thread', course.id):
<div class="form-actions"> <div class="forum-actions">
<button class="btn btn-outline-primary btn-small new-post-btn">${_("Add a Post")}</button> <button class="btn btn-outline-primary btn-small new-post-btn">${_("Add a Post")}</button>
</div> </div>
% endif % endif
......
// LMS-specific variables // LMS-specific variables
$text-width-readability-max: 900px; $text-width-readability-max: 1080px;
// LMS-only colors // LMS-only colors
$audit-mode-color: rgb(74, 74, 74) !default; $audit-mode-color: rgb(74, 74, 74) !default;
......
...@@ -41,6 +41,7 @@ html.video-fullscreen { ...@@ -41,6 +41,7 @@ html.video-fullscreen {
border-radius: ($baseline/4); border-radius: ($baseline/4);
background-color: $light-gray1; background-color: $light-gray1;
color: $staff-color; color: $staff-color;
text-transform: uppercase;
&:hover { &:hover {
background-color: $staff-color; background-color: $staff-color;
...@@ -134,12 +135,11 @@ html.video-fullscreen { ...@@ -134,12 +135,11 @@ html.video-fullscreen {
overflow-wrap: break-word; overflow-wrap: break-word;
word-wrap: break-word; word-wrap: break-word;
word-break: break-word; word-break: break-word;
} margin: 0 auto;
// Make text-focused blocks have a maximum width for readability. &.xblock-student_view-vertical {
.xmodule_HtmlModule, max-width: $text-width-readability-max;
.xmodule_CapaModule { }
max-width: $text-width-readability-max;
} }
h1 { h1 {
......
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
.btn-link { .btn-link {
display: inline-block; display: inline-block;
padding: ($baseline/2) $baseline; padding: ($baseline/2);
border: 0; border: 0;
box-shadow: none; box-shadow: none;
text-shadow: none; text-shadow: none;
......
...@@ -177,6 +177,8 @@ ...@@ -177,6 +177,8 @@
.forum-nav-thread-list { .forum-nav-thread-list {
padding-left: 0 !important; // should *not* be RTLed, see below for explanation padding-left: 0 !important; // should *not* be RTLed, see below for explanation
min-height: 60px; // @TODO: Remove this when we have a real empty state for the discussion thread list min-height: 60px; // @TODO: Remove this when we have a real empty state for the discussion thread list
max-height: 800px;
border-bottom: 1px solid theme-color("light");
margin: 0; margin: 0;
overflow-y: auto; overflow-y: auto;
list-style: none; list-style: none;
......
.forum-search { .forum-search {
display: flex; display: flex;
width: 100%;
margin-top: $baseline; margin-top: $baseline;
.search-input { .search-input {
......
...@@ -89,6 +89,7 @@ $full-width-banner-margin: 20px; ...@@ -89,6 +89,7 @@ $full-width-banner-margin: 20px;
.btn-link { .btn-link {
color: $state-info-text-link; color: $state-info-text-link;
font-weight: bold; font-weight: bold;
border-color: transparent;
} }
} }
......
...@@ -199,6 +199,7 @@ ...@@ -199,6 +199,7 @@
.btn-link { .btn-link {
color: palette(grayscale, base); color: palette(grayscale, base);
border-color: transparent;
} }
} }
} }
...@@ -275,8 +276,14 @@ ...@@ -275,8 +276,14 @@
} }
} }
.section-tools .course-tool:not(:first-child) { .section-tools .course-tool {
margin-top: ($baseline / 5); .course-tool-link:visited {
color: theme-color("primary");
}
&:not(:first-child) {
margin-top: ($baseline / 5);
}
} }
} }
...@@ -328,6 +335,8 @@ ...@@ -328,6 +335,8 @@
margin: 0 0 ($baseline / 2) 0; margin: 0 0 ($baseline / 2) 0;
.subsection { .subsection {
@include margin-left(10px);
list-style-type: none; list-style-type: none;
border: 1px solid transparent; border: 1px solid transparent;
border-radius: 3px; border-radius: 3px;
......
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
</div> </div>
% endif % endif
<div class="sequence-nav"> <div class="sequence-nav">
<button class="sequence-nav-button button-previous" aria-hidden="true"> <button class="sequence-nav-button button-previous">
<span class="icon fa fa-chevron-prev" aria-hidden="true"></span> <span class="icon fa fa-chevron-prev" aria-hidden="true"></span>
<span class="sequence-nav-button-label">${_('Previous')}</span> <span class="sequence-nav-button-label">${_('Previous')}</span>
</button> </button>
<button class="sequence-nav-button button-next" aria-hidden="true"> <button class="sequence-nav-button button-next">
<span class="sequence-nav-button-label">${_('Next')}</span> <span class="sequence-nav-button-label">${_('Next')}</span>
<span class="icon fa fa-chevron-next" aria-hidden="true"></span> <span class="icon fa fa-chevron-next" aria-hidden="true"></span>
</button> </button>
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<ol class="block-tree" role="tree"> <ol class="block-tree" role="tree">
<li aria-expanded="true" class="outline-item focusable section" id="block-v1:W3Cx+HTML5.0x+1T2017+type@chapter+block@451e0388724c4f1fafba1b218ce16582" role="treeitem" tabindex="0"> <li aria-expanded="true" class="outline-item focusable section" id="block-v1:W3Cx+HTML5.0x+1T2017+type@chapter+block@451e0388724c4f1fafba1b218ce16582" role="treeitem" tabindex="0">
<div class="section-name"> <div class="section-name">
<h3>Testing</h3> <h3 class="section-title">Testing</h3>
</div> </div>
<ol class="outline-item focusable" role="group" tabindex="0"> <ol class="outline-item focusable" role="group" tabindex="0">
<li class="subsection " role="treeitem" tabindex="-1" aria-expanded="true"> <li class="subsection " role="treeitem" tabindex="-1" aria-expanded="true">
......
...@@ -24,7 +24,7 @@ from openedx.core.djangolib.markup import HTML, Text ...@@ -24,7 +24,7 @@ from openedx.core.djangolib.markup import HTML, Text
tabindex="0" tabindex="0"
> >
<div class="section-name"> <div class="section-name">
<h3>${ section['display_name'] }</h3> <h3 class="section-title">${ section['display_name'] }</h3>
</div> </div>
<ol class="outline-item focusable" role="group" tabindex="0"> <ol class="outline-item focusable" role="group" tabindex="0">
% for subsection in section.get('children', []): % for subsection in section.get('children', []):
......
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