You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

71 lines
2.2 KiB

// Name: Description list
// Description: Styles for description lists
//
// Component: `uk-description-list`
//
// Modifiers: `uk-description-list-divider`
//
// ========================================================================
// Variables
// ========================================================================
$description-list-term-color: $global-emphasis-color !default;
$description-list-term-margin-top: $global-margin !default;
$description-list-divider-term-margin-top: $global-margin !default;
$description-list-divider-term-border-width: $global-border-width !default;
$description-list-divider-term-border: $global-border !default;
/* ========================================================================
Component: Description list
========================================================================== */
/*
* Term
*/
.uk-description-list > dt {
color: $description-list-term-color;
@if(mixin-exists(hook-description-list-term)) {@include hook-description-list-term();}
}
.uk-description-list > dt:nth-child(n+2) {
margin-top: $description-list-term-margin-top;
}
/*
* Description
*/
.uk-description-list > dd {
@if(mixin-exists(hook-description-list-description)) {@include hook-description-list-description();}
}
/* Style modifier
========================================================================== */
/*
* Line
*/
.uk-description-list-divider > dt:nth-child(n+2) {
margin-top: $description-list-divider-term-margin-top;
padding-top: $description-list-divider-term-margin-top;
border-top: $description-list-divider-term-border-width solid $description-list-divider-term-border;
@if(mixin-exists(hook-description-list-divider-term)) {@include hook-description-list-divider-term();}
}
// Hooks
// ========================================================================
@if(mixin-exists(hook-description-list-misc)) {@include hook-description-list-misc();}
// @mixin hook-description-list-term(){}
// @mixin hook-description-list-description(){}
// @mixin hook-description-list-divider-term(){}
// @mixin hook-description-list-misc(){}