Reindent scss files to use 4 spaces instead of 2.

This commit is contained in:
Arpad Csanyi
2016-06-12 17:11:19 +02:00
parent bc73036b71
commit ad29d8be7b
3 changed files with 343 additions and 343 deletions

View File

@@ -1,244 +1,244 @@
#main-content { #main-content {
margin-left: 250px; margin-left: 250px;
} }
#sidebar-menu { #sidebar-menu {
background-color: #f5f5f5; background-color: #f5f5f5;
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
position: fixed; position: fixed;
overflow-y: auto; overflow-y: auto;
width: 250px; width: 250px;
height: 100%; height: 100%;
} }
// General list styles for the sidebar-menu. // General list styles for the sidebar-menu.
ul { ul {
padding: 0;
margin: 0;
li {
list-style: none;
padding: 0; padding: 0;
} margin: 0;
li {
list-style: none;
padding: 0;
}
} }
.sidebar { .sidebar {
&__level-1 { &__level-1 {
padding: .5rem 1rem; padding: .5rem 1rem;
font-size: 2rem; font-size: 2rem;
line-height: 3rem; line-height: 3rem;
&--item { &--item {
margin-top: 0; margin-top: 0;
&:nth-child(1) { &:nth-child(1) {
margin: 0; margin: 0;
} }
} }
.fa-chevron-up, .fa-chevron-up,
.fa-chevron-down { .fa-chevron-down {
margin-right: 1rem; margin-right: 1rem;
font-size: 1.5rem; font-size: 1.5rem;
position: relative; position: relative;
top: .5rem; top: .5rem;
display: none; display: none;
}
&:hover {
.fa-chevron-up,
.fa-chevron-down {
display: inline-block;
}
}
}
// General spacing of level-1 and level-2 elements.
&__level-1,
&__level-2 {
padding-left: 15px;
}
&__level-2 {
margin-left: 15px;
&--item {
padding: 0 20px 0 0;
&.active {
background-color: #555;
color: #fff;
.fa-star {
color: #fff;
} }
&:hover { &:hover {
background-color: #555; .fa-chevron-up,
.fa-chevron-down {
display: inline-block;
}
} }
}
// General "right side" icon theming.
.fa.pull-right {
position: relative;
top: 2px;
}
.fa-star {
color: #666;
}
} }
}
// General hover over menu items. // General spacing of level-1 and level-2 elements.
&__level-1, &__level-1,
&__level-2--item { &__level-2 {
&:hover { padding-left: 15px;
cursor: pointer; }
background-color: rgba(0, 0, 0, 0.05);
&__level-2 {
margin-left: 15px;
&--item {
padding: 0 20px 0 0;
&.active {
background-color: #555;
color: #fff;
.fa-star {
color: #fff;
}
&:hover {
background-color: #555;
}
}
// General "right side" icon theming.
.fa.pull-right {
position: relative;
top: 2px;
}
.fa-star {
color: #666;
}
}
}
// General hover over menu items.
&__level-1,
&__level-2--item {
&:hover {
cursor: pointer;
background-color: rgba(0, 0, 0, 0.05);
}
} }
}
} }
.menu--bottom { .menu--bottom {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%; width: 100%;
.sidebar { .sidebar {
&__level-1 { &__level-1 {
background-color: transparent; background-color: transparent;
padding: 1rem; padding: 1rem;
}
} }
}
} }
.pane-title { .pane-title {
margin-bottom: 1em; margin-bottom: 1em;
&__name, &__name,
&__abbrev { &__abbrev {
border: none; border: none;
border-bottom: 2px dotted #999; border-bottom: 2px dotted #999;
padding: 0 .5rem; padding: 0 .5rem;
margin: 0 .25rem; margin: 0 .25rem;
&.active { &.active {
box-shadow: 0 0 0px 1px #ccc, 0 0 5px 0px #ccc; box-shadow: 0 0 0px 1px #ccc, 0 0 5px 0px #ccc;
border-color: transparent; border-color: transparent;
}
} }
}
} }
.keymap { .keymap {
&__is-default { &__is-default {
&.fa-star { &.fa-star {
color: #333; color: #333;
} }
&.fa-star-o { &.fa-star-o {
color: #333; color: #333;
} }
&:hover { &:hover {
color: #555; color: #555;
cursor: pointer; cursor: pointer;
}
} }
}
} }
.uhk { .uhk {
&__layer-switcher { &__layer-switcher {
&--wrapper { &--wrapper {
position: relative; position: relative;
&:before { &:before {
content: attr(data-title); content: attr(data-title);
display: inline-block; display: inline-block;
position: absolute; position: absolute;
bottom: -0.3em; bottom: -0.3em;
right: 100%; right: 100%;
font-size: 2.4rem; font-size: 2.4rem;
padding-right: .25em; padding-right: .25em;
margin: 0; margin: 0;
} }
}
} }
}
} }
.keyboard-slider { .keyboard-slider {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
width: 100%;
height: auto;
.uhk__layer-wrapper {
width: 100%; width: 100%;
height: auto; height: auto;
text-align: center;
position: absolute;
left: 100%;
&.current { .uhk__layer-wrapper {
left: 0; width: 100%;
} height: auto;
text-align: center;
position: absolute;
left: 100%;
.uhk { &.current {
max-width: 100%; left: 0;
width: 98%; }
.uhk {
max-width: 100%;
width: 98%;
}
} }
}
} }
.key-editor__popup { .key-editor__popup {
border: none; border: none;
width: 0px; width: 0px;
height: 0px; height: 0px;
// Static setting for quick portotyping. // Static setting for quick portotyping.
position: absolute; position: absolute;
top: 215px; top: 215px;
left: 50%; left: 50%;
margin-left: -310px; margin-left: -310px;
} }
svg.uhk { svg.uhk {
rect { rect {
&.active { &.active {
//TODO: use a color variable instead of the declaration below. //TODO: use a color variable instead of the declaration below.
fill: #337ab7; fill: #337ab7;
}
} }
}
} }
/* GitHub ribbon */ /* GitHub ribbon */
.github-fork-ribbon { .github-fork-ribbon {
background-color: #a00; background-color: #a00;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
position: fixed; position: fixed;
right: -50px; right: -50px;
bottom: 40px; bottom: 40px;
z-index: 999999; z-index: 999999;
-webkit-transform: rotate(-45deg); -webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg); -moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg); -ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg); -o-transform: rotate(-45deg);
transform: rotate(-45deg); transform: rotate(-45deg);
-webkit-box-shadow: 0 0 10px #888; -webkit-box-shadow: 0 0 10px #888;
-moz-box-shadow: 0 0 10px #888; -moz-box-shadow: 0 0 10px #888;
box-shadow: 0 0 10px #888; box-shadow: 0 0 10px #888;
a { a {
border: 1px solid #faa; border: 1px solid #faa;
color: #fff; color: #fff;
display: block; display: block;
font: bold 81.25% 'Helvetica Neue', Helvetica, Arial, sans-serif; font: bold 81.25% 'Helvetica Neue', Helvetica, Arial, sans-serif;
margin: 1px 0; margin: 1px 0;
padding: 10px 50px; padding: 10px 50px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
text-shadow: 0 0 5px #444; text-shadow: 0 0 5px #444;
} }
} }

