_bootstrap-custom.scss 4.43 KB
Newer Older
Jung Kwangkyu committed
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 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
// フォントのサイズ設定
@for $i from 1 through 40 {
  .fs-#{$i}{
    font-size: $i*0.1rem;
  }
}

@include media-breakpoint-up(sm){
  @for $i from 1 through 40 {
    .fs-sm-#{$i}{
      font-size: $i*0.1rem;
    }
  }
}

@include media-breakpoint-up(md){
  @for $i from 1 through 40 {
    .fs-md-#{$i}{
      font-size: $i*0.1rem;
    }
  }
}

@include media-breakpoint-up(lg){
  @for $i from 1 through 40 {
    .fs-lg-#{$i}{
      font-size: $i*0.1rem;
    }
  }
}

// 行間設定
@for $i from 0 through 40 {
  .lht-#{$i}{
    line-height: $i*10%;
  }
}

// 幅設定
@for $i from 1 through 200 {
  .w-#{$i}{
    width: $i*1%;
  }
}

@include media-breakpoint-down(sm){
  @for $i from 1 through 100 {
    .w-sm-#{$i}{
      width: $i*1%;
    }
  }
}

@include media-breakpoint-up(md){
  @for $i from 10 through 100 {
    .w-md-#{$i}{
      width: $i*1%;
    }
  }
}

@include media-breakpoint-up(lg){
  @for $i from 1 through 100 {
    .w-lg-#{$i}{
      width: $i*1%;
    }
  }
}

// ボーダー設定
@include media-breakpoint-up(lg){
  .border-lg{
    border: 1px solid lighten(#000000,90);
  }

  .border-lg-top{
    border-top: 1px solid lighten(#000000,90);
  }

  .border-lg-bottom{
    border-bottom: 1px solid lighten(#000000,90);
  }

  .border-lg-left{
    border-left: 1px solid lighten(#000000,90);
  }

  .border-lg-right{
    border-right: 1px solid lighten(#000000,90);
  }

  .border-lg-none{
    border: none !important;
  }

  .border-lg-top-none{
    border-top: none !important;
  }

  .border-lg-bottom-none{
    border-bottom: none !important;
  }

  .border-lg-left-none{
    border-left: none !important;
  }

  .border-lg-right-none{
    border-right: none !important;
  }

}

@include media-breakpoint-up(md){
  .border-md{
    border: 1px solid lighten(#000000,90);
  }

  .border-md-top{
    border-top: 1px solid lighten(#000000,90);
  }

  .border-md-bottom{
    border-bottom: 1px solid lighten(#000000,90);
  }

  .border-md-left{
    border-left: 1px solid lighten(#000000,90);
  }

  .border-md-right{
    border-right: 1px solid lighten(#000000,90);
  }

  .border-md-none{
    border: none !important;
  }

  .border-md-top-none{
    border-top: none !important;
  }

  .border-md-bottom-none{
    border-bottom: none !important;
  }

  .border-md-left-none{
    border-left: none !important;
  }

  .border-md-right-none{
    border-right: none !important;
  }

}

@include media-breakpoint-up(sm){
  .border-sm{
    border: 1px solid lighten(#000000,90);
  }

  .border-sm-top{
    border-top: 1px solid lighten(#000000,90);
  }

  .border-sm-bottom{
    border-bottom: 1px solid lighten(#000000,90);
  }

  .border-sm-left{
    border-left: 1px solid lighten(#000000,90);
  }

  .border-sm-right{
    border-right: 1px solid lighten(#000000,90);
  }

  .border-sm-none{
    border: none !important;
  }

  .border-sm-top-none{
    border-top: none !important;
  }

  .border-sm-bottom-none{
    border-bottom: none !important;
  }

  .border-sm-left-none{
    border-left: none !important;
  }

  .border-sm-right-none{
    border-right: none !important;
  }

}

// border 拡張

@each $breakpoint in map-keys($grid-breakpoints) {
  @include media-breakpoint-up($breakpoint) {
    $infix: breakpoint-infix($breakpoint, $grid-breakpoints);

    .border#{$infix}-top {      border-top: $border-width solid $border-color !important; }
    .border#{$infix}-right {    border-right: $border-width solid $border-color !important; }
    .border#{$infix}-bottom {   border-bottom: $border-width solid $border-color !important; }
    .border#{$infix}-left {     border-left: $border-width solid $border-color !important; }

    .border#{$infix}-top-0 {    border-top: 0 !important; }
    .border#{$infix}-right-0 {  border-right: 0 !important; }
    .border#{$infix}-bottom-0 { border-bottom: 0 !important; }
    .border#{$infix}-left-0 {   border-left: 0 !important; }

    .border#{$infix}-x {
      border-left: $border-width solid $border-color !important;
      border-right: $border-width solid $border-color !important;
    }

    .border#{$infix}-y {
      border-top: $border-width solid $border-color !important;
      border-bottom: $border-width solid $border-color !important;
    }
  }
}

@for $i from 0 through 10 {
  .border-#{$i}{
    border-width: $i*1px !important;
  }
}

@each $key, $color in $globalColor {
  .border-#{"" + $key} {
    border-color: $color !important;
  }
}

button{
  outline:none !important;
}


.form-control{
  &::placeholder{
    color: #cccccc;
  }
}