Skip to content

Commit

Permalink
Merge branch 'main' into issue/tiamat-theme/622
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbrown-io committed Feb 6, 2024
2 parents 163c3bd + 5e41b82 commit 533a871
Show file tree
Hide file tree
Showing 13 changed files with 836 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- ### Adds Collection Grid block and Collection Item content type
Closes #534.
Adds the collection grid block and collection item node page
---

- ### Enables list styles in full HTML, Creates Migration Library
Using Full HTML you can create various list styles found here: https://styleguide.colorado.edu/content/lists
Also creates a temporary migration library for addtl styles needed for the migration process
Expand Down
7 changes: 7 additions & 0 deletions boulder_base.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -485,3 +485,10 @@ ucb-class-notes-list-page:
css:
theme:
css/ucb-class-notes-list.css: {}
ucb-collections-block:
version: 1.x
js:
js/ucb-collections-block.js: {}
css:
theme:
css/block/ucb-collections-block.css: {}
184 changes: 184 additions & 0 deletions css/block/ucb-collections-block.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
.collection-category-line {
display: flex;
min-width: max-content;
align-items: center;
margin-bottom: 2px;
}

.category-label {
white-space: normal;
font-weight: normal;
padding: 3px 2px 3px 0;
}

.category-checkbox {
margin: 0 10px 0 0;
}

.category-filter-reset {
display: inline-block;
padding: 5px 10px;
font-weight: bold;
margin-bottom: 5px;
text-decoration: none !important;
border-radius: 3px;
background-clip: padding-box;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
transition: box-shadow 0.5s ease, background-color 0.5s ease, color 0.5s ease;
background-color: #EEEEEE;
color: #111111 !important;

background: #EEEEEE;
font-size: 85%;
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
border: 1px solid #ddd;
margin-top: 10px;
}

.category-filter-reset:hover {
background-color: #d6d6d6;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.collections-item-block {
border: 1px solid #e7e7e7;
background-color: #fff;
padding: 15px;
width: 100%;
height: 100%;
-webkit-transition: background-color 0.3s linear;
-moz-transition: background-color 0.3s linear;
-ms-transition: background-color 0.3s linear;
-o-transition: background-color 0.3s linear;
transition: background-color 0.3s linear;
}

.collections-item-block:hover {
background-color: #f4f4f4;
}

.collections-grid-block-data {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}

.collection-multiselect-multi .collections-grid-block-data {
margin-left: 20px;
}

.ucb-collection-card-container {
transition: opacity .5s ease;
margin: 5px 0px;
min-width: min-content;
}

.ucb-collection-card-img {
padding-bottom: 10px;
}

@media (min-width: 1200px) {
.ucb-collection-card-container {
width: 30%;
}
}

@media (min-width: 960px) and (max-width: 1199px) {
.ucb-collection-card-container {
width: 45%;
}
}

@media (min-width: 768px) and (max-width: 959px) {
.ucb-collection-card-container {
width: 49%;
}
}

@media (max-width: 768px) {
.ucb-collection-card-container {
width: 100%;
}
}

.collection-grid-container.collection-multiselect-single {
display: flex;
flex-direction: column;
}

.collection-grid-container.collection-multiselect-multi {
display: flex;
flex-direction: row;
}

.collection-filter-fade .ucb-collection-card-container.filtered {

opacity: .25;
}

.collection-filter-hide .ucb-collection-card-container.filtered {
display: none;
}

.collections-filter-list {
max-width: 100%;
}

.collection-grid-filters {
padding: 10px;
border: 1px solid #e7e7e7;
}

.collection-multiselect-single .category-filter-label {
font-size: 100%;
display: inline;
font-weight: bold;
}

.category-single-button {
background-color: #EFEFEF;
border: 1px solid #181818;
padding: 1px 6px;
border-radius: 2px;
margin: 0 5px 5px 0;
}

.collection-reset {
margin-left: 20px;
}

.collection-grid-filter-span {
margin-left: 20px;
}


@media (max-width: 1199px) {
.collection-multiselect-multi .collection-category-container {
display: flex;
flex-wrap: wrap;
}

.collection-grid-container.collection-multiselect-multi {
flex-direction: column;
}

.collection-multiselect-multi .collection-category-line {
margin-right: 20px;
}

.collection-multiselect-multi .collection-grid-filter-span,
.collection-multiselect-multi .collections-grid-block-data {
margin-left: 0;
}

.collection-filter-fade .ucb-collection-card-container.filtered {

display: none;
}
}

.collection-multiselect-single .collection-filter-links {
display: flex;
flex-flow: row wrap;
}
Loading

0 comments on commit 533a871

Please sign in to comment.