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
1a297674
Commit
1a297674
authored
Nov 15, 2012
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added in fields for problems and discussions portions of CMS settings
parent
65869461
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
5 deletions
+125
-5
cms/static/sass/_settings.scss
+124
-5
cms/static/sass/_variables.scss
+1
-0
cms/templates/settings.html
+0
-0
No files found.
cms/static/sass/_settings.scss
View file @
1a297674
...
@@ -152,6 +152,74 @@
...
@@ -152,6 +152,74 @@
font-size
:
13px
;
font-size
:
13px
;
}
}
.field.ui-status
{
>
.input
{
display
:
block
!
important
;
margin-bottom
:
15px
;
}
.ui-status-input-checkbox
,
.ui-status-input-radio
{
position
:
absolute
;
top
:
-9999px
;
left
:
-9999px
;
}
label
{
cursor
:
pointer
;
}
.ui-status-input-checkbox
~
label
,
.ui-status-input-radio
~
label
{
display
:
inline-block
;
margin
:
0
0
0
5px
;
color
:
$offBlack
;
opacity
:
0
.50
;
cursor
:
pointer
;
@include
transition
(
opacity
0
.25s
ease-in-out
);
&
:after
{
content
:
"(Off)"
;
display
:
inline-block
;
margin-left
:
10px
;
}
~
.tip
{
margin-top
:
0
;
@include
transition
(
color
0
.25s
ease-in-out
);
}
}
.ui-status-indic
{
position
:
relative
;
top
:
2px
;
display
:
inline-block
;
height
:
15px
;
width
:
15px
;
border
:
2px
;
background
:
$offBlack
;
opacity
:
0
.50
;
@include
border-radius
(
50px
);
@include
box-sizing
(
border-box
);
@include
transition
(
opacity
0
.25s
ease-in-out
);
}
.ui-status-input-checkbox
:checked
~
label
,
.ui-status-input-radio
:checked
~
label
{
opacity
:
0
.99
;
&
:after
{
content
:
"(On)"
;
}
~
.tip
{
color
:
$darkGrey
;
}
}
.ui-status-input-checkbox
:checked
~
.ui-status-indic
,
.ui-status-input-radio
:checked
~
.ui-status-indic
{
opacity
:
0
.99
;
}
}
.tip
{
.tip
{
color
:
$mediumGrey
;
color
:
$mediumGrey
;
font-size
:
13px
;
font-size
:
13px
;
...
@@ -174,7 +242,6 @@
...
@@ -174,7 +242,6 @@
>
label
,
.label
{
>
label
,
.label
{
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
top
;
vertical-align
:
top
;
width
:
200px
;
}
}
// tips
// tips
...
@@ -191,7 +258,7 @@
...
@@ -191,7 +258,7 @@
// structural field, not semantic fields per se
// structural field, not semantic fields per se
.field
{
.field
{
display
:
inline-block
;
display
:
inline-block
;
width
:
400px
;
width
:
100%
;
>
input
,
>
textarea
,
.input
{
>
input
,
>
textarea
,
.input
{
display
:
inline-block
;
display
:
inline-block
;
...
@@ -248,7 +315,6 @@
...
@@ -248,7 +315,6 @@
.group
{
.group
{
float
:
left
;
float
:
left
;
margin-right
:
20px
;
margin-right
:
20px
;
width
:
170px
;
&
:nth-child
(
2
)
{
&
:nth-child
(
2
)
{
margin-right
:
0
;
margin-right
:
0
;
...
@@ -283,6 +349,26 @@
...
@@ -283,6 +349,26 @@
&
.enum
{
&
.enum
{
}
}
}
}
// layout - aligned label/field pairs
&
.row-col2
{
>
label
,
.label
{
width
:
200px
;
}
.field
{
width
:
400px
;
}
&
.multi-inline
{
@include
clearfix
;
.group
{
width
:
170px
;
}
}
}
}
}
// editing controls - adding
// editing controls - adding
...
@@ -326,7 +412,6 @@
...
@@ -326,7 +412,6 @@
}
}
}
}
// specific sections
// specific sections
.settings-details
{
.settings-details
{
...
@@ -379,10 +464,23 @@
...
@@ -379,10 +464,23 @@
.settings-problems
{
.settings-problems
{
>
section
{
&
.is-shown
{
display
:
block
;
}
}
}
}
.settings-discussions
{
.settings-discussions
{
}
.settings-discussions-exceptions
,
.settings-problems-exceptions
{
p
,
ul
{
font-size
:
15px
;
}
}
}
// states
// states
...
@@ -391,6 +489,27 @@
...
@@ -391,6 +489,27 @@
@include
transition
(
color
1s
ease-in-out
);
@include
transition
(
color
1s
ease-in-out
);
}
}
// extras/abbreviations
// .settings-extras {
// > header {
// cursor: pointer;
// &.active {
// }
// }
// > div {
// display: none;
// @include transition(display 0.25s ease-in-out);
// &.is-shown {
// display: block;
// }
// }
// }
// misc
// misc
.divide
{
.divide
{
display
:
none
;
display
:
none
;
...
...
cms/static/sass/_variables.scss
View file @
1a297674
...
@@ -13,6 +13,7 @@ $body-line-height: golden-ratio(.875em, 1);
...
@@ -13,6 +13,7 @@ $body-line-height: golden-ratio(.875em, 1);
$pink
:
rgb
(
182
,
37
,
104
);
$pink
:
rgb
(
182
,
37
,
104
);
$error-red
:
rgb
(
253
,
87
,
87
);
$error-red
:
rgb
(
253
,
87
,
87
);
$offBlack
:
#3c3c3c
;
$blue
:
#5597dd
;
$blue
:
#5597dd
;
$orange
:
#edbd3c
;
$orange
:
#edbd3c
;
$lightGrey
:
#edf1f5
;
$lightGrey
:
#edf1f5
;
...
...
cms/templates/settings.html
View file @
1a297674
This diff is collapsed.
Click to expand it.
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