Isolate design CSS
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 275 KiB After Width: | Height: | Size: 275 KiB |
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
BIN
app/assets/images/themes/flat/logo-icon.png
Normal file
After Width: | Height: | Size: 275 KiB |
BIN
app/assets/images/themes/flat/logo.png
Normal file
After Width: | Height: | Size: 96 KiB |
|
@ -1,3 +1,10 @@
|
||||||
|
/*
|
||||||
|
Theme Path
|
||||||
|
*/
|
||||||
|
|
||||||
|
$theme-name: 'default';
|
||||||
|
$theme-path: "themes/#{$theme-name}";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Neat Overrides
|
Neat Overrides
|
||||||
*/
|
*/
|
|
@ -75,7 +75,7 @@ div#errors {
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
||||||
.message {
|
.message {
|
||||||
background: image-url('layout/flash-notice-background.png');
|
background: image-url("#{theme-path}/layout/flash-notice-background.png");
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 730px;
|
width: 730px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
|
@ -89,7 +89,7 @@ div#errors {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
background: image-url('layout/flash-notice-icon.png');
|
background: image-url("#{theme-path}/layout/flash-notice-icon.png");
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
|
@ -102,10 +102,10 @@ div#errors {
|
||||||
&.warning,
|
&.warning,
|
||||||
&.error,
|
&.error,
|
||||||
&.alert {
|
&.alert {
|
||||||
background: image-url('layout/flash-error-background.png');
|
background: image-url("#{theme-path}/layout/flash-error-background.png");
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
background: image-url('layout/flash-error-icon.png');
|
background: image-url("#{theme-path}/layout/flash-error-icon.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -20,7 +20,7 @@ body#tinymce {
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
background: {
|
background: {
|
||||||
color: $blue;
|
color: $blue;
|
||||||
image: image-url('layout/background.jpg');
|
image: image-url("#{$theme-path}/layout/background.jpg");
|
||||||
position: top center;
|
position: top center;
|
||||||
repeat: no-repeat;
|
repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
@ -39,11 +39,11 @@ body#tinymce {
|
||||||
box-shadow: $content-shadow;
|
box-shadow: $content-shadow;
|
||||||
margin-top: -35px;
|
margin-top: -35px;
|
||||||
padding: 10px $container-padding $container-padding $container-padding;
|
padding: 10px $container-padding $container-padding $container-padding;
|
||||||
background: image-url('layout/body-background.png') top center repeat-y;
|
background: image-url("#{$theme-path}/layout/body-background.png") top center repeat-y;
|
||||||
|
|
||||||
&.full {
|
&.full {
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
background-image: image-url('layout/body-background-full.png');
|
background-image: image-url("#{$theme-path}/layout/body-background-full.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
&.no-body {
|
&.no-body {
|
|
@ -1,7 +1,7 @@
|
||||||
footer.footer {
|
footer.footer {
|
||||||
$footer-link-color: #5a5a5a;
|
$footer-link-color: #5a5a5a;
|
||||||
|
|
||||||
background: image-url('layout/footer-background.png');
|
background: image-url("#{$theme-path}/layout/footer-background.png");
|
||||||
height: 155px;
|
height: 155px;
|
||||||
max-height: 155px;
|
max-height: 155px;
|
||||||
|
|
|
@ -9,7 +9,7 @@ $navigation-height: 50px;
|
||||||
font-family: $header-font-family;
|
font-family: $header-font-family;
|
||||||
height: $navigation-height;
|
height: $navigation-height;
|
||||||
margin-top: -50px;
|
margin-top: -50px;
|
||||||
background: image-url('layout/nav-background.png') top center repeat-x;
|
background: image-url("#{$theme-path}/layout/nav-background.png") top center repeat-x;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 25;
|
z-index: 25;
|
||||||
|
@ -128,7 +128,7 @@ ul.navigation {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
background: image-url('layout/drop-menu-background.png') top center repeat-y;
|
background: image-url("#{$theme-path}/layout/drop-menu-background.png") top center repeat-y;
|
||||||
width: 176px;
|
width: 176px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
box-shadow: $content-shadow;
|
box-shadow: $content-shadow;
|
|
@ -13,7 +13,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 265px;
|
width: 265px;
|
||||||
height: 75px;
|
height: 75px;
|
||||||
background: image-url('layout/sidebar-shadow.png') top center no-repeat;
|
background: image-url("#{$theme-path}/layout/sidebar-shadow.png") top center no-repeat;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: -20px;
|
right: -20px;
|
||||||
}
|
}
|
|
@ -77,13 +77,13 @@ div#categories {
|
||||||
width: 10%;
|
width: 10%;
|
||||||
|
|
||||||
background: {
|
background: {
|
||||||
image: image-url('layout/forum-category.png');
|
image: image-url("#{$theme-path}/layout/forum-category.png");
|
||||||
position: center center;
|
position: center center;
|
||||||
repeat: no-repeat;
|
repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.updated {
|
&.updated {
|
||||||
background-image: image-url('layout/forum-category-highlight.png');
|
background-image: image-url("#{$theme-path}/layout/forum-category-highlight.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,14 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def active_theme
|
||||||
|
'default'
|
||||||
|
end
|
||||||
|
|
||||||
|
def theme_stylesheet_link_tag
|
||||||
|
stylesheet_link_tag "themes/#{active_theme}/theme"
|
||||||
|
end
|
||||||
|
|
||||||
def namelink model, length = nil
|
def namelink model, length = nil
|
||||||
return if model.nil?
|
return if model.nil?
|
||||||
model = case model.class.to_s
|
model = case model.class.to_s
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<nav id="menu">
|
<nav id="menu">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
<%= link_to image_tag('logo.png'), root_path %>
|
<%= link_to image_tag("themes/#{active_theme}/logo.png"), root_path %>
|
||||||
</div>
|
</div>
|
||||||
<ul class="navigation">
|
<ul class="navigation">
|
||||||
<li class="icon">
|
<li class="icon">
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||||
<%= stylesheet_link_tag "application" %>
|
<%= theme_stylesheet_link_tag %>
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag 'application' %>
|
||||||
<%= csrf_meta_tag %>
|
<%= csrf_meta_tag %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||||
<%= stylesheet_link_tag "application" %>
|
<%= theme_stylesheet_link_tag %>
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag 'application' %>
|
||||||
<%= csrf_meta_tag %>
|
<%= csrf_meta_tag %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||||
<%= stylesheet_link_tag "application" %>
|
<%= theme_stylesheet_link_tag %>
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag 'application' %>
|
||||||
<%= csrf_meta_tag %>
|
<%= csrf_meta_tag %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|