Skip to content

Commit

Permalink
[MSKINS-262] Drop external link icons
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Jan 5, 2025
1 parent 8c08819 commit f090098
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 62 deletions.
2 changes: 1 addition & 1 deletion src/it/sidebar/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ assert html.contains( '<li class="active"><a>About</a>' )
assert html.contains( '<li><a href="summary.html">Summary</a>' )
assert html.contains( '<li><a href="plugins.html">Plugins</a></li>' )
// breadcrumb
assert html.contains( '<li><a href="https://www.apache.org/" class="externalLink">Apache</a><span class="divider">/</span></li>' )
assert html.contains( '<li><a href="https://www.apache.org/">Apache</a><span class="divider">/</span></li>' )
2 changes: 1 addition & 1 deletion src/it/topbar/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ assert html.contains( '<li><a>About</a></li>' )
assert html.contains( '<li><a href="summary.html">Summary</a></li>' )
assert html.contains( '<li><a href="plugins.html">Plugins</a></li>' )
// breadcrumb
assert html.contains( '<li><a href="https://www.apache.org/" class="externalLink">Apache</a><span class="divider">/</span></li>' )
assert html.contains( '<li><a href="https://www.apache.org/">Apache</a><span class="divider">/</span></li>' )
7 changes: 1 addition & 6 deletions src/main/resources/META-INF/maven/site-macros.vm
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@
#* *##if( $href == "" && ( $dotSlashOnEmptyHref == "set" || $dotSlashOnEmptyHref == "always" ) )
#* *##set( $href = "./" )
#* *##end
#* *##set( $class = "" )
#* *##else
#* *##set( $class = ' class="externalLink"' )
#* *##end
#* *##if( $link.target )
#* *##set( $target = ' target="' + $link.target + '"' )
Expand All @@ -74,14 +71,12 @@
#* *##if( $alignedFileName == $href && $dotSlashOnEmptyHref != "always" )
#* *##set( $href = "" )
#* *##set( $target = "" )
#* *##set( $class = "" )
#* *##else
#* *##set( $href = ' href="' + $href + '"' )
#* *##end
#**##else
#* *##set( $href = "" )
#* *##set( $target = "" )
#* *##set( $class = "" )
#**##end
##
#**##set( $wrap = $href || !$href && $elemOnEmptyHref )
Expand All @@ -91,7 +86,7 @@
#**##end
#**##if( $overrideElemClass && $overrideElemClass != "" )
#* *##set( $class = ' class="' + $overrideElemClass + '"' )
#**##elseif( $overrideElemClass == "" )
#**##else
#* *##set( $class = "" )
#**##end
#**##if( $wrap )<$wrapElem#end$href$target$class#if( $wrap )>#end##
Expand Down
46 changes: 0 additions & 46 deletions src/main/resources/css/maven-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,57 +17,11 @@
* under the License.
*/

/*IE6/7 don't support selectors*/
a.externalLink {
padding-right: 18px;
}
a.newWindow {
background: url('../images/window-new.png') right center no-repeat;
padding-right: 18px;
}

a.externalLink[href^=http] {
background: url('../images/internet-web-browser.png') right center no-repeat;
padding-right: 18px;
}
a.externalLink[href$=".asc"] {
background: url('../images/accessories-text-editor.png') right center no-repeat;
padding-right: 18px;
}
a.externalLink[href$=".jpg"],
a.externalLink[href$=".jpeg"],
a.externalLink[href$=".gif"],
a.externalLink[href$=".png"] {
background: url('../images/image-x-generic.png') right center no-repeat;
padding-right: 18px;
}
a.externalLink[href$=".tar.gz"],
a.externalLink[href$=".zip"] {
background: url('../images/package-x-generic.png') right center no-repeat;
padding-right: 18px;
}
a.externalLink[href$=".md5"],
a.externalLink[href$=".sha1"] {
background: url('../images/document-properties.png') right center no-repeat;
padding-right: 18px;
}
a.externalLink[href^=https] {
background: url('../images/application-certificate.png') right center no-repeat;
padding-right: 18px;
}
a.externalLink[href^=file] {
background: url('../images/drive-harddisk.png') right center no-repeat;
padding-right: 18px;
}
a.externalLink[href^=ftp] {
background: url('../images/network-server.png') right center no-repeat;
padding-right: 18px;
}
a.externalLink[href^=mailto] {
background: url('../images/contact-new.png') right center no-repeat;
padding-right: 18px;
}

li.none {
list-style: none;
}
Expand Down
Binary file removed src/main/resources/images/application-certificate.png
Binary file not shown.
Binary file removed src/main/resources/images/contact-new.png
Binary file not shown.
Binary file removed src/main/resources/images/document-properties.png
Binary file not shown.
Binary file removed src/main/resources/images/drive-harddisk.png
Binary file not shown.
Binary file removed src/main/resources/images/image-x-generic.png
Binary file not shown.
Binary file removed src/main/resources/images/internet-web-browser.png
Binary file not shown.
Binary file removed src/main/resources/images/network-server.png
Binary file not shown.
Binary file removed src/main/resources/images/package-x-generic.png
Binary file not shown.
8 changes: 0 additions & 8 deletions src/misc/scripts/sprite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,5 @@
#------------------------------------------------------------------------------

montage window-new.png \
internet-web-browser.png \
accessories-text-editor.png \
image-x-generic.png \
package-x-generic.png \
document-properties.png \
application-certificate.png \
drive-harddisk.png \
network-server.png \
contact-new.png \
-tile 4x3 -geometry +2+2 -background none external-links.png

0 comments on commit f090098

Please sign in to comment.