Skip to content

Commit

Permalink
Merge pull request Dogfalo#166 from Calamari/collection-border-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf authored Aug 13, 2021
2 parents 02d308e + 5c4367f commit 003b840
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 109 deletions.
107 changes: 107 additions & 0 deletions sass/components/_collection.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@

// Collections
.collection {
margin: $element-top-margin 0 $element-bottom-margin 0;
border: 1px solid $collection-border-color;
border-radius: $collection-border-radius;
overflow: hidden;
position: relative;

.collection-item {
background-color: $collection-bg-color;
line-height: $collection-line-height;
padding: 10px 20px;
margin: 0;
border-bottom: 1px solid $collection-border-color;

// Avatar Collection
&.avatar {
min-height: 84px;
padding-left: 72px;
position: relative;

// Don't style circles inside preloader classes.
&:not(.circle-clipper) > .circle,
:not(.circle-clipper) > .circle {
position: absolute;
width: 42px;
height: 42px;
overflow: hidden;
left: 15px;
display: inline-block;
vertical-align: middle;
}
i.circle {
font-size: 18px;
line-height: 42px;
color: #fff;
background-color: #999;
text-align: center;
}


.title {
font-size: 16px;
}

p {
margin: 0;
}

.secondary-content {
position: absolute;
top: 16px;
right: 16px;
}

}


&:last-child {
border-bottom: none;
}

&.active {
background-color: $collection-active-bg-color;
color: $collection-active-color;

.secondary-content {
color: #fff;
}
}
}
a.collection-item{
display: block;
transition: .25s;
color: $collection-link-color;
&:not(.active) {
&:hover {
background-color: $collection-hover-bg-color;
}
}
}

&.with-header {
.collection-header {
background-color: $collection-bg-color;
border-bottom: 1px solid $collection-border-color;
padding: 10px 20px;
}
.collection-item {
padding-left: 30px;
}
.collection-item.avatar {
padding-left: 72px;
}
}

}
// Made less specific to allow easier overriding
.secondary-content {
float: right;
color: $secondary-color;
}
.collapsible .collection {
margin: 0;
border: none;
}
109 changes: 0 additions & 109 deletions sass/components/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -516,115 +516,6 @@ td, th{
}


// Collections
.collection {
margin: $element-top-margin 0 $element-bottom-margin 0;
border: 1px solid $collection-border-color;
border-radius: 2px;
overflow: hidden;
position: relative;

.collection-item {
background-color: $collection-bg-color;
line-height: $collection-line-height;
padding: 10px 20px;
margin: 0;
border-bottom: 1px solid $collection-border-color;

// Avatar Collection
&.avatar {
min-height: 84px;
padding-left: 72px;
position: relative;

// Don't style circles inside preloader classes.
&:not(.circle-clipper) > .circle,
:not(.circle-clipper) > .circle {
position: absolute;
width: 42px;
height: 42px;
overflow: hidden;
left: 15px;
display: inline-block;
vertical-align: middle;
}
i.circle {
font-size: 18px;
line-height: 42px;
color: #fff;
background-color: #999;
text-align: center;
}


.title {
font-size: 16px;
}

p {
margin: 0;
}

.secondary-content {
position: absolute;
top: 16px;
right: 16px;
}

}


&:last-child {
border-bottom: none;
}

&.active {
background-color: $collection-active-bg-color;
color: $collection-active-color;

.secondary-content {
color: #fff;
}
}
}
a.collection-item{
display: block;
transition: .25s;
color: $collection-link-color;
&:not(.active) {
&:hover {
background-color: $collection-hover-bg-color;
}
}
}

&.with-header {
.collection-header {
background-color: $collection-bg-color;
border-bottom: 1px solid $collection-border-color;
padding: 10px 20px;
}
.collection-item {
padding-left: 30px;
}
.collection-item.avatar {
padding-left: 72px;
}
}

}
// Made less specific to allow easier overriding
.secondary-content {
float: right;
color: $secondary-color;
}
.collapsible .collection {
margin: 0;
border: none;
}



// Responsive Videos
.video-container {
position: relative;
Expand Down
1 change: 1 addition & 0 deletions sass/components/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ $collection-active-color: lighten($secondary-color, 55%) !default;
$collection-hover-bg-color: #ddd !default;
$collection-link-color: $secondary-color !default;
$collection-line-height: 1.5rem !default;
$collection-border-radius: 2px !default;


// 24. Progress Bar
Expand Down
1 change: 1 addition & 0 deletions sass/materialize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

// components
@import "components/global";
@import "components/collection";
@import "components/badges";
@import "components/icons-material-design";
@import "components/grid";
Expand Down

0 comments on commit 003b840

Please sign in to comment.