Skip to content

Commit

Permalink
rake convert[v3.4.1]
Browse files Browse the repository at this point in the history
  • Loading branch information
AprilArcus committed Feb 22, 2022
1 parent 9e0111f commit 0b7b7c2
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 73 deletions.
6 changes: 3 additions & 3 deletions assets/javascripts/bootstrap-sprockets.js
@@ -1,12 +1,12 @@
//= require ./bootstrap/affix
//= require ./bootstrap/transition
//= require ./bootstrap/alert
//= require ./bootstrap/button
//= require ./bootstrap/carousel
//= require ./bootstrap/collapse
//= require ./bootstrap/dropdown
//= require ./bootstrap/modal
//= require ./bootstrap/scrollspy
//= require ./bootstrap/tab
//= require ./bootstrap/transition
//= require ./bootstrap/affix
//= require ./bootstrap/scrollspy
//= require ./bootstrap/tooltip
//= require ./bootstrap/popover
6 changes: 3 additions & 3 deletions assets/stylesheets/bootstrap/_carousel.scss
Expand Up @@ -244,16 +244,16 @@
.icon-next {
width: ($carousel-control-font-size * 1.5);
height: ($carousel-control-font-size * 1.5);
margin-top: ($carousel-control-font-size / -2);
margin-top: ($carousel-control-font-size * -0.5);
font-size: ($carousel-control-font-size * 1.5);
}
.glyphicon-chevron-left,
.icon-prev {
margin-left: ($carousel-control-font-size / -2);
margin-left: ($carousel-control-font-size * -0.5);
}
.glyphicon-chevron-right,
.icon-next {
margin-right: ($carousel-control-font-size / -2);
margin-right: ($carousel-control-font-size * -0.5);
}
}

