<div class="a-simple-dialog " id="a-simple-dialog--fun">
    <div class="a-simple-dialog__main">
        Some content<p>and a paragraph</p>
    </div>
    <button class="a-simple-dialog__close" aria-label="">
        <svg role="img">
            <title></title>
            <use xlink:href="#close"></use>
        </svg>
    </button>
</div>
<div class="a-simple-dialog {{ modifiers_classes }}" {{#if id}}id="a-simple-dialog--{{ id }}"{{/if}}>
	<div class="a-simple-dialog__main">
		{{{ content }}}
	</div>
	<button class="a-simple-dialog__close" aria-label="{{ 'Close dialog' }}">
		<svg role="img">
			<title>{{ 'Close dialog' }}</title>
			<use xlink:href="#close"></use>
		</svg>
	</button>
</div>
  • Content:
    .a-simple-dialog {
    	@include media($_DESKTOP) {
    		display: flex;
    	}
    
    	&__main {
    		background: $color-grey-1;
    	}
    
    	// if several blocks are used, a-simple-dialog__content can be injected
    	&__content {
    		padding: 30px;
    		border-bottom: solid 1px $color-grey-2;
    	}
    
    	&--reduced-top-bottom-padding &__content {
    		padding-top: 6px;
    		padding-bottom: 6px;
    	}
    
    	&__content:last-of-type {
    		border-bottom: none;
    	}
    
    	&__close {
    		display: none;
    
    		@include media($_DESKTOP) {
    			background: $color-primary;
    			width: 40px;
    			height: 40px;
    			padding: 5px;
    			display: block;
    			transition: background-color $transition-fast $transition-ease;
    
    			@include hover {
    				background: $color-primary-dark;
    			}
    
    			@include high-contrast {
    				background-color: $color-primary-dark;
    			}
    		}
    
    		svg {
    			width: 30px;
    			height: 30px;
    			stroke: $color-white;
    		}
    	}
    }
    
  • URL: /components/raw/a-simple-dialog/_a-simple-dialog.scss
  • Filesystem Path: styleguide/src/components/atoms/a-simple-dialog/_a-simple-dialog.scss
  • Size: 855 Bytes
{
  "content": "Some content<p>and a paragraph</p>",
  "id": "fun"
}
  • Handle: @a-simple-dialog
  • Preview:
  • Filesystem Path: styleguide/src/components/atoms/a-simple-dialog/a-simple-dialog.hbs
  • Referenced by (1): @m-map

No notes defined.