Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
masonstrap
Commits
35432916
Verified
Commit
35432916
authored
Dec 21, 2017
by
David Haynes
🙆
Browse files
Ensure btn-outline colors remain the same in <a>
- specifically, if a href= is missing then ensure the styling persists
parent
fc22f5a2
Pipeline
#1916
passed with stages
in 2 minutes and 5 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/html/demo.html
View file @
35432916
...
...
@@ -32,7 +32,7 @@
<!-- Load in static content -->
<link
rel=
"icon"
href=
"./img/favicon.ico"
sizes=
"16x16"
>
<link
rel=
"stylesheet"
href=
"./css/masonstrap.
min.
css"
media=
"screen"
>
<link
rel=
"stylesheet"
href=
"./css/masonstrap.css"
media=
"screen"
>
</head>
<!-- Navbar -->
...
...
@@ -65,6 +65,11 @@
</div>
</nav>
<body>
<a
class=
"btn btn-outline-primary"
>
Download
</a>
</body>
<!-- Footer -->
<footer
class=
"footer"
>
<div
class=
"container"
>
...
...
@@ -73,8 +78,6 @@
</footer>
<!-- load in external js -->
<script
src=
"./js/jquery.min.js"
></script>
<script
src=
"./js/popper.min.js"
></script>
<script
src=
"./js/bootstrap.min.js"
></script>
<script
src=
"./js/masonstrap.min.js"
></script>
</html>
\ No newline at end of file
src/scss/_overwrites.scss
View file @
35432916
// Things that originate from Bootstrap that we overwrite
// Legacy legend behavior
legend
{
@extend
legend
;
margin-top
:
1rem
;
margin-bottom
:
1rem
;
border
:
0
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.1
)
@extend
legend
;
margin-top
:
1rem
;
margin-bottom
:
1rem
;
border
:
0
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.1
)
}
// Ensure btn-outline colors remain the same even if there is no href
@each
$color
,
$value
in
$theme-colors
{
a
.btn-outline-
#{
$color
}
:not
([
href
])
{
color
:
$value
;
}
a
.btn-outline-
#{
$color
}
:not
([
href
])
:hover
{
color
:
$white
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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