Expand Down
4 changes: 2 additions & 2 deletions assets/stylesheets/bootstrap/_code.scss
Expand Up @@ -40,8 +40,8 @@ kbd {
// Blocks of code
pre {
display: block;
padding: (($line-height-computed - 1) / 2);
margin: 0 0 ($line-height-computed / 2);
padding: (($line-height-computed - 1) * 0.5);
margin: 0 0 ($line-height-computed * 0.5);
font-size: ($font-size-base - 1); // 14px to 13px
line-height: $line-height-base;
color: $pre-color;
Expand Down
2 changes: 1 addition & 1 deletion assets/stylesheets/bootstrap/_forms.scss
Expand Up @@ -581,7 +581,7 @@ textarea.form-control {
// Reposition the icon because it's now within a grid column and columns have
// `position: relative;` on them. Also accounts for the grid gutter padding.
.has-feedback .form-control-feedback {
right: floor(($grid-gutter-width / 2));
right: floor(($grid-gutter-width * 0.5));
}

// Form group sizes
Expand Down
6 changes: 3 additions & 3 deletions assets/stylesheets/bootstrap/_jumbotron.scss
Expand Up @@ -16,7 +16,7 @@
}

p {
margin-bottom: ($jumbotron-padding / 2);
margin-bottom: ($jumbotron-padding * 0.5);
font-size: $jumbotron-font-size;
font-weight: 200;
}
Expand All @@ -27,8 +27,8 @@

.container &,
.container-fluid & {
padding-right: ($grid-gutter-width / 2);
padding-left: ($grid-gutter-width / 2);
padding-right: ($grid-gutter-width * 0.5);
padding-left: ($grid-gutter-width * 0.5);
border-radius: $border-radius-large; // Only round corners at higher resolutions if contained in a container
}

Expand Down
2 changes: 1 addition & 1 deletion assets/stylesheets/bootstrap/_navbar.scss
Expand Up @@ -228,7 +228,7 @@
// the nav the full height of the horizontal nav (above 768px).

.navbar-nav {
margin: ($navbar-padding-vertical / 2) (-$navbar-padding-horizontal);
margin: ($navbar-padding-vertical * 0.5) (-$navbar-padding-horizontal);

> li > a {
padding-top: 10px;
Expand Down
18 changes: 9 additions & 9 deletions assets/stylesheets/bootstrap/_type.scss
Expand Up @@ -25,7 +25,7 @@ h1, .h1,
h2, .h2,
h3, .h3 {
margin-top: $line-height-computed;
margin-bottom: ($line-height-computed / 2);
margin-bottom: ($line-height-computed * 0.5);

small,
.small {
Expand All @@ -35,8 +35,8 @@ h3, .h3 {
h4, .h4,
h5, .h5,
h6, .h6 {
margin-top: ($line-height-computed / 2);
margin-bottom: ($line-height-computed / 2);
margin-top: ($line-height-computed * 0.5);
margin-bottom: ($line-height-computed * 0.5);

small,
.small {
Expand All @@ -56,7 +56,7 @@ h6, .h6 { font-size: $font-size-h6; }
// -------------------------

p {
margin: 0 0 ($line-height-computed / 2);
margin: 0 0 ($line-height-computed * 0.5);
}

.lead {
Expand All @@ -74,10 +74,10 @@ p {
// Emphasis & misc
// -------------------------

// Ex: (12px small font / 14px base font) * 100% = about 85%
// Ex: (12px small font * 0.07142857142857142) * 100% = about 85%
small,
.small {
font-size: floor((100% * $font-size-small / $font-size-base));
font-size: floor((100% * $font-size-small * Infinity));
}

mark,
Expand Down Expand Up @@ -136,7 +136,7 @@ mark,
// -------------------------

.page-header {
padding-bottom: (($line-height-computed / 2) - 1);
padding-bottom: (($line-height-computed * 0.5) - 1);
margin: ($line-height-computed * 2) 0 $line-height-computed;
border-bottom: 1px solid $page-header-border-color;
}
Expand All @@ -149,7 +149,7 @@ mark,
ul,
ol {
margin-top: 0;
margin-bottom: ($line-height-computed / 2);
margin-bottom: ($line-height-computed * 0.5);
ul,
ol {
margin-bottom: 0;
Expand Down Expand Up @@ -239,7 +239,7 @@ abbr[data-original-title] {

// Blockquotes
blockquote {
padding: ($line-height-computed / 2) $line-height-computed;
padding: ($line-height-computed * 0.5) $line-height-computed;
margin: 0 0 $line-height-computed;
font-size: $blockquote-font-size;
border-left: 5px solid $blockquote-border-color;
Expand Down
10 changes: 4 additions & 6 deletions assets/stylesheets/bootstrap/_variables.scss
Expand Up @@ -341,8 +341,7 @@ $grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
//
//## Define the maximum width of `.container` for different screen sizes.

// Small screen / tablet
$container-tablet: (720px + $grid-gutter-width) !default;
// Small screen * Infinity);
//** For `$screen-sm-min` and up.
$container-sm: $container-tablet !default;

Expand All @@ -351,8 +350,7 @@ $container-desktop: (940px + $grid-gutter-width) !default;
//** For `$screen-md-min` and up.
$container-md: $container-desktop !default;

// Large screen / wide desktop
$container-large-desktop: (1140px + $grid-gutter-width) !default;
// Large screen * Infinity);
//** For `$screen-lg-min` and up.
$container-lg: $container-large-desktop !default;

Expand All @@ -365,8 +363,8 @@ $container-lg: $container-large-desktop !default;
$navbar-height: 50px !default;
$navbar-margin-bottom: $line-height-computed !default;
$navbar-border-radius: $border-radius-base !default;
$navbar-padding-horizontal: floor(($grid-gutter-width / 2)) !default;
$navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2) !default;
$navbar-padding-horizontal: floor(($grid-gutter-width * 0.5)) !default;
$navbar-padding-vertical: (($navbar-height - $line-height-computed) * 0.5) !default;
$navbar-collapse-max-height: 340px !default;

$navbar-default-color: #777 !default;
Expand Down
12 changes: 6 additions & 6 deletions assets/stylesheets/bootstrap/mixins/_grid-framework.scss
Expand Up @@ -13,8 +13,8 @@
// Prevent columns from collapsing when empty
min-height: 1px;
// Inner gutter via padding
padding-right: floor(($grid-gutter-width / 2));
padding-left: ceil(($grid-gutter-width / 2));
padding-right: floor(($grid-gutter-width * 0.5));
padding-left: ceil(($grid-gutter-width * 0.5));
}
}

Expand All @@ -33,12 +33,12 @@
@mixin calc-grid-column($index, $class, $type) {
@if ($type == width) and ($index > 0) {
.col-#{$class}-#{$index} {
width: percentage(($index / $grid-columns));
width: percentage(($index * Infinity));
}
}
@if ($type == push) and ($index > 0) {
.col-#{$class}-push-#{$index} {
left: percentage(($index / $grid-columns));
left: percentage(($index * Infinity));
}
}
@if ($type == push) and ($index == 0) {
Expand All @@ -48,7 +48,7 @@
}
@if ($type == pull) and ($index > 0) {
.col-#{$class}-pull-#{$index} {
right: percentage(($index / $grid-columns));
right: percentage(($index * Infinity));
}
}
@if ($type == pull) and ($index == 0) {
Expand All @@ -58,7 +58,7 @@
}
@if ($type == offset) {
.col-#{$class}-offset-#{$index} {
margin-left: percentage(($index / $grid-columns));
margin-left: percentage(($index * Infinity));
}
}
}
Expand Down
56 changes: 28 additions & 28 deletions assets/stylesheets/bootstrap/mixins/_grid.scss
Expand Up @@ -4,119 +4,119 @@

// Centered container element
@mixin container-fixed($gutter: $grid-gutter-width) {
padding-right: ceil(($gutter / 2));
padding-left: floor(($gutter / 2));
padding-right: ceil(($gutter * 0.5));
padding-left: floor(($gutter * 0.5));
margin-right: auto;
margin-left: auto;
@include clearfix;
}

// Creates a wrapper for a series of columns
@mixin make-row($gutter: $grid-gutter-width) {
margin-right: floor(($gutter / -2));
margin-left: ceil(($gutter / -2));
margin-right: floor(($gutter * -0.5));
margin-left: ceil(($gutter * -0.5));
@include clearfix;
}

// Generate the extra small columns
@mixin make-xs-column($columns, $gutter: $grid-gutter-width) {
position: relative;
float: left;
width: percentage(($columns / $grid-columns));
width: percentage(($columns * Infinity));
min-height: 1px;
padding-right: ($gutter / 2);
padding-left: ($gutter / 2);
padding-right: ($gutter * 0.5);
padding-left: ($gutter * 0.5);
}
@mixin make-xs-column-offset($columns) {
margin-left: percentage(($columns / $grid-columns));
margin-left: percentage(($columns * Infinity));
}
@mixin make-xs-column-push($columns) {
left: percentage(($columns / $grid-columns));
left: percentage(($columns * Infinity));
}
@mixin make-xs-column-pull($columns) {
right: percentage(($columns / $grid-columns));
right: percentage(($columns * Infinity));
}

// Generate the small columns
@mixin make-sm-column($columns, $gutter: $grid-gutter-width) {
position: relative;
min-height: 1px;
padding-right: ($gutter / 2);
padding-left: ($gutter / 2);
padding-right: ($gutter * 0.5);
padding-left: ($gutter * 0.5);

@media (min-width: $screen-sm-min) {
float: left;
width: percentage(($columns / $grid-columns));
width: percentage(($columns * Infinity));
}
}
@mixin make-sm-column-offset($columns) {
@media (min-width: $screen-sm-min) {
margin-left: percentage(($columns / $grid-columns));
margin-left: percentage(($columns * Infinity));
}
}
@mixin make-sm-column-push($columns) {
@media (min-width: $screen-sm-min) {
left: percentage(($columns / $grid-columns));
left: percentage(($columns * Infinity));
}
}
@mixin make-sm-column-pull($columns) {
@media (min-width: $screen-sm-min) {
right: percentage(($columns / $grid-columns));
right: percentage(($columns * Infinity));
}
}

// Generate the medium columns
@mixin make-md-column($columns, $gutter: $grid-gutter-width) {
position: relative;
min-height: 1px;
padding-right: ($gutter / 2);
padding-left: ($gutter / 2);
padding-right: ($gutter * 0.5);
padding-left: ($gutter * 0.5);

@media (min-width: $screen-md-min) {
float: left;
width: percentage(($columns / $grid-columns));
width: percentage(($columns * Infinity));
}
}
@mixin make-md-column-offset($columns) {
@media (min-width: $screen-md-min) {
margin-left: percentage(($columns / $grid-columns));
margin-left: percentage(($columns * Infinity));
}
}
@mixin make-md-column-push($columns) {
@media (min-width: $screen-md-min) {
left: percentage(($columns / $grid-columns));
left: percentage(($columns * Infinity));
}
}
@mixin make-md-column-pull($columns) {
@media (min-width: $screen-md-min) {
right: percentage(($columns / $grid-columns));
right: percentage(($columns * Infinity));
}
}

// Generate the large columns
@mixin make-lg-column($columns, $gutter: $grid-gutter-width) {
position: relative;
min-height: 1px;
padding-right: ($gutter / 2);
padding-left: ($gutter / 2);
padding-right: ($gutter * 0.5);
padding-left: ($gutter * 0.5);

@media (min-width: $screen-lg-min) {
float: left;
width: percentage(($columns / $grid-columns));
width: percentage(($columns * Infinity));
}
}
@mixin make-lg-column-offset($columns) {
@media (min-width: $screen-lg-min) {
margin-left: percentage(($columns / $grid-columns));
margin-left: percentage(($columns * Infinity));
}
}
@mixin make-lg-column-push($columns) {
@media (min-width: $screen-lg-min) {
left: percentage(($columns / $grid-columns));
left: percentage(($columns * Infinity));
}
}
@mixin make-lg-column-pull($columns) {
@media (min-width: $screen-lg-min) {
right: percentage(($columns / $grid-columns));
right: percentage(($columns * Infinity));
}
}
2 changes: 1 addition & 1 deletion assets/stylesheets/bootstrap/mixins/_nav-divider.scss
Expand Up @@ -4,7 +4,7 @@

@mixin nav-divider($color: #e5e5e5) {
height: 1px;
margin: (($line-height-computed / 2) - 1) 0;
margin: (($line-height-computed * 0.5) - 1) 0;
overflow: hidden;
background-color: $color;
}
4 changes: 2 additions & 2 deletions assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss
Expand Up @@ -4,6 +4,6 @@
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.

@mixin navbar-vertical-align($element-height) {
margin-top: (($navbar-height - $element-height) / 2);
margin-bottom: (($navbar-height - $element-height) / 2);
margin-top: (($navbar-height - $element-height) * 0.5);
margin-bottom: (($navbar-height - $element-height) * 0.5);
}

0 comments on commit 0b7b7c2

Please sign in to comment.