fix style issues with course title's formatting
fixes #CNVS-12785 The course title was wrapping weird when you were on a wiki front page. This commit fixes that. Test Plan ---------------- As a teacher Given you have a wiki page And that wiki page is set up as the front page And the homepage is set to the wiki front page And you have a very long course title When you navigate to the course homepage Then you should see the course title is ellipsed And the edit and admin gear should be formatted nicely to the right of it And you should be able to change the screen size without this breaking Change-Id: Ie5e267afba57b31c06142d5b93f1da81270725e2 Reviewed-on: https://gerrit.instructure.com/36178 Product-Review: Hilary Scharton <hilary@instructure.com> Reviewed-by: Jeremy Stanley <jeremy@instructure.com> Tested-by: Jenkins <jenkins@instructure.com> QA-Review: Clare Strong <clare@instructure.com>
This commit is contained in:
parent
d458691a49
commit
703502fb53
|
@ -66,6 +66,20 @@ $revision-button-hover-color: #2590cf
|
|||
:border-radius 0
|
||||
.header-bar
|
||||
:box-shadow $shadow
|
||||
.header-left-flex
|
||||
-webkit-box-flex: 1 0 0
|
||||
-moz-box-flex: 1 0 0
|
||||
box-flex: 1 0 0
|
||||
-ms-flex: 1 0 0
|
||||
-webkit-flex: 1 0 0
|
||||
flex: 1 0 0
|
||||
|
||||
.flex-container
|
||||
display: -moz-flexbox
|
||||
display: -ms-flexbox
|
||||
display: -o-flexbox
|
||||
display: -webkit-flex
|
||||
display: flex
|
||||
|
||||
.header-bar-outer-container.page-changed
|
||||
:height 103px
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{{#if CAN.VIEW_TOOLBAR}}
|
||||
<div class="header-bar-outer-container">
|
||||
<div class="header-bar-container sticky-toolbar" data-sticky>
|
||||
<div class="header-bar">
|
||||
<div class="header-bar-left">
|
||||
<div class="header-bar flex-container">
|
||||
<div class="header-bar-left header-left-flex">
|
||||
{{#if course_home}}
|
||||
<h2 class="course-title">{{course_title}}</h2>
|
||||
<h2 class="course-title ellipsis" title="{{course_title}}">{{course_title}}</h2>
|
||||
{{else}}
|
||||
{{#if CAN.VIEW_PAGES}}
|
||||
<a class="btn{{#if front_page}} btn-primary{{/if}} view_all_pages" href="{{wiki_pages_path}}">{{#t 'buttons.view_all_pages'}}View All Pages{{/t}}</a>
|
||||
|
|
Loading…
Reference in New Issue