Skip to content
This repository has been archived by the owner. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
prefs done
  • Loading branch information
Lauren McCarthy committed Jan 12, 2016
commit 855baf7316d73b280c7531b379c62cd9b85b97be
26 changes: 22 additions & 4 deletions app/settings/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,28 @@
font-size: 16px;
font-family: inconsolata;
text-align: center;
margin-right: 22px;
margin: 0 18px;
display: inline-block;
vertical-align: top;
}

.adjustButtonContainer {
width: 43px;
text-align: center;
display: inline-block;
vertical-align: top;
}

.adjustButton {
width: 36px;
height: 36px;
width: 32px;
height: 32px;
cursor: pointer;
margin-right: 22px;
}

.adjustButtonContainer label {
font-size: 9px;
color: #b5b5b5;
margin-top: 8px;
}

input:focus {
Expand Down Expand Up @@ -202,6 +216,10 @@
display: inline;
}

#indentOptions {
margin-left: 12px;
}

#indentOptions .radioSelection {
margin-bottom: 10px;
margin-right: 0px;
Expand Down
36 changes: 23 additions & 13 deletions app/settings/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,35 @@
<!-- Text size -->
<div class="section">
<p class="label">Text size</p>
<img class="adjustButton button" src="images/minus-button.svg" v-on="click: decreaseFontSize">
<span class="adjustButtonContainer">
<img class="adjustButton button" src="images/minus-button.svg" v-on="click: decreaseFontSize">
<label>Decrease</label>
</span>
<input id="textAdjustInput" type="text" v-model="fontSize" size=3>
<img class="adjustButton button" src="images/plus-button.svg" v-on="click: increaseFontSize">
<span class="adjustButtonContainer">
<img class="adjustButton button" src="images/plus-button.svg" v-on="click: increaseFontSize">
<label>Increase</label>
</span>
</div>

<!-- Indentation amount -->
<div id="indentation" class="section">
<p class="label">Indentation amount</p>
<div id="indentationAmount">
<span class="adjustButtonContainer">
<img class="adjustButton button" src="images/minus-button.svg" v-on="click: decreaseTabSize">
<input id="tabSize" type="text" v-model="tabSizeDisplay" size=3 v-on="change: updateTabSize">
<label>Decrease</label>
</span>
<input id="tabSize" type="text" v-model="tabSizeDisplay" size=3 v-on="change: updateTabSize">
<span class="adjustButtonContainer">
<img class="adjustButton button" src="images/plus-button.svg" v-on="click: increaseTabSize">
</div>
<label>Increase</label>
</span>

<div id="indentOptions" class="hiddenRadio radioOptions">
<input type="radio" value="spaces" id="tabTypeS" v-model="tabType">
<label class="radioSelection" for="tabTypeS">spaces</label>
<label class="radioSelection" for="tabTypeS">Spaces</label>
<input type="radio" value="tabs" id="tabTypeT" v-model="tabType">
<label class="radioSelection" for="tabTypeT">tabs</label>
<label class="radioSelection" for="tabTypeT">Tabs</label>
</div>
</div>

Expand All @@ -34,9 +44,9 @@
<p class="label">Word wrap</p>
<div id="wwOptions" class="hiddenRadio radioOptions">
<input type="radio" value="true" id="wordWrapOn" v-model="wordWrap">
<label class="radioSelection" for="wordWrapOn">on</label>
<label class="radioSelection" for="wordWrapOn">On</label>
<input type="radio" value="false" id="wordWrapOff" v-model="wordWrap">
<label class="radioSelection" for="wordWrapOff">off</label>
<label class="radioSelection" for="wordWrapOff">Off</label>
</div>
</div>

Expand All @@ -45,9 +55,9 @@
<p class="label">Run in browser</p>
<div id="ribOptions" class="hiddenRadio radioOptions">
<input type="radio" value=true id="runInBrowserOn" v-model="runInBrowser">
<label class="radioSelection" for="runInBrowserOn">on</label>
<label class="radioSelection" for="runInBrowserOn">On</label>
<input type="radio" value=false id="runInBrowserOff" v-model="runInBrowser">
<label class="radioSelection" for="runInBrowserOff">off</label>
<label class="radioSelection" for="runInBrowserOff">Off</label>
</div>
</div>

Expand All @@ -71,9 +81,9 @@
<p class="label">Show sidebar</p>
<div id="ssOptions" class="hiddenRadio radioOptions">
<input type="radio" value="true" id="showSidebarOn" v-model="showSidebar">
<label class="radioSelection" for="showSidebarOn">on</label>
<label class="radioSelection" for="showSidebarOn">On</label>
<input type="radio" value="false" id="showSidebarOff" v-model="showSidebar">
<label class="radioSelection" for="showSidebarOff">off</label>
<label class="radioSelection" for="showSidebarOff">Off</label>
</div>
</div>

Expand Down