View File

@@ -1,93 +1,93 @@
.main-wrapper { .main-wrapper {
width: 500px; width: 500px;
} }
h1 { h1 {
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.action--item { .action--item {
padding-left: 8px; padding-left: 8px;
} }
.action--item.active, .action--item.active,
.action--item.active:hover { .action--item.active:hover {
background-color: white; background-color: white;
font-weight: bold; font-weight: bold;
color: black; color: black;
border-color: black; border-color: black;
z-index: 10; z-index: 10;
} }
.macro-settings { .macro-settings {
border: 1px solid black; border: 1px solid black;
border-top-color: #999; border-top-color: #999;
z-index: 100; z-index: 100;
} }
.macro-settings .helper { .macro-settings .helper {
position: absolute; position: absolute;
display: block; display: block;
height: 13px; height: 13px;
background: #FFF; background: #FFF;
width: 100%; width: 100%;
left: 0; left: 0;
top: -14px; top: -14px;
} }
.action--item.active.callout, .action--item.active.callout,
.macro-settings.callout { .macro-settings.callout {
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5); box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5);
} }
.list-group-item .move-handle:hover { .list-group-item .move-handle:hover {
cursor: move; cursor: move;
} }
.action--edit { .action--edit {
float: right; float: right;
} }
.action--edit:hover { .action--edit:hover {
color: #337ab7; color: #337ab7;
cursor: pointer; cursor: pointer;
} }
.action--trash { .action--trash {
float: right; float: right;
margin-right: 1rem; margin-right: 1rem;
} }
.action--trash:hover { .action--trash:hover {
color: #d9534f; color: #d9534f;
cursor: pointer; cursor: pointer;
} }
.action--edit__form { .action--edit__form {
background-color: whtie; background-color: whtie;
margin-left: -.5rem; margin-left: -.5rem;
margin-right: -15px; margin-right: -15px;
margin-top: 15px; margin-top: 15px;
padding-top: 15px; padding-top: 15px;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
} }
.flex-button-wrapper { .flex-button-wrapper {
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
} }
.flex-button { .flex-button {
align-self: flex-end; align-self: flex-end;
} }
.add-new__action-item:hover { .add-new__action-item:hover {
cursor: pointer; cursor: pointer;
} }
.add-new__action-item--link, .add-new__action-item--link,
.add-new__action-item--link:active, .add-new__action-item--link:active,
.add-new__action-item--link:hover { .add-new__action-item--link:hover {
text-decoration: none; text-decoration: none;
color: #337ab7; color: #337ab7;
} }

