Last active
May 17, 2017 09:03
-
-
Save MonkeyDo/60eac7106414ba8d9405 to your computer and use it in GitHub Desktop.
Bootstrap 3 less file for styling :visited links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@link-hover-color: lightblue; //Change this to your needs | |
a{ | |
color: @link-color; | |
&:hover{ | |
color: @link-hover-color; | |
} | |
&:hover, &:focus{ | |
text-decoration: none; | |
} | |
&:visited:not(.btn){ | |
color: @link-visited-color; | |
} | |
// Exceptions to :visited state | |
// Comment out to taste | |
&.list-group-item:visited{ | |
color:@list-group-link-color; | |
&.active, | |
&.active:hover, | |
&.active:focus { | |
color: @list-group-active-color; | |
} | |
} | |
.navbar-default &.navbar-brand:visited{ | |
color:@navbar-default-brand-color; | |
} | |
.navbar-inverse &.navbar-brand:visited{ | |
color:@navbar-inverse-brand-color; | |
} | |
.nav-tabs > li > &:visited{ | |
color: @link-color; | |
} | |
.nav-pills > li > &:visited{ | |
color: @link-color; | |
} | |
.nav-pills > li.active > &:visited{ | |
&, | |
&:hover, | |
&:focus { | |
color: @nav-pills-active-link-hover-color; | |
} | |
} | |
.dropdown-menu > li > &:visited{ | |
color: @dropdown-link-color; | |
&:hover, | |
&:focus { | |
color: @dropdown-link-hover-color; | |
background-color: @dropdown-link-hover-bg; | |
} | |
} | |
.dropdown-menu > li.disabled > &:visited{ | |
&, | |
&:hover, | |
&:focus { | |
color: @dropdown-link-disabled-color; | |
} | |
} | |
.pager > li > &:visited, | |
.pagination > li > &:visited{ | |
&, | |
&:hover, | |
&:focus { | |
color: @link-color; | |
} | |
} | |
.pagination > .active > &:visited{ | |
&, | |
&:hover, | |
&:focus { | |
color: @pagination-active-color; | |
} | |
} | |
.pagination > .disabled > &:visited{ | |
&, | |
&:hover, | |
&:focus { | |
color: @pagination-disabled-color; | |
} | |
} | |
&.alert-link:visited{ | |
color: inherit; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice