Skip to content

Commit

Permalink
Minor css class refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Aug 8, 2014
1 parent 03e842a commit 9c851ac
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 63 deletions.
95 changes: 46 additions & 49 deletions app/css/arethusa.scss
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,10 @@ input.compact {
@include transition(background-color 700ms ease-in-out);
}

.settings-span-button {
@extend .clickable, .margined-hor-tiny, .flash-on-hover;
}

.clickable {
cursor: pointer;
}
Expand Down Expand Up @@ -601,12 +605,6 @@ ul.no-list {
100% { opacity: 0 }
}

#keyboard {
margin: 0;
padding: 0;
list-style: none;
}

li.keyboard-key {
float: left;
margin: 0 3px 3px 0;
Expand All @@ -628,56 +626,55 @@ li.keyboard-key:hover {
}

#keyboard {
margin: 0;
padding: 0;
list-style: none;
width: 514px;
}

#keyboard .last-key {
margin-right: 0;
}
#keyboard .first-key {
clear: left;
}
#keyboard .tab, #keyboard .delete {
width: 52px;
}
#keyboard .ctrl, #keyboard .alt {
width: 52px;
}
#keyboard .capslock {
width: 60px;
}
#keyboard .return {
width: 56px;
}
#keyboard .l-shift {
width: 70px;
}
#keyboard .shift {
width: 79px;
}
.last-key {
margin-right: 0;
}

#keyboard .space {
width: 262px;
}
.tab, .delete, .ctrl, .alt {
width: 52px;
}

#keyboard .inactive {
color: rgb(228, 228, 228);
}
.capslock {
width: 60px;
}
.return {
width: 56px;
}
.l-shift {
width: 70px;
}
.shift {
width: 79px;
}

#keyboard .shifted-1 {
padding-left: 0.1em;
font-size:0.7em;
vertical-align: super;
}
.space {
width: 262px;
}

#keyboard .shifter {
cursor: pointer;
}
.inactive {
color: rgb(228, 228, 228);
}

#keyboard .key-hit {
background-color: #C3E3FF;
border: 1px solid lightgray;
box-shadow: none;
.shifted-1 {
padding-left: 0.1em;
font-size:0.7em;
vertical-align: super;
}

.shifter {
cursor: pointer;
}

.key-hit {
background-color: #C3E3FF;
border: 1px solid lightgray;
box-shadow: none;
}
}

.comments {
Expand Down
10 changes: 5 additions & 5 deletions app/templates/arethusa.dep_tree/focus_controls.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<span
title="{{ translations.changeDir }} {{ keyHints.directionChange }}"
class="margined-hor-tiny clickable flash-on-hover"
class="settings-span-button"
ng-click="changeDir()">
<i class="fi-loop rotate-on-hover"></i>
</span>
<span
title="{{ translations.focusRoot }}"
class="margined-hor-tiny clickable flash-on-hover"
class="settings-span-button"
ng-click="focusRoot()">
<i class="fa fa-crosshairs rotate-on-hover"></i>
</span>
<span
title="{{ translations.focusSel }} {{ keyHints.focusSelection}}"
class="margined-hor-tiny clickable flash-on-hover"
class="settings-span-button"
ng-click="focusSelection()">
<i class="fi-target-two rotate-on-hover"></i>
</span>
<span
title="{{ translations.centerTree }} {{ keyHints.centerTree }}"
class="margined-hor-tiny clickable flash-on-hover"
class="settings-span-button"
ng-click="centerGraph()">
<i class="fa fa-dot-circle-o"></i>
</span>
<span
title="{{ translations.perfectWidth }} {{ keyHints.perfectWidth }}"
class="margined-hor-tiny clickable flash-on-hover"
class="settings-span-button"
ng-click="perfectWidth()">
<i class="fa fa-arrows-h"></i>
</span>
4 changes: 2 additions & 2 deletions app/templates/arethusa.dep_tree/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<span ng-show="settingsOn">
<span
title="{{ translations.compact }}"
class="margined-hor-tiny clickable flash-on-hover"
class="settings-span-button"
ng-click="compactTree()">
<i class="fi-arrows-in"></i>
</span>
<span
title="{{ translations.widen }}"
class="margined-hor-tiny clickable flash-on-hover"
class="settings-span-button"
ng-click="wideTree()">
<i class="fi-arrows-out"></i>
</span>
Expand Down
7 changes: 3 additions & 4 deletions app/templates/dep_tree.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class="tree-canvas">
<div class="tree-settings">
<span
class="note clickable right margined-hor-tiny flash-on-hover"
class="note right span-settings-button"
ng-show="plugin.diffPresent"
ng-click="plugin.toggleDiff()">
Toggle Diff
</span>
<span
class="note clickable right margined-hor-tiny flash-on-hover"
class="note right span-settings-button"
style="margin-left: 10px"
unused-token-highlighter
uth-check-property="head.id">
Expand All @@ -19,7 +19,6 @@
dependency-tree
tokens="state.tokens"
styles="plugin.diffStyles()"
to-bottom
>
to-bottom>
</div>
</div>
4 changes: 2 additions & 2 deletions app/templates/history.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div>
<span class="margined-hor-tiny right clickable flash-on-hover" hist-redo/>
<span class="margined-hor-tiny right clickable flash-on-hover" hist-undo/>
<span class="settings-span-button right" hist-redo/>
<span class="settings-span-button right" hist-undo/>
<div delimiter/>
<div history-list/>
</div>
2 changes: 1 addition & 1 deletion app/templates/relation.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</div>

<div
class="note clickable right margined-hor-tiny flash-on-hover"
class="note right span-settings-button"
style="margin-top: 10px"
unused-token-highlighter
uth-check-property="relation.label">
Expand Down

0 comments on commit 9c851ac

Please sign in to comment.