Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
89eef046
"js/tests/unit/tooltip.spec.js" did not exist on "f03c10a1897254f82d1484924b259a921dcf0431"
Commit
89eef046
authored
6 years ago
by
sts-ryan-holton
Committed by
XhmikosR
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add new `.rounded-pill` utility (#27339)
parent
5c03f23f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scss/_variables.scss
+2
-0
scss/_variables.scss
scss/utilities/_borders.scss
+4
-0
scss/utilities/_borders.scss
site/docs/4.1/utilities/borders.md
+2
-0
site/docs/4.1/utilities/borders.md
with
8 additions
and
0 deletions
+8
-0
scss/_variables.scss
+
2
-
0
View file @
89eef046
...
@@ -244,6 +244,8 @@ $border-radius: .25rem !default;
...
@@ -244,6 +244,8 @@ $border-radius: .25rem !default;
$border-radius-lg
:
.3rem
!
default
;
$border-radius-lg
:
.3rem
!
default
;
$border-radius-sm
:
.2rem
!
default
;
$border-radius-sm
:
.2rem
!
default
;
$rounded-pill
:
50rem
!
default
;
$box-shadow-sm
:
0
.125rem
.25rem
rgba
(
$black
,
.075
)
!
default
;
$box-shadow-sm
:
0
.125rem
.25rem
rgba
(
$black
,
.075
)
!
default
;
$box-shadow
:
0
.5rem
1rem
rgba
(
$black
,
.15
)
!
default
;
$box-shadow
:
0
.5rem
1rem
rgba
(
$black
,
.15
)
!
default
;
$box-shadow-lg
:
0
1rem
3rem
rgba
(
$black
,
.175
)
!
default
;
$box-shadow-lg
:
0
1rem
3rem
rgba
(
$black
,
.175
)
!
default
;
...
...
This diff is collapsed.
Click to expand it.
scss/utilities/_borders.scss
+
4
-
0
View file @
89eef046
...
@@ -54,6 +54,10 @@
...
@@ -54,6 +54,10 @@
border-radius
:
50%
!
important
;
border-radius
:
50%
!
important
;
}
}
.rounded-pill
{
border-radius
:
$rounded-pill
!
important
;
}
.rounded-0
{
.rounded-0
{
border-radius
:
0
!
important
;
border-radius
:
0
!
important
;
}
}
This diff is collapsed.
Click to expand it.
site/docs/4.1/utilities/borders.md
+
2
-
0
View file @
89eef046
...
@@ -61,6 +61,7 @@ Add classes to an element to easily round its corners.
...
@@ -61,6 +61,7 @@ Add classes to an element to easily round its corners.
<img
data-src=
"holder.js/75x75"
class=
"rounded-bottom"
alt=
"Example bottom rounded image"
>
<img
data-src=
"holder.js/75x75"
class=
"rounded-bottom"
alt=
"Example bottom rounded image"
>
<img
data-src=
"holder.js/75x75"
class=
"rounded-left"
alt=
"Example left rounded image"
>
<img
data-src=
"holder.js/75x75"
class=
"rounded-left"
alt=
"Example left rounded image"
>
<img
data-src=
"holder.js/75x75"
class=
"rounded-circle"
alt=
"Completely round image"
>
<img
data-src=
"holder.js/75x75"
class=
"rounded-circle"
alt=
"Completely round image"
>
<img
data-src=
"holder.js/150x75"
class=
"rounded-pill"
alt=
"Rounded pill image"
>
<img
data-src=
"holder.js/75x75"
class=
"rounded-0"
alt=
"Example non-rounded image (overrides rounding applied elsewhere)"
>
<img
data-src=
"holder.js/75x75"
class=
"rounded-0"
alt=
"Example non-rounded image (overrides rounding applied elsewhere)"
>
</div>
</div>
...
@@ -71,5 +72,6 @@ Add classes to an element to easily round its corners.
...
@@ -71,5 +72,6 @@ Add classes to an element to easily round its corners.
<img
src=
"..."
alt=
"..."
class=
"rounded-bottom"
>
<img
src=
"..."
alt=
"..."
class=
"rounded-bottom"
>
<img
src=
"..."
alt=
"..."
class=
"rounded-left"
>
<img
src=
"..."
alt=
"..."
class=
"rounded-left"
>
<img
src=
"..."
alt=
"..."
class=
"rounded-circle"
>
<img
src=
"..."
alt=
"..."
class=
"rounded-circle"
>
<img
src=
"..."
alt=
"..."
class=
"rounded-pill"
>
<img
src=
"..."
alt=
"..."
class=
"rounded-0"
>
<img
src=
"..."
alt=
"..."
class=
"rounded-0"
>
{% endhighlight %}
{% endhighlight %}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment