Commit 9fe41e76 by Frances Botsford Committed by cahrens

improved buttons styles in studio - updated unit sass to include new styles

parent 0230ee40
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
color: $white; color: $white;
&:hover, &:active { &:hover, &:active {
background: $blue-s2; background: $blue-l1;
border-color: $blue-s2; border-color: $blue-l1;
} }
&.current, &.active { &.current, &.active {
......
...@@ -63,26 +63,9 @@ ...@@ -63,26 +63,9 @@
} }
// buttons // buttons
.action-button { .button {
@extend %btn-primary-blue; @extend %btn-primary-blue;
@extend %sizing; @extend %sizing;
}
.new-button {
@extend %btn-primary-green;
@extend %sizing;
}
.view-button {
@extend %btn-primary-blue;
@extend %sizing;
}
.edit-button {
@include blue-button;
@extend %sizing;
padding: ($baseline/4) ($baseline/2);
text-align: center;
.action-button-text { .action-button-text {
display: inline-block; display: inline-block;
...@@ -93,6 +76,11 @@ ...@@ -93,6 +76,11 @@
display: inline-block; display: inline-block;
vertical-align: baseline; vertical-align: baseline;
} }
&.new-button {
@extend %btn-primary-green;
@extend %sizing;
}
} }
} }
} }
......
...@@ -781,3 +781,11 @@ div.wrapper-comp-editor.is-inactive ~ div.launch-latex-compiler { ...@@ -781,3 +781,11 @@ div.wrapper-comp-editor.is-inactive ~ div.launch-latex-compiler {
display: none; display: none;
} }
.wrapper-xblock {
.discussion-preview {
background-color: $gray-l5;
font-style: italic;
}
}
...@@ -272,10 +272,8 @@ ...@@ -272,10 +272,8 @@
text-align: right; text-align: right;
.action-primary { .action-primary {
@include blue-button; @extend %btn-primary-blue;
@extend %t-action4; @extend %t-action3;
font-weight: 600;
text-align: center;
} }
.action-secondary { .action-secondary {
...@@ -319,10 +317,8 @@ ...@@ -319,10 +317,8 @@
.task-actions { .task-actions {
.action-primary { .action-primary {
@include grey-button; @extend %btn-secondary-blue;
@extend %t-action4; @extend %t-action3;
font-weight: 600;
text-align: center;
} }
} }
......
...@@ -36,19 +36,10 @@ ...@@ -36,19 +36,10 @@
.nav-actions { .nav-actions {
.button { .button {
@extend %btn-primary-blue;
@extend %t-action3; @extend %t-action3;
box-shadow: none;
padding: ($baseline/4) ($baseline*.75); padding: ($baseline/4) ($baseline*.75);
font-weight: 400; font-weight: 400;
&.is-disabled {
// TO-DO: will review styling before merge to master
// background-color: $gray-l2;
// border-color: $gray-l2;
}
} }
} }
} }
} }
...@@ -108,15 +99,18 @@ ...@@ -108,15 +99,18 @@
.bit-publishing { .bit-publishing {
@extend %bar-module; @extend %bar-module;
&.published { &.published,
&.is-published {
@extend %bar-module-green; @extend %bar-module-green;
} }
&.draft { &.draft ,
&.is-draft {
@extend %bar-module-yellow; @extend %bar-module-yellow;
} }
&.staff-only { &.staff-only,
&.is-staff-only {
@extend %bar-module-black; @extend %bar-module-black;
} }
...@@ -165,11 +159,6 @@ ...@@ -165,11 +159,6 @@
@extend %btn-primary-blue; @extend %btn-primary-blue;
display: block; display: block;
padding: ($baseline/4) ($baseline/2) ($baseline/3) ($baseline/2); padding: ($baseline/4) ($baseline/2) ($baseline/3) ($baseline/2);
&.is-disabled {
border: 1px solid $gray-l2;
background-color: $gray-l2;
}
} }
.action-discard { .action-discard {
......
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
background: $gray-l5; background: $gray-l5;
.action-primary { .action-primary {
@include blue-button(); @extend %btn-primary-blue;
@extend %t-action3; @extend %t-action3;
font-weight: 600; font-weight: 600;
...@@ -739,6 +739,10 @@ ...@@ -739,6 +739,10 @@
float: left; float: left;
width: flex-grid(9, 9); width: flex-grid(9, 9);
.new-button {
@extend %btn-primary-green;
}
.delete-button { .delete-button {
margin: 0; margin: 0;
} }
......
...@@ -15,21 +15,8 @@ ...@@ -15,21 +15,8 @@
margin-right: flex-gutter(); margin-right: flex-gutter();
.add-pages { .add-pages {
@extend %ui-well; @extend %no-content;
margin: ($baseline*1.5) 0; margin: ($baseline*1.5) 0;
background-color: $gray-l4;
padding: ($baseline*2);
text-align: center;
color: $gray;
.new-button {
@include font-size(14);
margin-left: $baseline;
[class^="icon-"] {
margin-right: ($baseline/2);
}
}
} }
.notice-incontext { .notice-incontext {
......
...@@ -13,20 +13,7 @@ ...@@ -13,20 +13,7 @@
margin-right: flex-gutter(); margin-right: flex-gutter();
.no-textbook-content { .no-textbook-content {
@extend %ui-well; @extend %no-content;
padding: ($baseline*2);
background-color: $gray-l4;
text-align: center;
color: $gray;
.new-button {
@include font-size(14);
margin-left: $baseline;
[class^="icon-"] {
margin-right: ($baseline/2);
}
}
} }
.textbook { .textbook {
......
...@@ -55,8 +55,7 @@ ...@@ -55,8 +55,7 @@
} }
.action-primary { .action-primary {
@include green-button(); // overwriting for the sake of syncing older green button styles for now @extend %btn-primary-green;
@extend %t-action3;
padding: ($baseline/2) $baseline; padding: ($baseline/2) $baseline;
} }
} }
......
...@@ -88,18 +88,18 @@ templates = ["basic-modal", "modal-button", "edit-xblock-modal", ...@@ -88,18 +88,18 @@ templates = ["basic-modal", "modal-button", "edit-xblock-modal",
<ul> <ul>
% if is_unit_page: % if is_unit_page:
<li class="action-item action-view nav-item"> <li class="action-item action-view nav-item">
<a href="${published_preview_link}" class="button view-button action-button is-disabled"> <a href="${published_preview_link}" class="button button-view action-button is-disabled">
<span class="action-button-text">${_("View Published Version")}</span> <span class="action-button-text">${_("View Published Version")}</span>
</a> </a>
</li> </li>
<li class="action-item action-preview nav-item"> <li class="action-item action-preview nav-item">
<a href="${draft_preview_link}" class="button preview-button action-button is-disabled"> <a href="${draft_preview_link}" class="button button-preview action-button is-disabled">
<span class="action-button-text">${_("Preview Changes")}</span> <span class="action-button-text">${_("Preview Changes")}</span>
</a> </a>
</li> </li>
% else: % else:
<li class="action-item action-edit nav-item"> <li class="action-item action-edit nav-item">
<a href="#" class="button edit-button action-button"> <a href="#" class="button button-edit action-button edit-button">
<i class="icon-pencil"></i> <i class="icon-pencil"></i>
<span class="action-button-text">${_("Edit")}</span> <span class="action-button-text">${_("Edit")}</span>
</a> </a>
......
...@@ -503,7 +503,7 @@ ...@@ -503,7 +503,7 @@
<!-- case published no changes, future release no staff lock --> <!-- case published no changes, future release no staff lock -->
<div class="bit-publishing published"> <div class="bit-publishing is-published">
<h3 class="bar-mod-title pub-status"><span class="sr">${_("Publishing Status")} </span>${_("Published")}</h3> <h3 class="bar-mod-title pub-status"><span class="sr">${_("Publishing Status")} </span>${_("Published")}</h3>
<div class="wrapper-last-draft bar-mod-content"> <div class="wrapper-last-draft bar-mod-content">
...@@ -549,7 +549,7 @@ ...@@ -549,7 +549,7 @@
<!-- case unpubbed changes, future release no staff lock --> <!-- case unpubbed changes, future release no staff lock -->
<div class="bit-publishing draft"> <div class="bit-publishing is-draft">
<h3 class="bar-mod-title pub-status"><span class="sr">${_("Publishing Status")} </span>${_("Draft (Unpublished changes)")}</h3> <h3 class="bar-mod-title pub-status"><span class="sr">${_("Publishing Status")} </span>${_("Draft (Unpublished changes)")}</h3>
<div class="wrapper-last-draft bar-mod-content"> <div class="wrapper-last-draft bar-mod-content">
...@@ -595,7 +595,7 @@ ...@@ -595,7 +595,7 @@
<!-- case unpubbed changes, future release with staff lock --> <!-- case unpubbed changes, future release with staff lock -->
<div class="bit-publishing draft staff-only"> <div class="bit-publishing is-draft is-staff-only">
<h3 class="bar-mod-title pub-status"><span class="sr">${_("Publishing Status")} </span>${_("Draft (Unpublished changes)")}</h3> <h3 class="bar-mod-title pub-status"><span class="sr">${_("Publishing Status")} </span>${_("Draft (Unpublished changes)")}</h3>
<div class="wrapper-last-draft bar-mod-content"> <div class="wrapper-last-draft bar-mod-content">
...@@ -641,7 +641,7 @@ ...@@ -641,7 +641,7 @@
<!-- case published no changes, release in past no staff lock --> <!-- case published no changes, release in past no staff lock -->
<div class="bit-publishing published"> <div class="bit-publishing is-published">
<h3 class="bar-mod-title pub-status"><span class="sr">${_("Publishing Status")} </span>${_("Published")}</h3> <h3 class="bar-mod-title pub-status"><span class="sr">${_("Publishing Status")} </span>${_("Published")}</h3>
<div class="wrapper-last-draft bar-mod-content"> <div class="wrapper-last-draft bar-mod-content">
......
...@@ -152,7 +152,9 @@ ...@@ -152,7 +152,9 @@
&.disabled, &[disabled], &.is-disabled { &.disabled, &[disabled], &.is-disabled {
cursor: default; cursor: default;
pointer-events: none; pointer-events: none;
opacity: 0.5; border: 1px solid $gray-l3;
background-color: $gray-l3;
color: $gray-l5;
} }
.icon-inline { .icon-inline {
...@@ -178,11 +180,13 @@ ...@@ -178,11 +180,13 @@
padding:($baseline/2) $baseline; padding:($baseline/2) $baseline;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
box-shadow: none;
font-weight: 600;
line-height: 1.5em; line-height: 1.5em;
text-align: center; text-align: center;
&:hover, &:active, &:focus { &:hover, &:active, &:focus {
box-shadow: 0 2px 1px $shadow-l1; box-shadow: 0 2px 1px $shadow;
} }
&.current, &.active { &.current, &.active {
...@@ -268,10 +272,21 @@ ...@@ -268,10 +272,21 @@
%no-content { %no-content {
@extend %ui-well; @extend %ui-well;
padding: $baseline; padding: ($baseline*2);
background-color: $gray-l4; background-color: $gray-l4;
text-align: center; text-align: center;
color: $gray; color: $gray;
.button,
.action {
@extend %btn-primary-green;
@include font-size(14);
margin-left: $baseline;
[class^="icon-"] {
margin-right: ($baseline/2);
}
}
} }
.ui-loading { .ui-loading {
......
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