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

View file

@ -1,14 +1,16 @@
#left-menu {
position: absolute;
width: 210px;
padding: 10px;
width: 260px;
padding: (@line-height-computed / 2);
top: 0;
bottom: 0;
background-color: #f4f4f4;
z-index: 100;
overflow: auto;
overflow-y: auto;
overflow-x: hidden;
-webkit-transition: left ease-in-out 0.35s;
transition: left ease-in-out 0.35s;
font-size: 14px;
left: -280px;
&.shown {
@ -16,14 +18,48 @@
}
h4 {
font-family: @font-family-serif;
font-family: @font-family-sans-serif;
font-weight: 400;
font-size: 1rem;
margin: (@line-height-computed / 2) 0;
padding-bottom: (@line-height-computed / 4);
color: @gray-light;
border-bottom: 1px solid @gray-light;
text-transform: uppercase;
border-bottom: 1px solid @gray-lighter;
}
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;
}
}
}
}
}