Commit 6b4ab20d by marco

styled modes header, added inactive and active mode visibility as well as is-set…

styled modes header, added inactive and active mode visibility as well as is-set mode styling. no js behavior in yet. adds overscoll fix for webkit
parent ad0909df
...@@ -434,10 +434,6 @@ body.course.unit { ...@@ -434,10 +434,6 @@ body.course.unit {
background: $lightBluishGrey2; background: $lightBluishGrey2;
} }
.component-edit-menu {
background-color: pink;
}
.component-editor { .component-editor {
@include edit-box; @include edit-box;
@include box-shadow(none); @include box-shadow(none);
...@@ -449,40 +445,50 @@ body.course.unit { ...@@ -449,40 +445,50 @@ body.course.unit {
.component-edit-menu { .component-edit-menu {
@include box-sizing(border-box); @include box-sizing(border-box);
//padding: 15px; padding: 15px;
top: 0; top: 0;
right: 0; right: 0;
border-bottom: 1px solid $lightBluishGrey2; border-bottom: 1px solid $gray-l2;
box-shadow: 0 2px 1px rgba(182, 182, 182, 0.75) inset; background-color: $lightBluishGrey2;
background-color: $white; box-shadow: 0 1px 2px rgba(182, 182, 182, 0.75) inset;
//Component Name //Component Name
h4 { .component-name {
//TO-DO width: 50%;
//determine proper h-level @include font-size(14);
em {
font-weight: 700;
}
} }
//Nav-Edit Modes //Nav-Edit Modes
.nav-edit-modes { .nav-edit-modes {
list-style: none; list-style: none;
right: 0;
top: 0;
position: absolute;
padding: 10px;
li { .mode {
//TO-DO display: inline-block;
//inherit button styling
float: right;
//no idea what it currently inherits...
&:hover { .inactive-mode {
//TO-DO display: none;
//opacity change
} }
&.is-active { .active-mode {
//TO-DO @include white-button;
//inherit button styling
&.is-set {
background-color: $lightBluishGrey2;
cursor: default;
linear-gradient: none;
@include box-shadow(0 0 1px 1px rgba(0, 0, 0, .6) inset);
}
} }
} }
} }
} }
...@@ -493,25 +499,46 @@ body.course.unit { ...@@ -493,25 +499,46 @@ body.course.unit {
// Settings Wrapper // Settings Wrapper
.settings-wrapper{ .settings-wrapper{
//doverflow-y: scroll; overflow: auto;
max-height: 400px;
//TO-DO browser testing for scrollbar, especially styles below.
&::-webkit-scrollbar {
-webkit-appearance: none;
width: 11px;
height: 11px;
}
&::-webkit-scrollbar-thumb {
border-radius: 8px;
border: 2px solid $lightBluishGrey2;
background-color: rgba(0, 0, 0, .5);
}
.settings-row { .settings-row {
// general row sizing stuff // general row sizing stuff
background-color: $lightBluishGrey2; background-color: $white;
padding: 10px; padding: 10px;
border-bottom: 1px solid $gray-l2; border-bottom: 1px solid $gray-l2;
opacity: .8; opacity: .6;
&:hover { &:hover {
opacity: 1; opacity: 1;
} }
&.is-set {
opacity: .9;
background-color: $white;
font-weight: 200;
}
.setting-label { .setting-label {
font-weight: normal; font-weight: normal;
display: inline-block; display: inline-block;
padding-left: 15px; padding-left: 15px;
position: relative; position: relative;
left: 0; left: 0;
height: 50%;
width: 100px; width: 100px;
} }
...@@ -534,11 +561,6 @@ body.course.unit { ...@@ -534,11 +561,6 @@ body.course.unit {
&:active { &:active {
background-color: #FFFCF1; background-color: #FFFCF1;
} }
option {
line-height: 16px;
}
} }
.setting-clear { .setting-clear {
...@@ -570,7 +592,7 @@ body.course.unit { ...@@ -570,7 +592,7 @@ body.course.unit {
@include font-size(12); @include font-size(12);
font-color: $gray-l6; font-color: $gray-l6;
padding-left: 20px; padding-left: 20px;
max-width: 50%; max-width: 40%;
} }
} }
......
<div class="wrapper wrapper-component-editor"> <div class="wrapper wrapper-component-editor">
<div class="component-editor"> <div class="component-editor">
<div id="component-edit-menu"> <div class="component-edit-menu">
<h3 class="component-name">Viewing: Name of Component</h3> <span class="component-name"><em>Editing:</em> Name of Component</span>
<!--should this be a menubar/menu/tabbar instead of list? --> <!--should this be a menubar/menu/tabbar instead of list? -->
<ul class="nav-edit-modes"> <ul class="nav-edit-modes">
<li id="editor-mode" class="mode is-active" aria-controls="editor-tab" aria-selected="true" role="tab" tabindex="0"> <li id="editor-mode" class="mode" aria-controls="editor-tab" aria-selected="true" role="tab" tabindex="0">
<a href="#" class="button cancel-button">Editor</a> <a href="#" class="active-mode is-set">Editor</a>
</li> </li>
<li id="settings-mode" class="mode" aria-controls="settings-tab" aria-selected="false" role="tab" tabindex="-1"> <li id="settings-mode" class="mode" aria-controls="settings-tab" aria-selected="false" role="tab" tabindex="-1">
<a href="#" class="button cancel-button">Settings </a> <a href="#" class="inactive-mode">Compiler </a>
</li>
<li id="settings-mode" class="mode" aria-controls="settings-tab" aria-selected="false" role="tab" tabindex="-1">
<a href="#" class="active-mode">Settings </a>
</li> </li>
</ul> </ul>
</div> <!-- Editor Header --> </div> <!-- Editor Header -->
<div class="component-edit-modes"> <div class="component-edit-modes">
<div class="module-editor editor-wrapper" id="editor-tab"> <div class="module-editor editor-wrapper" id="editor-tab">
${editor} <!--${editor} -->
<!-- no longer are settings imported from metadata-edit.hmtl, ideally? --> <!-- no longer are settings imported from metadata-edit.hmtl, ideally? -->
</div> <!-- Editor Wrapper--> </div> <!-- Editor Wrapper-->
<ul class="settings-wrapper" id="settings-tab"> <ul class="settings-wrapper" id="settings-tab">
...@@ -37,7 +40,7 @@ ...@@ -37,7 +40,7 @@
<button class="setting-clear inactive" type="button" name="setting-clear" value="Clear" data-tooltip="Clear"> <button class="setting-clear inactive" type="button" name="setting-clear" value="Clear" data-tooltip="Clear">
<i class="ss-icon ss-symbolicons-block undo">&#x21A9;</i> <i class="ss-icon ss-symbolicons-block undo">&#x21A9;</i>
</button> </button>
<span class="setting-help">helpstring helpstringhelpstringhelpstringhelpstringhel pstringhelpstringh elpstringhelpstrin sghelp stringhelp stringhelpstringhe lpstring helpstringhelpstringhelpstring</span> <span class="setting-help">This is a more reasonable helpstring sentence that would alos wrap around. A second sentence in some cases may be necessary.</span>
<!--% showing dropdown example --> <!--% showing dropdown example -->
<li class="settings-row"> <li class="settings-row">
......
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