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,75 +3,90 @@ aside#left-menu.full-size(
ng-cloak ng-cloak
) )
h4 Settings h4 Settings
form(ng-controller="SettingsController") form.settings(ng-controller="SettingsController")
.form-controls .containter-fluid
label(for="compiler") Compiler .form-controls
select.form-control( .row
name="compiler" label.col-md-6(for="compiler") Compiler
ng-model="project.compiler" .col-md-6
) select.form-control(
option(value='pdflatex') pdfLaTeX name="compiler"
option(value='latex') LaTeX ng-model="project.compiler"
option(value='xelatex') XeLaTeX )
option(value='lualatex') LuaLaTeX option(value='pdflatex') pdfLaTeX
option(value='latex') LaTeX
option(value='xelatex') XeLaTeX
option(value='lualatex') LuaLaTeX
.form-controls .form-controls
label(for="spellCheckLanguage") Spell Check .row
select.form-control( label.col-md-6(for="spellCheckLanguage") Spell Check
name="spellCheckLanguage" .col-md-6
ng-model="project.spellCheckLanguage" select.form-control(
) name="spellCheckLanguage"
option(value="") Off ng-model="project.spellCheckLanguage"
optgroup(label="Language") )
for language in languages option(value="") Off
option( optgroup(label="Language")
value=language.code for language in languages
)= language.name option(
value=language.code
)= language.name
.form-controls .form-controls
label(for="autoComplete") Auto-Complete .row
input.form-control( label.col-md-6(for="autoComplete") Auto-Complete
type="checkbox" .col-md-6
name="autoComplete" input.form-control(
ng-model="settings.autoComplete" type="checkbox"
) name="autoComplete"
ng-model="settings.autoComplete"
)
.form-controls .form-controls
label(for="theme") Theme .row
select.form-control( label.col-md-6(for="theme") Theme
name="theme" .col-md-6
ng-model="settings.theme" select.form-control(
) name="theme"
each theme in themes ng-model="settings.theme"
option(value=theme) #{theme} )
each theme in themes
option(value=theme) #{theme}
.form-controls .form-controls
label(for="mode") Keybindings .row
select.form-control( label.col-md-6(for="mode") Keybindings
name="mode" .col-md-6
ng-model="settings.mode" select.form-control(
) name="mode"
option(value='default') None ng-model="settings.mode"
option(value='vim') Vim )
option(value='emacs') Emacs option(value='default') None
option(value='vim') Vim
option(value='emacs') Emacs
.form-controls .form-controls
label(for="fontSize") Font Size .row
select.form-control( label.col-md-6(for="fontSize") Font Size
name="fontSize" .col-md-6
ng-model="settings.fontSize" select.form-control(
) name="fontSize"
each size in ['10','11','12','13','14','16','20','24'] ng-model="settings.fontSize"
option(value=size) #{size}px )
each size in ['10','11','12','13','14','16','20','24']
option(value=size) #{size}px
.form-controls .form-controls
label(for="pdfViewer") PDF Viewer .row
select.form-control( label.col-md-6(for="pdfViewer") PDF Viewer
name="pdfViewer" .col-md-6
ng-model="settings.pdfViewer" select.form-control(
) name="pdfViewer"
option(value="pdfjs") Built-In ng-model="settings.pdfViewer"
option(value="native") Native )
option(value="pdfjs") Built-In
option(value="native") Native
#left-menu-mask( #left-menu-mask(
ng-show="ui.leftMenuShown", ng-show="ui.leftMenuShown",

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;
}
}
}
} }
} }