my @parts = split('/', $path);
my $localpath = $path;
- if ($localpath =~ m|opac/css|) {
+ if ($localpath =~ m|/css/|) {
$r->content_type('text/css; encoding=utf8');
} else {
$r->content_type('text/html; encoding=utf8');
--- /dev/null
+/* --------------------------------------------------------------------------
+ * Simple default navbar style adjustements to apply the Evergreen color.
+ * TODO: style other components to match EG color scheme
+ */
+.navbar-default {
+ background: -webkit-linear-gradient(#00593d, #007a54);
+ background-color: #007a54;
+ color: #fff;
+}
+
+.navbar-default .navbar-nav>li>a {
+ color: #fff;
+}
+
+.navbar-default .navbar-nav>li>a:hover {
+ color: #ddd;
+}
+
+.navbar-default .navbar-nav>.dropdown>a .caret {
+ border-top-color: #fff;
+ border-bottom-color: #fff;
+}
+.navbar-default .navbar-nav>.dropdown>a:hover .caret {
+ border-top-color: #ddd;
+ border-bottom-color: #ddd;
+}
+
+/* --------------------------------------------------------------------------
+ * Structural modifications
+ */
+
+#top-content-container {
+ /* allow the primary container to occupy most of the page,
+ * but leave some narrow gutters along the side, much
+ * narrower than the default Bootstrapp container gutters.
+ */
+ width: 95%;
+}
+
+
+/* --------------------------------------------------------------------------
+ * Temporaray local CSS required to make angular-ui-bootstrap
+ * version 0.6.0 look right with Bootstrap CSS 3.0
+ */
+.nav, .pagination, .carousel a { cursor: pointer; }
+.modal {
+ display: block;
+ height: 0;
+ overflow: visible;
+}
+.modal-body:before,
+.modal-body:after {
+ display: table;
+ content: " ";
+}
+.modal-header:before,
+.modal-header:after {
+ display: table;
+ content: " ";
+}
+
+/* --------------------------------------------------------------------------
+/* Form Validation CSS - http://docs.angularjs.org/guide/forms
+ * TODO: these colors are harsh and don't fit the EG color scheme
+ */
+.form-validated input.ng-invalid.ng-dirty {
+ background-color: #FA787E;
+}
+.form-validated input.ng-valid.ng-dirty {
+ background-color: #78FA89;
+}
+
+/* --------------------------------------------------------------------------
+ * Local style
+ */
+
+#splash-nav .panel-body div {
+ padding-bottom: 10px;
+}
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- TODO: remote hosted CSS should be hosted locally instead -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css" />
- <link rel="stylesheet" href="[% ctx.media_prefix %]/css/skin/default/staff/base.css" />
+ <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/style.css" />
</head>
<body>
[% INCLUDE "staff/t_navbar.tt2" %]
-<style>
- /* TODO: move me */
- #splash-nav .panel-body div {
- padding-bottom: 10px;
- }
-</style>
-
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
+++ /dev/null
-/* --------------------------------------------------------------------------
- * Simple default navbar style adjustements to apply the Evergreen color.
- * TODO: style other components to match EG color scheme
- */
-.navbar-default {
- background: -webkit-linear-gradient(#00593d, #007a54);
- background-color: #007a54;
- color: #fff;
-}
-
-.navbar-default .navbar-nav>li>a {
- color: #fff;
-}
-
-.navbar-default .navbar-nav>li>a:hover {
- color: #ddd;
-}
-
-.navbar-default .navbar-nav>.dropdown>a .caret {
- border-top-color: #fff;
- border-bottom-color: #fff;
-}
-.navbar-default .navbar-nav>.dropdown>a:hover .caret {
- border-top-color: #ddd;
- border-bottom-color: #ddd;
-}
-
-/* --------------------------------------------------------------------------
- * Structural modifications
- */
-
-#top-content-container {
- /* allow the primary container to occupy most of the page,
- * but leave some narrow gutters along the side, much
- * narrower than the default Bootstrapp container gutters.
- */
- width: 95%;
-}
-
-
-/* --------------------------------------------------------------------------
- * Temporaray local CSS required to make angular-ui-bootstrap
- * version 0.6.0 look right with Bootstrap CSS 3.0
- */
-.nav, .pagination, .carousel a { cursor: pointer; }
-.modal {
- display: block;
- height: 0;
- overflow: visible;
-}
-.modal-body:before,
-.modal-body:after {
- display: table;
- content: " ";
-}
-.modal-header:before,
-.modal-header:after {
- display: table;
- content: " ";
-}
-
-/* --------------------------------------------------------------------------
-/* Form Validation CSS - http://docs.angularjs.org/guide/forms
- * TODO: these colors are harsh and don't fit the EG color scheme
- */
-.form-validated input.ng-invalid.ng-dirty {
- background-color: #FA787E;
-}
-.form-validated input.ng-valid.ng-dirty {
- background-color: #78FA89;
-}