Sha256: 9b55fc784ae264be43e13f51c4e8766bf34aa084ceee017b61706ed99cb32ae5

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 KB

Contents

// resets & defaults
.box, .box > .header, .box > .body, .box > .footer {
  display: block; position: relative;
  margin: 0; padding: 0;
}


.box {
  margin: 0 0 $vertical-spacing; 
  padding: 10px;
  text-align: left;
  background: #fff;
  border: solid 1px $main-border-color;
  border-radius: 3px;
  
	& > .header {
		padding: 0 10px 10px;
		border-bottom: solid 1px $main-border-color;
    
		& > h1, & > h2, & > h3, & > h4, & > h5, & > h6, & > p {
      &:first-child { margin-top: 0; }
      &:last-child { margin-bottom: 0; }
    }
		&.blank { border-bottom: solid 1px transparent; }
	}
  & > .sub-header {
      padding: 10px;
      background: #f4f4f4;
  }
	& > .body {
		padding: 10px;
	}
  & > .footer {
	    border-top: solid 1px $main-border-color;
	    padding: 10px;
	    .btn { margin-top: 0; margin-bottom: 0; }
	    .row > * { margin-bottom: 0; }
	}
  
  &.blank { background: transparent; }
  &.shadow { box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.20); }
  
  &.center { text-align: center; }
  &.right { text-align: right; }
  
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
better_styles-0.0.0.338 assets/stylesheets/better/content/_box.scss
better_styles-0.0.0.337 assets/stylesheets/better/content/_box.scss
better_styles-0.0.0.336 assets/stylesheets/better/content/_box.scss
better_styles-0.0.0.335 assets/stylesheets/better/content/_box.scss
better_styles-0.0.0.334 assets/stylesheets/better/content/_box.scss