Skip to content

Commit

Permalink
refactor(style): use class as style selector
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Feb 27, 2021
1 parent d18ee7f commit 52312b6
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 60 deletions.
2 changes: 1 addition & 1 deletion src/main/frontend/components/settings.cljs
Expand Up @@ -150,7 +150,7 @@
dark? (= "dark" theme)
switch-theme (if dark? "white" "dark")]
(rum/with-context [[t] i18n/*tongue-context*]
[:div#settings
[:div#settings.cp__settings-main
[:h1.title (t :settings)]

[:div.panel-wrap
Expand Down
114 changes: 57 additions & 57 deletions src/main/frontend/components/settings.css
@@ -1,4 +1,61 @@
.cp__settings {
&-main {
padding-bottom: 20px;

> h1.title {
margin-bottom: .8rem;
}

hr {
margin: 1rem 0;
opacity: .5;
}

.panel-wrap {
padding: 0 12px;

> .it {
margin-bottom: 0;
padding-bottom: 15px;
align-items: center;

label {
display: flex;
align-items: center;

& + div {
display: flex;
align-items: center;
min-height: 24px;
user-select: none;

.max-w-lg {
width: 100%;
}
}
}

&.app-updater {
padding-top: 15px;
align-items: start;

> .wrap {
display: block;

.ver {
position: relative;
top: -2px;
}
}
}

.form-select, .form-input {
width: 68%;
}
}
}
}

&-app-updater {
min-height: 20px;
position: relative;
Expand Down Expand Up @@ -42,60 +99,3 @@
}
}
}

#settings {
padding-bottom: 20px;

> h1.title {
margin-bottom: .8rem;
}

hr {
margin: 1rem 0;
opacity: .5;
}

.panel-wrap {
padding: 0 12px;

> .it {
margin-bottom: 0;
padding-bottom: 15px;
align-items: center;

label {
display: flex;
align-items: center;

& + div {
display: flex;
align-items: center;
min-height: 24px;
user-select: none;

.max-w-lg {
width: 100%;
}
}
}

&.app-updater {
padding-top: 15px;
align-items: start;

> .wrap {
display: block;

.ver {
position: relative;
top: -2px;
}
}
}

.form-select, .form-input {
width: 68%;
}
}
}
}
6 changes: 4 additions & 2 deletions src/main/frontend/components/sidebar.css
Expand Up @@ -56,11 +56,13 @@
background-color: var(--ls-primary-background-color);

max-height: 80vh;
max-width: 800px;
min-width: 62vw;
overflow: auto;
margin: -25px;
padding: 20px;

@screen sm {
width: 768px;
}
}

.cp__sidebar-layout {
Expand Down

0 comments on commit 52312b6

Please sign in to comment.