parent
							
								
									341e91ebc5
								
							
						
					
					
						commit
						1715db71a5
					
				@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					/**
 | 
				
			||||||
 | 
					 *  <div class="hero">
 | 
				
			||||||
 | 
					 *      <img src="image.png" alt="image" />
 | 
				
			||||||
 | 
					 *  </div>
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@mixin plain-ui__component__hero()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    .hero {
 | 
				
			||||||
 | 
					        position: relative;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        img {
 | 
				
			||||||
 | 
					            width: 100%;
 | 
				
			||||||
 | 
					            object-fit: cover;
 | 
				
			||||||
 | 
					            object-position: 50% 50%;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        &--contain {
 | 
				
			||||||
 | 
					            object-fit: contain;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,43 @@
 | 
				
			|||||||
 | 
					/**
 | 
				
			||||||
 | 
					 *  <figure class="media-figure">
 | 
				
			||||||
 | 
					 *      <img class="media__img" src="https://via.placeholder.com/150" />
 | 
				
			||||||
 | 
					 *      <figcaption class="media-figure__caption">
 | 
				
			||||||
 | 
					 *          food truck yr franzen pabst
 | 
				
			||||||
 | 
					 *      </figcaption>
 | 
				
			||||||
 | 
					 *  </figure>
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@mixin plain-ui__component__media()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    .figure {
 | 
				
			||||||
 | 
					        margin: 0;
 | 
				
			||||||
 | 
					        display: inline-block;
 | 
				
			||||||
 | 
					        line-height: 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        border: 1px solid $plain-ui__primary-light;
 | 
				
			||||||
 | 
					        border-radius: 2px;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        overflow: hidden;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        &__caption {
 | 
				
			||||||
 | 
					            padding: 0.75em 1.1em;
 | 
				
			||||||
 | 
					            font-size: 0.7rem;
 | 
				
			||||||
 | 
					            background: $plain-ui__primary-light;
 | 
				
			||||||
 | 
					            line-height: $plain-ui__line-height;
 | 
				
			||||||
 | 
					            margin: 0;
 | 
				
			||||||
 | 
					            color: white;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        img.media {
 | 
				
			||||||
 | 
					            border: 0;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    img.media {
 | 
				
			||||||
 | 
					        border-radius: 2px;
 | 
				
			||||||
 | 
					        border: 1px solid $plain-ui__primary-light;
 | 
				
			||||||
 | 
					        width: 100%;
 | 
				
			||||||
 | 
					        height: auto;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,67 @@
 | 
				
			|||||||
 | 
					/**
 | 
				
			||||||
 | 
					 *  components: table
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  <table class="table table--striped">
 | 
				
			||||||
 | 
					 *      <thead>
 | 
				
			||||||
 | 
					 *          <tr>
 | 
				
			||||||
 | 
					 *              <th>name</th>
 | 
				
			||||||
 | 
					 *              <th>age</th>
 | 
				
			||||||
 | 
					 *          </tr>
 | 
				
			||||||
 | 
					 *      </thead>
 | 
				
			||||||
 | 
					 *      <tbody>
 | 
				
			||||||
 | 
					 *          <tr>
 | 
				
			||||||
 | 
					 *              <td>The Shawshank Redemption</td>
 | 
				
			||||||
 | 
					 *              <td>12</td>
 | 
				
			||||||
 | 
					 *          </tr>
 | 
				
			||||||
 | 
					 *      </tbody>
 | 
				
			||||||
 | 
					 *  </table>
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  @author Björn Hase, Tentakelfabrik
 | 
				
			||||||
 | 
					 *  @license http://opensource.org/licenses/MIT The MIT License
 | 
				
			||||||
 | 
					 *  @link https://github.com/tentakelfabrik/crispy-css
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$crispy__table__padding: $crispy__padding !default;
 | 
				
			||||||
 | 
					$crispy__table__padding-breakpoints: $crispy__padding-breakpoints !default;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$crispy__table__td__border: 1px solid $crispy__color-border !default;
 | 
				
			||||||
 | 
					$crispy__table__th__border-width: 2px !default;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$crispy__table__color: $crispy__color-text !default;
 | 
				
			||||||
 | 
					$crispy__table__striped__background-color: $crispy__color-grey-light !default;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@mixin crispy__table() {
 | 
				
			||||||
 | 
					    .table {
 | 
				
			||||||
 | 
					        width: 100%;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        &--striped {
 | 
				
			||||||
 | 
					            tr {
 | 
				
			||||||
 | 
					                &:nth-child(even) {
 | 
				
			||||||
 | 
					                    background-color: $crispy__table__striped__background-color;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        &--scroll {
 | 
				
			||||||
 | 
					            overflow-x: auto;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        td {
 | 
				
			||||||
 | 
					            color: $crispy__table__color;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        td,
 | 
				
			||||||
 | 
					        th {
 | 
				
			||||||
 | 
					            text-align: left;
 | 
				
			||||||
 | 
					            border-bottom: $crispy__table__td__border;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            padding: $crispy__table__padding;
 | 
				
			||||||
 | 
					            @include crispy__media-breakpoints('padding', $crispy__table__padding-breakpoints);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        th {
 | 
				
			||||||
 | 
					            border-bottom-width: $crispy__table__th__border-width;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
					Loading…
					
					
				
		Reference in new issue