Style settings side panel

This commit is contained in:
James Allen 2014-07-01 15:57:55 +01:00
parent e1bce85933
commit 7cfbaaca36
2 changed files with 121 additions and 70 deletions

View file

@ -3,9 +3,12 @@ aside#left-menu.full-size(
ng-cloak ng-cloak
) )
h4 Settings h4 Settings
form(ng-controller="SettingsController") form.settings(ng-controller="SettingsController")
.containter-fluid
.form-controls .form-controls
label(for="compiler") Compiler .row
label.col-md-6(for="compiler") Compiler
.col-md-6
select.form-control( select.form-control(
name="compiler" name="compiler"
ng-model="project.compiler" ng-model="project.compiler"
@ -16,7 +19,9 @@ aside#left-menu.full-size(
option(value='lualatex') LuaLaTeX option(value='lualatex') LuaLaTeX
.form-controls .form-controls
label(for="spellCheckLanguage") Spell Check .row
label.col-md-6(for="spellCheckLanguage") Spell Check
.col-md-6
select.form-control( select.form-control(
name="spellCheckLanguage" name="spellCheckLanguage"
ng-model="project.spellCheckLanguage" ng-model="project.spellCheckLanguage"
@ -29,7 +34,9 @@ aside#left-menu.full-size(
)= language.name )= language.name
.form-controls .form-controls
label(for="autoComplete") Auto-Complete .row
label.col-md-6(for="autoComplete") Auto-Complete
.col-md-6
input.form-control( input.form-control(
type="checkbox" type="checkbox"
name="autoComplete" name="autoComplete"
@ -37,7 +44,9 @@ aside#left-menu.full-size(
) )
.form-controls .form-controls
label(for="theme") Theme .row
label.col-md-6(for="theme") Theme
.col-md-6
select.form-control( select.form-control(
name="theme" name="theme"
ng-model="settings.theme" ng-model="settings.theme"
@ -46,7 +55,9 @@ aside#left-menu.full-size(
option(value=theme) #{theme} option(value=theme) #{theme}
.form-controls .form-controls
label(for="mode") Keybindings .row
label.col-md-6(for="mode") Keybindings
.col-md-6
select.form-control( select.form-control(
name="mode" name="mode"
ng-model="settings.mode" ng-model="settings.mode"
@ -56,7 +67,9 @@ aside#left-menu.full-size(
option(value='emacs') Emacs option(value='emacs') Emacs
.form-controls .form-controls
label(for="fontSize") Font Size .row
label.col-md-6(for="fontSize") Font Size
.col-md-6
select.form-control( select.form-control(
name="fontSize" name="fontSize"
ng-model="settings.fontSize" ng-model="settings.fontSize"
@ -65,7 +78,9 @@ aside#left-menu.full-size(
option(value=size) #{size}px option(value=size) #{size}px
.form-controls .form-controls
label(for="pdfViewer") PDF Viewer .row
label.col-md-6(for="pdfViewer") PDF Viewer
.col-md-6
select.form-control( select.form-control(
name="pdfViewer" name="pdfViewer"
ng-model="settings.pdfViewer" ng-model="settings.pdfViewer"

View file

@ -1,14 +1,16 @@
#left-menu { #left-menu {
position: absolute; position: absolute;
width: 210px; width: 260px;
padding: 10px; padding: (@line-height-computed / 2);
top: 0; top: 0;
bottom: 0; bottom: 0;
background-color: #f4f4f4; background-color: #f4f4f4;
z-index: 100; z-index: 100;
overflow: auto; overflow-y: auto;
overflow-x: hidden;
-webkit-transition: left ease-in-out 0.35s; -webkit-transition: left ease-in-out 0.35s;
transition: left ease-in-out 0.35s; transition: left ease-in-out 0.35s;
font-size: 14px;
left: -280px; left: -280px;
&.shown { &.shown {
@ -16,14 +18,48 @@
} }
h4 { h4 {
font-family: @font-family-serif; font-family: @font-family-sans-serif;
font-weight: 400; font-weight: 400;
font-size: 1rem; font-size: 1rem;
margin: (@line-height-computed / 2) 0; margin: (@line-height-computed / 2) 0;
padding-bottom: (@line-height-computed / 4); padding-bottom: (@line-height-computed / 4);
color: @gray-light; color: @gray-light;
border-bottom: 1px solid @gray-light; border-bottom: 1px solid @gray-lighter;
text-transform: uppercase; }
h4:first-child {
margin-top: 0;
}
form.settings {
label {
font-weight: normal;
color: @gray-dark;
margin-bottom: 0;
padding-top: 8px;
}
select.form-control {
height: 34px;
background: none;
border: none;
box-shadow: none;
color: @link-color;
cursor: pointer;
font-size: 14px;
font-weight: 700;
}
.form-controls {
padding: 0 (@line-height-computed / 4);
&:hover {
background-color: @link-color;
select.form-control {
color: white;
}
label {
color: white;
}
}
}
} }
} }