View File

@@ -1,191 +1,191 @@
.popover { .popover {
padding: 0; padding: 0;
&.bottom { &.bottom {
> .arrow { > .arrow {
border-bottom-color: #000; border-bottom-color: #000;
&:after { &:after {
border-bottom-color: #f7f7f7; border-bottom-color: #f7f7f7;
} }
}
} }
}
} }
.popover-content { .popover-content {
padding: 10px 24px; padding: 10px 24px;
} }
.popover-title { .popover-title {
&.menu-tabs { &.menu-tabs {
padding: .5rem .5rem 0; padding: .5rem .5rem 0;
display: block; display: block;
} }
&.menu-button-group { &.menu-button-group {
display: none; display: none;
} }
&.menu-tabs { &.menu-tabs {
.nav-tabs { .nav-tabs {
position: relative; position: relative;
top: 1px; top: 1px;
}
} }
}
} }
.popover-actions { .popover-actions {
padding: 8px 14px; padding: 8px 14px;
margin: 0; margin: 0;
font-size: 14px; font-size: 14px;
background-color: #f7f7f7; background-color: #f7f7f7;
border-top: 1px solid #ebebeb; border-top: 1px solid #ebebeb;
border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px;
text-align: right; text-align: right;
} }
.select2-container { .select2-container {
z-index: 100000; z-index: 100000;
} }
.scancode--searchterm { .scancode--searchterm {
color: lightgray; color: lightgray;
float: right; float: right;
} }
.layout-abbreviation { .layout-abbreviation {
font-weight: bold; font-weight: bold;
color: #FFF; color: #FFF;
background: #333; background: #333;
padding: 4px 8px; padding: 4px 8px;
font-family: monospace; font-family: monospace;
margin-right: .5em; margin-right: .5em;
} }
.layout-preview img { .layout-preview img {
max-width: 100%; max-width: 100%;
margin-top: 10px; margin-top: 10px;
} }
.key-editor--none__description { .key-editor--none__description {
p { p {
padding: 2rem 0; padding: 2rem 0;
margin: 0; margin: 0;
text-align: center; text-align: center;
} }
} }
.select2-item { .select2-item {
position: relative; position: relative;
font-size: 1.5rem; font-size: 1.5rem;
&.keymap-name--wrapper { &.keymap-name--wrapper {
padding-left: 50px; padding-left: 50px;
} }
.layout-segment-code { .layout-segment-code {
height: 2rem; height: 2rem;
position: absolute; position: absolute;
left: 0; left: 0;
top: 50%; top: 50%;
margin-top: -1rem; margin-top: -1rem;
} }
} }
.preview-wrapper { .preview-wrapper {
img { img {
max-width: 100%; max-width: 100%;
} }
} }
.global-key-setup { .global-key-setup {
&.disabled { &.disabled {
opacity: 0; opacity: 0;
.setting-label { .setting-label {
color: #999; color: #999;
}
} }
}
} }
.setting-label { .setting-label {
&.disabled { &.disabled {
color: #999; color: #999;
} }
} }
.global-key-setup--wrapper { .global-key-setup--wrapper {
position: relative; position: relative;
.disabled-state--text { .disabled-state--text {
position: absolute; position: absolute;
top: 50%; top: 50%;
margin-top: -4rem; margin-top: -4rem;
} }
} }
.mouse { .mouse {
&.popover-content { &.popover-content {
padding: 10px; padding: 10px;
display: flex; display: flex;
align-items: center; align-items: center;
} }
&__action { &__action {
&--type { &--type {
.nav { .nav {
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
li { li {
a { a {
border-top-right-radius: 0; border-top-right-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
&.selected { &.selected {
font-style: italic; font-style: italic;
}
}
&.active {
a {
&.selected {
font-style: normal;
}
&:after {
content: '';
display: block;
position: absolute;
width: 0;
height: 0;
top: 0;
right: -4rem;
border-color: transparent transparent transparent #337ab7;
border-style: solid;
border-width: 2rem;
}
}
}
}
} }
}
&.active {
a {
&.selected {
font-style: normal;
}
&:after {
content: '';
display: block;
position: absolute;
width: 0;
height: 0;
top: 0;
right: -4rem;
border-color: transparent transparent transparent #337ab7;
border-style: solid;
border-width: 2rem;
}
}
}
} }
}
}
&--config { &--config {
.btn-placeholder { .btn-placeholder {
visibility: hidden; visibility: hidden;
} }
}
} }
}
} }
.help-text { .help-text {
&--mouse-speed { &--mouse-speed {
margin-bottom: 2rem; margin-bottom: 2rem;
font-size: .9em; font-size: .9em;
color: #666; color: #666;
p { p {
margin: 0; margin: 0;
}
} }
}
} }