Skip to content

Commit

Permalink
Merge pull request #1424 from tvdeyen/extract-tag-list-scss
Browse files Browse the repository at this point in the history
Extract tags css rules into own file
  • Loading branch information
tvdeyen authored May 4, 2018
2 parents 122ff1f + 5303523 commit 0e92ff8
Show file tree
Hide file tree
Showing 6 changed files with 201 additions and 201 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/alchemy/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
@import "alchemy/sitemap";
@import "alchemy/spinner";
@import "alchemy/tables";
@import "alchemy/tags";
@import "alchemy/trash";
@import "alchemy/lists";
@import "alchemy/upload";
Expand Down
129 changes: 0 additions & 129 deletions app/assets/stylesheets/alchemy/archive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,79 +169,6 @@ div#filter_bar {
}
}

.tag-list {
height: 100%;
padding-bottom: 138px;

&.filtered {
padding-bottom: 164px;
}

&.with_filter_bar {
padding-bottom: 218px;

&.filtered {
padding-bottom: 244px;
}
}

.js_filter_field_box {
position: absolute;
right: auto;
top: auto;
width: 200px;
z-index: 1100;
transition: background-color 200ms;

input {
width: 200px;
background-color: transparentize($white, 0.25);

&:focus {
background-color: $white;
}
}

label { display: none }
}

.js_filter_field_clear {
right: 4px;
}

ul {
list-style-type: none;
padding: 0;
margin: 40px 0 4px 0;
height: 100%;
width: 200px;
overflow-x: hidden;
overflow-y: auto;

li {
display: block;

&:first-child { margin-top: 0 }

a {
@include tag-base;
text-decoration: none;
display: block;
}

&:hover { background-color: $very-light-blue }

&.active {

a {
background-color: $dark-gray;
color: $light-gray
}
}
}
}
}

.alchemy-dialog-body {

#library_sidebar {
Expand All @@ -256,33 +183,9 @@ div#filter_bar {

#assign_image_list {
padding-right: 244px;

.tag-list ul {
height: 316px;
}

&.filtered .tag-list ul {
height: 292px;
}
}

#assign_file_list {

.tag-list ul {
height: 396px;
}

&.filtered .tag-list ul {
height: 372px;
}
}

#overlay_file_list {

&.with_tag_list {
padding-right: 234px;
}

.assign_file_file {
display: block;
margin-bottom: 4px;
Expand Down Expand Up @@ -312,38 +215,6 @@ div#filter_bar {
}
}

.picture_tags {
overflow: hidden;
position: absolute;
top: 22px;
left: $default-padding;
width: 50%;
max-height: 80%;
padding: $default-padding;
pointer-events: none;
display: none;
}

.picture_thumbnail:hover .picture_tags {
display: block;
}

.tag {
@include tag-base(
$margin: $default-margin/2 0,
$padding: $default-padding 2*$default-padding $default-padding
);
display: inline-block;
vertical-align: middle;
color: $text-color;
pointer-events: none;
font-size: $small-font-size;
}

.tags .list .tag {
padding: 0;
}

#all_files td.name a {
@include zoom-in;
}
56 changes: 0 additions & 56 deletions app/assets/stylesheets/alchemy/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,62 +47,6 @@
text-align: center;
}

#tags_tag_list {
text-align: left;
padding-top: 5px;

ul.tags {
max-height: 10em;
padding: 1px;
margin: 0;
margin-top: 2px;
overflow: auto;
text-align: left;
list-style-type: none;

li {
background-color: $medium-gray;
padding: 4px;
margin: 0 0 4px 0;
position: relative;
border-radius: $default-border-radius;

&.odd { background-color: #eaf3f9 }

input {
position: absolute;
top: 3px;
left: 4px;
}

label {
display: inline-block;
margin-left: 2em;
line-height: 1.6em;
}
}
}

.js_filter_field_box {
position: relative;
top: 0;
right: 0;
margin: 0;

.js_filter_field {
width: 100%;
}

label {
display: none
}
}

.js_filter_field_clear {
right: 4px;
}
}

#toolbar,
#overlay_toolbar {

Expand Down
15 changes: 0 additions & 15 deletions app/assets/stylesheets/alchemy/selects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,6 @@ select {
}
}

.tag_list, .autocomplete_tag_list {
.select2-container.select2-container-multi {
.select2-search-choice {
padding: 0;

div {
@include tag-base(
$padding: $default-padding 6*$default-padding $default-padding 3*$default-padding,
$margin: 0
);
}
}
}
}

.select2-drop {

.select2-search {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/alchemy/sitemap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

.sitemap_pagename_link {
display: inline-block;
display: block;
padding: 0 10px;
margin: 2px;
text-decoration: none;
Expand Down
Loading

0 comments on commit 0e92ff8

Please sign in to comment.