/*---------------------------------------------------------------------------
03-05 Lists (BSL)
---------------------------------------------------------------------------*/
/* List Basiscs - FRAMEWORK 2024-05-05
------------------------------------------*/
ul li::marker { color: var(--clr-1); }
ul.lead li { margin-bottom: .5rem; }
/* List Grid */
:root { --list_grid-min: 300px; }
ol.list-grid, ul.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax( var(--list_grid-min), 1fr ) ); grid-gap: .65rem 2rem; }
ol.list-grid > li, ul.list-grid > li { margin-bottom: 0px; }
Basic UL List
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
Basic OL List
- Basic Numbered List item and some text
- Basic Numbered List item and some text
- Basic Numbered List item and some text
- Basic Numbered List item and some text
List Grid Helper
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
- Basic Unordered List item and some text
/* List Icons - FRAMEWORK 2024-05-05
------------------------------------------*/
:root {
--licon-width: 1.125rem;
--licon-width-lead: 1.5rem;
--licon-color: var(--clr-1);
--licon-color-light: var(--clr-1-light);
--licon-padding_left: 2rem;
--list_grid-min: 300px;
}
ul[class*="licon--"] { list-style: none; margin-left: 0; list-style-type: none; }
ul[class*="licon--"] li { color: var(--clr-body); position: relative; padding-left: calc( var(--licon-width) * 1.5 ); margin-bottom: .5rem; }
.light ul[class*="licon--"] li { color: var(--clr-white) !important; }
ul[class*="licon--"] li::before {
background-color: var(--licon-color);
content: ''; position: absolute; left: 0; top: 0; transform: translate( 0%, 0% );
width: var(--licon-width); height: var(--lineHeight); background-repeat: no-repeat;
-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.light ul[class*="licon--"] li::before{ background-color: var(--licon-color-light)!important }
ul.lead[class*="licon--"] li { padding-left: calc( var(--licon-width-lead) * 1.5 ); }
ul.lead[class*="licon--"] li::before {
background-color: var(--clr-1);
content: ''; position: absolute; left: 0; top: 0; transform: translate( 0%, 0% );
width: var(--licon-width-lead); height: var(--leadlineHeight); }
/* Bullet List */
ul.licon--bullet li::before {
mask-image: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg aria-hidden='true' focusable='false' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M480.34,211.11H31.66c-17.49,0-31.66,14.18-31.66,31.66v34.22c0,17.49,14.18,31.66,31.66,31.66h448.67c17.49,0,31.66-14.18,31.66-31.66v-34.22c0-17.49-14.18-31.66-31.66-31.66Z'></path></svg>");
}
/* Check List */
ul.licon--check li::before {
mask-image: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg aria-hidden='true' focusable='false' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M501.29,87.73c14.28,14.28,14.28,37.48,0,51.77L208.75,432.03c-14.28,14.28-37.48,14.28-51.77,0L10.71,285.76c-14.28-14.28-14.28-37.48,0-51.77,14.28-14.28,37.48-14.28,51.77,0l120.44,120.33L449.64,87.73c14.28-14.28,37.48-14.28,51.77,0h-.11Z'></path></svg>");
}
/* Dot List */
ul.licon--dot li::before {
width: calc(var(--licon-width)* 0.6);
left: calc(var(--licon-width)* 0.3);
mask-image: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg aria-hidden='true' focusable='false' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256,0C114.62,0,0,114.62,0,256s114.62,256,256,256,256-114.62,256-256S397.38,0,256,0Z'></path></svg>");
}
/* Dot List Lead */
ul.lead.licon--dot li::before {
width: calc(var(--licon-width-lead)* 0.6);
left: calc(var(--licon-width-lead)* 0.3);
mask-image: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg aria-hidden='true' focusable='false' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256,0C114.62,0,0,114.62,0,256s114.62,256,256,256,256-114.62,256-256S397.38,0,256,0Z'></path></svg>");
}
/* Star List */
ul.licon--star li::before {
mask-image: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg aria-hidden='true' focusable='false' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M283.85,25.21c-5.14-10.67-16-17.45-27.92-17.45s-22.69,6.79-27.92,17.45l-62.34,128.28-139.23,20.56c-11.64,1.75-21.33,9.89-24.92,21.04-3.59,11.15-.68,23.46,7.66,31.71l101.03,99.97-23.85,141.27c-1.94,11.64,2.91,23.46,12.51,30.35,9.6,6.88,22.3,7.76,32.77,2.23l124.4-66.42,124.4,66.42c10.47,5.53,23.17,4.75,32.77-2.23,9.6-6.98,14.45-18.71,12.51-30.35l-23.95-141.27,101.03-99.97c8.34-8.24,11.34-20.56,7.66-31.71s-13.28-19.29-24.92-21.04l-139.33-20.56-62.34-128.28Z'></path></svg>");
}
/* Heart List */
ul.licon--heart li::before {
mask-image: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg aria-hidden='true' focusable='false' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M47.6,299.2l180.7,168.7c7.5,7,17.4,10.9,27.7,10.9s20.2-3.9,27.7-10.9l180.7-168.7c30.4-28.3,47.6-68,47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141-45.6-7.6-92,7.3-124.6,39.9l-12,12-12-12c-32.6-32.6-79-47.5-124.6-39.9C50.5,54.4,0,114,0,183.9v5.8c0,41.5,17.2,81.2,47.6,109.5h0Z'></path></svg>");
}
ul.licon--bullet
- This is a bullet-list item with a bullet
- This is a bullet-list item with a bullet
- This is a bullet-list item with a bullet
ul.licon--bullet.lead
- This is a bullet-list item with a bullet
- This is a bullet-list item with a bullet
- This is a bullet-list item with a bullet
- This is a check-list item with a check
- This is a check-list item with a check
- This is a check-list item with a check
- This is a check-list item with a check
- This is a check-list item with a check
- This is a check-list item with a check
- This is a dot-list item with a dot
- This is a dot-list item with a dot
- This is a dot-list item with a dot
- This is a dot-list item with a dot
- This is a dot-list item with a dot
- This is a dot-list item with a dot
- This is a star-list item with a star
- This is a star-list item with a star
- This is a star-list item with a star
- This is a star-list item with a star
- This is a star-list item with a star
- This is a star-list item with a star
- This is a heart-list item with a heart
- This is a heart-list item with a heart
- This is a heart-list item with a heart
- This is a heart-list item with a heart
- This is a heart-list item with a heart
- This is a heart-list item with a heart
/* Number Lists - FRAMEWORK 2024-05-04
------------------------------------------*/
:root {
--num_list_circle_font_size: 1.3rem;
--num_list_circle_size: 1.875rem;
--num_list-border_color: var(--clr-4);
--num_list-border_width: 2px;
}
ol.num-list { margin-left: 0; counter-reset: li; list-style: none; display: grid; grid-template-columns: 1fr; gap: 1rem; }
ol.num-list li { position: relative; padding-left: calc( var(--num_list_circle_size) * 1.35 ); min-height: var(--num_list_circle_size); }
ol.num-list li:before {
content: counter(li);
counter-increment: li;
color: #fff;
background: var(--clr-1);
border-radius: 50%;
font-size: var(--num_list_circle_font_size);
font-weight: 700;
width: var(--num_list_circle_size);
height: var(--num_list_circle_size);
line-height: var(--num_list_circle_size);
text-align: center;
display: block;
position: absolute;
top: 0;
left: 0;
}
- This is a num-list item
- This is a num-list item
- This is a num-list item
- This is a num-list item
- This is a num-list item
- This is a num-list item