Permalink
Browse files

change outdated style to use a Twitter Bootstrap 2 gradient button wi…

…th text
  • Loading branch information...
1 parent 91cda80 commit 26732645619b372764097e5e8086f89871d90c04 @stevepiercy stevepiercy committed Sep 10, 2013
Showing with 128 additions and 33 deletions.
  1. +1 −1 pylons/layout.html
  2. +127 −32 pylons/static/pylons.css_t
View
@@ -22,7 +22,7 @@
{% endif %}
{% if theme_outdated|tobool %}
- <a href="{{ latest_url }}"><img style="position: fixed; display: block; width: 165px; height: 165px; bottom: 60px; right: 0; border: 0;" src="{{ pathto('_static/outdated.png', 1) }}" alt="Documentation is outdated" /></a>
+ <div style="bottom: 60px; right: 20px;position: fixed;"><a href="{{ theme_latest_url }}" class="btn btn-large btn-danger"><strong>&gt;</strong> Read the latest version of this page</a></div>
{% endif %}
{% if display_github %}
@@ -8,11 +8,11 @@
* :license: BSD, see LICENSE for details.
*
*/
-
+
@import url("basic.css");
-
+
/* -- page layout ----------------------------------------------------------- */
-
+
body {
font-family: "NobileRegular", sans-serif;
font-size: 14px;
@@ -21,7 +21,7 @@ body {
margin: 0;
padding: 0;
}
-
+
div.documentwrapper {
float: left;
width: 100%;
@@ -34,7 +34,7 @@ div.bodywrapper {
hr {
border: 1px solid #B1B4B6;
}
-
+
div.document {
background-color: #eee;
}
@@ -72,7 +72,7 @@ div.body {
border-right-style: none;
overflow: auto;
}
-
+
div.footer {
color: #ffffff;
width: 100%;
@@ -82,7 +82,7 @@ div.footer {
background: transparent;
clear:both;
}
-
+
div.footer a {
color: #ffffff;
text-decoration: none;
@@ -92,22 +92,22 @@ div.footer a:hover {
color: #e88f00;
text-decoration: underline;
}
-
+
div.related {
line-height: 30px;
color: #373839;
font-size: 12px;
background-color: #eee;
}
-
+
div.related a {
color: #1b61d6;
}
div.related ul {
padding: 0 150px 0 240px;
}
-
+
div.sphinxsidebar {
font-size: 12px;
line-height: 1.5em;
@@ -116,7 +116,7 @@ div.sphinxsidebar {
div.sphinxsidebarwrapper{
padding: 10px 0;
}
-
+
div.sphinxsidebar h3,
div.sphinxsidebar h4 {
font-family: "NeutonRegular", sans-serif;
@@ -131,30 +131,30 @@ div.sphinxsidebar h4 {
div.sphinxsidebar h4{
font-size: 1.3em;
}
-
+
div.sphinxsidebar h3 a {
color: #000000;
}
-
-
+
+
div.sphinxsidebar p {
color: #888;
padding: 5px 20px;
}
-
+
div.sphinxsidebar p.topless {
}
-
+
div.sphinxsidebar ul {
margin: 10px 20px;
padding: 0;
color: #373839;
}
-
+
div.sphinxsidebar a {
color: #444;
}
-
+
div.sphinxsidebar input {
border: 1px solid #ccc;
font-family: sans-serif;
@@ -183,17 +183,17 @@ p.sidebar-title {
}
/* -- body styles ----------------------------------------------------------- */
-
+
a, a .pre {
color: #1b61d6;
text-decoration: none;
word-wrap: break-word;
}
-
+
a:hover, a:hover .pre {
text-decoration: underline;
}
-
+
div.body h1,
div.body h2,
div.body h3,
@@ -207,7 +207,7 @@ div.body h6 {
margin: 30px 0px 10px 0px;
padding: 5px 0;
}
-
+
div.body h1 {
font-size: 2.5em;
line-height: 1;
@@ -238,22 +238,22 @@ div.body h6 {
font-weight: bold;
margin-bottom: 2.00em;
}
-
+
a.headerlink {
color: #1b61d6;
font-size: 12px;
padding: 0 4px 0 4px;
text-decoration: none;
}
-
+
a.headerlink:hover {
text-decoration: underline;
}
-
+
div.body p, div.body dd, div.body dt, div.body li {
line-height: 1.5em;
}
-
+
div.admonition p.admonition-title + p {
display: inline;
}
@@ -269,35 +269,35 @@ div.note {
padding: 10px 20px 10px 60px;
background: #e1ecfe url(dialog-note.png) no-repeat 10px 8px;
}
-
+
div.seealso {
background: #fff6bf url(dialog-seealso.png) no-repeat 10px 8px;
border: 2px solid #ffd324;
border-left-style: none;
border-right-style: none;
padding: 10px 20px 10px 60px;
}
-
+
div.topic {
background: #eeeeee;
border: 2px solid #C6C9CB;
padding: 10px 20px;
border-right-style: none;
border-left-style: none;
}
-
+
div.warning {
background: #fbe3e4 url(dialog-warning.png) no-repeat 10px 8px;
border: 2px solid #fbc2c4;
border-right-style: none;
border-left-style: none;
padding: 10px 20px 10px 60px;
}
-
+
p.admonition-title {
display: none;
}
-
+
p.admonition-title:after {
content: ":";
}
@@ -312,7 +312,7 @@ pre, code {
border-top: 2px solid #c6c9cb;
border-bottom: 2px solid #c6c9cb;
}
-
+
tt {
background-color: transparent;
color: #222;
@@ -370,3 +370,98 @@ span.methodcategory {
line-height: 1;
margin-bottom: 0.75em;
}
+/* Twitter Bootstrap 2 buttons */
+a.btn {
+text-decoration: none;
+}
+.btn:hover, .btn:focus, .btn:active, .btn.active, .btn.disabled, .btn[disabled] {
+color: #333333;
+background-color: #e6e6e6;
+}
+.btn:active, .btn.active {
+background-color: #cccccc \9;
+}
+.btn:first-child {
+}
+.btn:hover, .btn:focus {
+color: #333333;
+text-decoration: none;
+background-position: 0 -15px;
+-webkit-transition: background-position 0.1s linear;
+-moz-transition: background-position 0.1s linear;
+-o-transition: background-position 0.1s linear;
+transition: background-position 0.1s linear;
+}
+.btn:focus {
+outline: thin dotted #333;
+outline: 5px auto -webkit-focus-ring-color;
+outline-offset: -2px;
+}
+.btn.active, .btn:active {
+background-image: none;
+outline: 0;
+-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
+-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
+box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
+}
+.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] {
+color: #ffffff;
+background-color: #bd362f;
+}
+.btn-danger:active, .btn-danger.active {
+background-color: #942a25 \9;
+}
+
+.btn {
+display: inline-block;
+padding: 4px 12px;
+margin-bottom: 0;
+font-size: 14px;
+line-height: 20px;
+color: #333333;
+text-align: center;
+text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
+vertical-align: middle;
+cursor: pointer;
+background-color: #f5f5f5;
+background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
+background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
+background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
+background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
+background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
+background-repeat: repeat-x;
+border: 1px solid #cccccc;
+border-color: #e6e6e6 #e6e6e6 #bfbfbf;
+border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
+border-bottom-color: #b3b3b3;
+-webkit-border-radius: 4px;
+-moz-border-radius: 4px;
+border-radius: 4px;
+filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
+filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
+-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
+-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
+box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
+}
+.btn-large {
+padding: 11px 19px;
+font-size: 17.5px;
+-webkit-border-radius: 6px;
+-moz-border-radius: 6px;
+border-radius: 6px;
+}
+.btn-danger {
+color: rgba(255, 255, 255, 0.5);
+text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
+background-color: rgba(218, 79, 73, 0.5);
+background-image: -moz-linear-gradient(top, rgba(238, 95, 91, 0.5), rgba(189, 54, 47, 0.5));
+background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(238, 95, 91, 0.5)), to(rgba(189, 54, 47, 0.5)));
+background-image: -webkit-linear-gradient(top, rgba(238, 95, 91, 0.5), rgba(189, 54, 47, 0.5));
+background-image: -o-linear-gradient(top, rgba(238, 95, 91, 0.5), rgba(189, 54, 47, 0.5));
+background-image: linear-gradient(to bottom, rgba(238, 95, 91, 0.5), rgba(189, 54, 47, 0.5));
+background-repeat: repeat-x;
+border-color: rgba(189, 54, 47, 0.5) rgba(189, 54, 47, 0.5) rgba(128, 36, 32, 0.5);
+border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
+filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
+filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
+}

0 comments on commit 2673264

Please sign in to comment.