Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
181715f2
Commit
181715f2
authored
Oct 28, 2014
by
Brian Talbot
Committed by
cahrens
Nov 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Studio: revising xblock validation message list styling
parent
31dce767
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
cms/static/sass/_shame.scss
+17
-0
cms/static/sass/elements/_xblocks.scss
+8
-25
No files found.
cms/static/sass/_shame.scss
View file @
181715f2
...
...
@@ -124,6 +124,23 @@ div.wrapper-comp-editor.is-inactive ~ div.launch-latex-compiler{
// ====================
// xblock message UI override
// (to fake the Studio no-content pattern design since validation classes cannot be removed in logic layer)
.wrapper-xblock
.xblock-message.no-container-content.xblock-message.no-container-content
{
border
:
0
;
padding
:
(
$baseline
*
1
.5
)
(
$baseline
*
2
);
background-color
:
$gray-l4
;
text-align
:
center
;
color
:
$gray
;
.button
,
.action
{
@extend
%btn-primary-green
;
}
}
// ====================
// TODOs:
// * font-weight syncing
...
...
cms/static/sass/elements/_xblocks.scss
View file @
181715f2
...
...
@@ -11,8 +11,8 @@
background
:
$white
;
box-shadow
:
0px
1px
1px
$shadow-l1
;
&
:hover
{
// STATE: hover/focus
&
:hover
,
&
:focus
{
box-shadow
:
0
0
1px
$shadow
;
}
...
...
@@ -165,7 +165,7 @@
.xblock-message
{
@extend
%t-copy-sub1
;
background-color
:
$gray-d2
;
padding
:
(
$baseline
/
2
)
(
$baseline
*
.
75
);
padding
:
(
$baseline
*
0
.75
);
color
:
$white
;
[
class
^=
"icon-"
]
{
...
...
@@ -187,7 +187,7 @@
}
&
.has-warnings
{
border-
bottom
:
3px
solid
$orange
;
border-
top
:
3px
solid
$orange
;
.icon-warning-sign
{
margin-right
:
(
$baseline
/
2
);
...
...
@@ -196,7 +196,7 @@
}
&
.has-errors
{
border-
bottom
:
3px
solid
$red-l2
;
border-
top
:
3px
solid
$red-l2
;
.icon-exclamation-sign
{
margin-right
:
(
$baseline
/
2
);
...
...
@@ -231,14 +231,13 @@
}
.xblock-message
{
border-radius
:
3px
3px
0
0
;
&
.validation
{
padding-top
:
(
$baseline
*.
75
);
padding-top
:
(
$baseline
*
0
.75
);
}
.xblock-message-list
{
margin
:
(
$baseline
/
5
)
(
$baseline
*
2
.
5
);
margin
:
0
(
$baseline
*
2
.2
5
);
list-style-type
:
disc
;
color
:
$gray-l3
;
}
...
...
@@ -248,7 +247,7 @@
}
&
.information
{
padding
:
0
0
(
$baseline
/
2
)
0
;
padding
:
(
$baseline
/
2
)
0
;
background-color
:
$gray-l5
;
color
:
$gray-d1
;
}
...
...
@@ -342,28 +341,12 @@
.wrapper-xblock-message
{
.xblock-message
{
border-radius
:
0
0
3px
3px
;
.xblock-message-list
{
margin
:
0
;
list-style-type
:
none
;
}
&
.information
{
@extend
%t-copy-sub2
;
padding
:
0
$baseline
(
$baseline
*
0
.75
)
$baseline
;
color
:
$gray-l1
;
}
&
.validation.has-warnings
{
border
:
0
;
border-top
:
3px
solid
$orange
;
}
&
.validation.has-errors
{
border
:
0
;
border-top
:
3px
solid
$red-l2
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment