all repos — hastystyles @ aa0df1e5c0320989736d404e672838d727b2df3e

The stylesheets for HastyScrybe and HastySite.

src/styles/_mixins.less

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
.mix-box (@bg-color, @fg-color, @border-color) {
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip :padding-box;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  margin: 10px auto;
  padding: 2px 4px 0 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  color: @fg-color;
  background-color: @bg-color;
  border:1px solid @border-color;
  code, samp, pre {
    color: @fg-color;
  }
  a {
    color: @dark-blue;
  }
  p {
    margin: 0 auto;
  }
  @media screen and (min-width: 880px) {
    margin-left: 80px;
    margin-right: 80px;
  }
}

.mix-monospace {
  font-family: @monospace-font;
  font-weight: @normal-weight;
}

.mix-no-border-radius {
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
}

.mix-inline-box (@bg-color, @fg-color, @border-color) {
  color: @fg-color;
  background-color: @bg-color;
  padding:0 3px 0;
  display: inline-block;
  width: auto;
  margin: 1px;
  -webkit-border-radius:2px;
  -moz-border-radius:2px;
  border-radius:2px;
  -moz-background-clip:padding;
  -webkit-background-clip:padding-box;
  background-clip:padding-box;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  box-shadow:0 1px 3px rgba(0,0,0,0.1);
}

.mix-badge (@text, @color, @bg-color){
  color: @color;
  &:before {
    .mix-inline-box(@bg-color, @color, @color);
    -webkit-border-radius:4px;
    -moz-border-radius:4px;
    border-radius:4px;
    padding: 1px 1px 3px 1px;
    line-height: 95%;
    width: 70px;
    text-align: center;
    margin-right: 3px;
    box-shadow: none;
    font-size: 90%;
    font-variant: small-caps;
    font-weight: @bold-weight;
    content: @text;
  }
}


.mix-titled-block (@bg-color, @fg-color, @border-color){
  .mix-box(@bg-color, @fg-color, @border-color);
  font-size: 95%;
  & > p {
    margin: 0 auto;
    &:first-child {
      font-weight: @bold-weight;
      color: @fg-color;
    }
  }
  pre, code {
    font-size: 400;  
    color: darken(@fg-color, 10%);
  }
  a {
    color: darken(@fg-color, 15%);
  }
}

.mix-red-badge (@text){
  .mix-badge(@text, @bright-red, @lighter-red);
}

.mix-green-badge (@text){
  .mix-badge(@text, @dark-green, @lighter-green);
}

.mix-yellow-badge (@text){
  .mix-badge(@text, @dark-yellow, @lighter-yellow);
}

.mix-symbol (@symbol, @color, @size:100%, @space:" "){
  &:before {
    background: url("#fa-@{symbol}") no repeat;
  }
}

.mix-circle (@color, @size:100%){
  .mix-symbol("circle", @color, @size);
}

.mix-hyphens (@val) {
	hyphens: @val;
}

.mix-responsive {
  @media screen and (max-width: 639px) {
    overflow-y: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    td {
      white-space: nowrap;
    }
  }
}