Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
bf57e86a
Commit
bf57e86a
authored
Sep 12, 2015
by
Davis King
Browse files
Added improved download button CSS supplied by Jorge Toro.
parent
a47551eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
17 deletions
+44
-17
docs/docs/main_menu.xml
docs/docs/main_menu.xml
+4
-2
docs/docs/stylesheet.xsl
docs/docs/stylesheet.xsl
+40
-15
No files found.
docs/docs/main_menu.xml
View file @
bf57e86a
...
@@ -532,7 +532,7 @@
...
@@ -532,7 +532,7 @@
<section>
<section>
<name>
Current Release
</name>
<name>
Current Release
</name>
<item
nolink=
"true"
>
Version:
<current_release/></item>
<chm>
<item
nolink=
"true"
>
Version:
<current_release/></item>
</chm>
<item>
<item>
<name>
Release Notes
</name>
<name>
Release Notes
</name>
<link>
release_notes.html
</link>
<link>
release_notes.html
</link>
...
@@ -546,7 +546,9 @@
...
@@ -546,7 +546,9 @@
<web>
<web>
<download_button>
<download_button>
<name>
Download dlib
</name>
<name><div
id=
"dlname"
>
Download dlib
</div>
<div
id=
"dlib_version"
>
ver.
<current_release/></div>
</name>
<link>
http://dlib.net/files/dlib-
<current_release/>
.tar.bz2
</link>
<link>
http://dlib.net/files/dlib-
<current_release/>
.tar.bz2
</link>
</download_button>
</download_button>
</web>
</web>
...
...
docs/docs/stylesheet.xsl
View file @
bf57e86a
...
@@ -315,26 +315,48 @@ function BigToggle(node)
...
@@ -315,26 +315,48 @@ function BigToggle(node)
color: green;
color: green;
}
}
#download_button {
#download_button {
font-weight: bold;
font: 200 16px source-sans-pro, sans-serif;
margin-left: auto;
text-align: center;
margin-right: auto;
padding-left: 1.5em;
background-color: #e1ddda;
padding-right: 1.5em;
font-size: 14pt;
-webkit-font-smoothing: antialiased;
padding: 7px;
background-color: #2098f5;
-moz-box-shadow: 2px 2px 9px #777777;
border-color: #0a7cd4;
-webkit-box-shadow: 2px 2px 9px #777777;
color: #fff;
box-shadow: 2px 2px 9px #777777;
border-radius: 8px;
padding: 0.7em 1em 0.8em;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
-moz-box-shadow: 2px 2px 9px #777777;
-webkit-box-shadow: 2px 2px 9px #777777;
box-shadow: 1px 1px 5px #777777;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
transition: 320ms;
display: inline-block;
}
}
#download_button:hover {
#download_button:hover {
text-decoration: none;
text-decoration: none;
-moz-box-shadow: 1px 1px 9px #77a777;
-moz-box-shadow: 1px 1px 9px #77a777;
-webkit-box-shadow: 1px 1px 9px #77a777;
-webkit-box-shadow: 1px 1px 9px #77a777;
box-shadow: 1px 1px 9px #77a777;
box-shadow: 1px 1px 5px #77a777;
color: #007777;
color: #ffffff;
background-color: #0a7cd4;
}
}
div {
display:block;
}
#dlib_version {
color: #fff;
display: block;
font-size: 0.8em;
font-weight: 400;
margin: 0;
}
</style>
</style>
<xsl:if
test=
"$is_chm != 'true'"
>
<xsl:if
test=
"$is_chm != 'true'"
>
<script>
<!-- Google Analytics -->
<script>
<!-- Google Analytics -->
...
@@ -469,7 +491,7 @@ function BigToggle(node)
...
@@ -469,7 +491,7 @@ function BigToggle(node)
<xsl:template
match=
"download_button"
>
<xsl:template
match=
"download_button"
>
<xsl:variable
name=
"linktext"
><xsl:apply-templates
select=
"link"
/></xsl:variable>
<xsl:variable
name=
"linktext"
><xsl:apply-templates
select=
"link"
/></xsl:variable>
<a
href=
"{$linktext}"
id=
"download_button"
class=
"menu"
><xsl:
value-of
select=
"name"
/></a>
<a
href=
"{$linktext}"
id=
"download_button"
class=
"menu"
><xsl:
apply-templates
select=
"name"
/></a>
</xsl:template>
</xsl:template>
...
@@ -987,6 +1009,9 @@ function BigToggle(node)
...
@@ -987,6 +1009,9 @@ function BigToggle(node)
<xsl:apply-templates/>
<xsl:apply-templates/>
</table>
</table>
</xsl:template>
</xsl:template>
<xsl:template
match=
"div"
>
<div
id=
"{@id}"
><xsl:apply-templates/></div>
</xsl:template>
<xsl:template
match=
"li"
>
<xsl:template
match=
"li"
>
<li>
<li>
<xsl:apply-templates/>
<xsl:apply-templates/>
...
...
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