No notes defined.

<ul class="blockLinks  blockLinks--navy">
    <li>
        <a href="" class="blockLink">
            <div class="blockLink__title">SSW Events</div>
        </a>
        <ul class="blockLinks__dateList">
            <li>
                <a href="" class="blockLinks__dateListLink">
                    <span class="blockLink__date">Feb 21</span>
                    <span class="blockLink__desc">For Admitted Students - Connect Virtually with Current MSW Students!</span>
                </a>
            </li>
            <li>
                <a href="" class="blockLinks__dateListLink">
                    <span class="blockLink__date">Feb 21</span>
                    <span class="blockLink__desc">MSW Prospective Student Information Session - In Person</span>
                </a>
            </li>
            <li>
                <a href="" class="blockLinks__dateListLink">
                    <span class="blockLink__date">Feb 22</span>
                    <span class="blockLink__desc">Black Excellence Celebration</span>
                </a>
            </li>
        </ul>
    </li>
</ul>
<ul class="blockLinks  blockLinks--navy">
	<li>
		<a href="" class="blockLink">
			<div class="blockLink__title">SSW Events</div>
		</a>
		<ul class="blockLinks__dateList">
			<li>
				<a href="" class="blockLinks__dateListLink">
					<span class="blockLink__date">Feb 21</span>
					<span class="blockLink__desc">For Admitted Students - Connect Virtually with Current MSW Students!</span>
				</a>
			</li>
			<li>
				<a href="" class="blockLinks__dateListLink">
					<span class="blockLink__date">Feb 21</span>
					<span class="blockLink__desc">MSW Prospective Student Information Session - In Person</span>
				</a>
			</li>
			<li>
				<a href="" class="blockLinks__dateListLink">
					<span class="blockLink__date">Feb 22</span>
					<span class="blockLink__desc">Black Excellence Celebration</span>
				</a>
			</li>
		</ul>
	</li>
</ul>
  • Content:
    .blockLinks {
    	--background: #{$primary};
    	--color: #{choose-contrast-color-prefer-white($primary)};
    
    	margin: 0 0 $spacing-sm;
    	padding: 0;
    	list-style: none;
    
    	li {
    		margin: 0;
    	}
    
    	a {
    		color: var(--color, white);
    	}
    
    	&__dateList {
    		margin: 0;
    		list-style: none;
    		padding: 0;
    		border-bottom: 1px inset rgba(white, 0.25);
    		@include line-height('compact');
    		background: var(--background, #{$primary});
    		color: var(--color, white);
    
    		> li {
    			&:nth-child(odd) {
    				background: rgba(white, 0.1);
    			}
    		}
    	}
    }
    
    .blockLink {
    	--background: var(--background, #{$primary});
    	--color: var(--background, #{choose-contrast-color-prefer-white($primary)});
    
    	display: block;
    	position: relative;
    	text-decoration: none;
    	@include line-height('compact');
    	padding: $spacing-xs $spacing-sm;
    	background: var(--background, #{$primary});
    	color: var(--color, white);
    	border-bottom: 1px inset rgba(white, 0.25);
    
    	&__title {
    		@include typescale('lg');
    		font-weight: bold;
    	}
    
    	&__desc {
    		margin-top: $spacing-3xs;
    		@include typescale('sm');
    	}
    
    	&__date {
    		color: $secondary;
    		font-weight: bold;
    		text-transform: uppercase;
    		@include typescale('sm');
    
    		&::after {
    			content: ' - ';
    			color: white;
    		}
    	}
    
    	&::before {
    		content: '';
    		display: block;
    		float: right;
    		width: 1.5em;
    		height: 1em;
    		margin: 0.2em 0 0.2em 1em;
    		background: center center / contain no-repeat url('#{$assets-directory}/img/rarr-secondary.svg');
    		transition: transform 150ms ease-in-out;
    	}
    
    	@include clearfix;
    
    	// States
    
    	&:hover, &:focus {
    		color: var(--color, white);
    
    		.blockLink__title {
    			text-decoration: underline;
    		}
    
    		&::before {
    			transform: translateX(0.2em);
    		}
    	}
    }
    
    .blockLinks__dateListLink {
    	display: block;
    	padding: $spacing-xs $spacing-sm;
    	text-decoration: none;
    
    	&:hover, &:focus {
    		.blockLink__desc {
    			text-decoration: underline;
    		}
    	}
    }
    
    // Variants
    
    .blockLink--tertiary,
    .blockLinks--tertiary,
    .blockLinks--tertiary .blockLink {
    	--background: #{$tertiary};
    	--color: #{choose-contrast-color-prefer-white($tertiary)};
    }
    
    .blockLink--navy,
    .blockLinks--navy,
    .blockLinks--navy .blockLink {
    	--background: #{$navy};
    	--color: #{choose-contrast-color-prefer-white($navy)};
    }
    
    
    // Layout Utility
    
    .blockLinksGrid {
    	display: flex;
    	flex-wrap: wrap;
    	column-gap: $grid-gutter-small;
    
    	> .blockLinks {
    		flex: 1 1 14em;
    	}
    }
  • URL: /components/raw/block-links/_block-links.scss
  • Filesystem Path: web/themes/custom/um-ssw/components/block-links/_block-links.scss
  • Size: 2.4 KB