blue2
This commit is contained in:
@@ -3,13 +3,13 @@
|
|||||||
$ ->
|
$ ->
|
||||||
if $('#infinite-scrolling').size() > 0
|
if $('#infinite-scrolling').size() > 0
|
||||||
more_posts_url = $('.pagination .next_page a').attr('href')
|
more_posts_url = $('.pagination .next_page a').attr('href')
|
||||||
b=$(document).height() - $(window).height() - 60
|
b=$(document).height() - $(window).height() - 260
|
||||||
if more_posts_url && $(window).scrollTop() > b
|
if more_posts_url && $(window).scrollTop() > b
|
||||||
$('.pagination').html('<b> Loading...</b>')
|
$('.pagination').html('<b> Loading...</b>')
|
||||||
$.getScript more_posts_url
|
$.getScript more_posts_url
|
||||||
$(window).on 'scroll', ->
|
$(window).on 'scroll', ->
|
||||||
more_posts_url = $('.pagination .next_page a').attr('href')
|
more_posts_url = $('.pagination .next_page a').attr('href')
|
||||||
b=$(document).height() - $(window).height() - 60
|
b=$(document).height() - $(window).height() - 260
|
||||||
if more_posts_url && $(window).scrollTop() > b
|
if more_posts_url && $(window).scrollTop() > b
|
||||||
$('.pagination').html('<b> Loading...</b>')
|
$('.pagination').html('<b> Loading...</b>')
|
||||||
$.getScript more_posts_url
|
$.getScript more_posts_url
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ a:hover {
|
|||||||
ul.linkbox-list
|
ul.linkbox-list
|
||||||
{
|
{
|
||||||
max-width:70em;
|
max-width:70em;
|
||||||
|
margin-left:auto;
|
||||||
|
margin-right:auto;
|
||||||
}
|
}
|
||||||
a.linkbox, div.contentbox
|
a.linkbox, div.contentbox
|
||||||
{
|
{
|
||||||
@@ -117,11 +119,11 @@ div.contentbox
|
|||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
div.content-column {
|
div.content-column {
|
||||||
max-width:70em;
|
max-width:70em;
|
||||||
}
|
}
|
||||||
div.content-wrap {
|
div.content-wrap {
|
||||||
margin-left:auto;
|
margin-left:auto;
|
||||||
margin-right:auto;
|
margin-right:auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#contentdiv
|
#contentdiv
|
||||||
|
|||||||
131
app/assets/stylesheets/themes/blue2/application.css.scss
Executable file
131
app/assets/stylesheets/themes/blue2/application.css.scss
Executable file
@@ -0,0 +1,131 @@
|
|||||||
|
|
||||||
|
/*
|
||||||
|
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
||||||
|
* listed below.
|
||||||
|
*
|
||||||
|
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
||||||
|
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
||||||
|
*
|
||||||
|
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
||||||
|
* compiled file, but it's generally better to create a new file per style scope.
|
||||||
|
*
|
||||||
|
*= require_self
|
||||||
|
* require_tree .
|
||||||
|
*= require jquery.fileupload-ui
|
||||||
|
*= require jquery.datetimepicker
|
||||||
|
*= require jquery.ui.dialog
|
||||||
|
* require 'bootstrap'
|
||||||
|
|
||||||
|
* require 'neuigkeiten'
|
||||||
|
*/
|
||||||
|
|
||||||
|
$color_schema_1: #006599;
|
||||||
|
$color_schema_2: #630CE8;
|
||||||
|
$color_schema_3: #FF0021;
|
||||||
|
$color_schema_4: #E8820C;
|
||||||
|
$color_schema_5: #FFF30D;
|
||||||
|
|
||||||
|
$color_schema_1_dark: darken($color_schema_1, 10%);
|
||||||
|
$color_schema_2_dark: darken($color_schema_2, 10%);
|
||||||
|
$color_schema_3_dark: darken($color_schema_3, 10%);
|
||||||
|
$color_schema_4_dark: darken($color_schema_4, 10%);
|
||||||
|
$color_schema_5_dark: darken($color_schema_5, 10%);
|
||||||
|
|
||||||
|
$color_prim: $color_schema_1_dark; // #006599; //071672;
|
||||||
|
|
||||||
|
$color_prim_light: lighten($color_prim ,10%);
|
||||||
|
$color_prim_vlight: lighten($color_prim ,30%);
|
||||||
|
$color_prim_dark: darken($color_prim ,10%);
|
||||||
|
$color_prim_vdark: darken($color_prim ,30%);
|
||||||
|
|
||||||
|
$color_cont: $color_schema_3;
|
||||||
|
$color_cont_light:lighten($color_cont ,10%);
|
||||||
|
$linkColor: $color_prim;
|
||||||
|
$linkColorHover: $color_schema_1;
|
||||||
|
$white: #FFFFFF;
|
||||||
|
|
||||||
|
$bodyBackground: #EEE;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$navbarBackground: #EEE;//$color_prim;
|
||||||
|
$navbarText: $color_prim;
|
||||||
|
$navbarLinkColor: $color_prim;
|
||||||
|
$navbarLinkColorHover: $color_schema_1;
|
||||||
|
$dropdownLinkColor: black;
|
||||||
|
$navbar-default-brand-color: black;
|
||||||
|
$navbarBrandColor:black;
|
||||||
|
|
||||||
|
|
||||||
|
$navbarBackgroundHighlight: #EEE;
|
||||||
|
//$navbarBackgroundHighlight:#FFFFFF;
|
||||||
|
|
||||||
|
|
||||||
|
$navbarLinkBackgroundHover: darken($navbarBackground,10%);
|
||||||
|
|
||||||
|
|
||||||
|
$infoBackground:#65A5D1;
|
||||||
|
$infoText:#03406A;
|
||||||
|
$sansFontFamily: Helvetica, Arial;
|
||||||
|
|
||||||
|
@import 'bootstrap';
|
||||||
|
@import 'bootstrap-responsive';
|
||||||
|
@import 'bootstrap/image-gallery';
|
||||||
|
@import 'font-awesome';
|
||||||
|
@import 'neuigkeiten';
|
||||||
|
@import 'themengruppen';
|
||||||
|
|
||||||
|
div.header {
|
||||||
|
display: block;
|
||||||
|
// background: url('../../../../header1.png') no-repeat;
|
||||||
|
// background-color:white;// $color_prim;
|
||||||
|
// background-position: right;
|
||||||
|
vertical-align:middle;
|
||||||
|
float:left;
|
||||||
|
color:#000;
|
||||||
|
padding-top:0px;
|
||||||
|
overflow:visible;
|
||||||
|
height:45px;
|
||||||
|
margin-bottom: 0 px
|
||||||
|
}
|
||||||
|
div.header_span {
|
||||||
|
background:white
|
||||||
|
}
|
||||||
|
div.header h1 {
|
||||||
|
padding:0;
|
||||||
|
margin:4px;
|
||||||
|
font-size:20px;
|
||||||
|
line-height:32px;
|
||||||
|
}
|
||||||
|
div.header img {
|
||||||
|
//top:2px;
|
||||||
|
//position:relative;
|
||||||
|
}
|
||||||
|
div.navbar {
|
||||||
|
border-bottom: $color_prim solid 3px;
|
||||||
|
}
|
||||||
|
div.headerrow {
|
||||||
|
}
|
||||||
|
|
||||||
|
$contentdiv-background:rgba(255,255,255,0.9) ;
|
||||||
|
#contentdiv {
|
||||||
|
|
||||||
|
}
|
||||||
|
$navbar-li-minwidth: 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$box-border: lightgray solid 1px;
|
||||||
|
$box-border-radius:0px;
|
||||||
|
$box-background: white;
|
||||||
|
|
||||||
|
@import 'layout';
|
||||||
|
@import 'calendars';
|
||||||
|
@import 'formtastic-bootstrap';
|
||||||
|
|
||||||
|
@import 'extra';
|
||||||
|
body {
|
||||||
|
background: url('http://localhost:3000/stvn.jpg') fixed no-repeat;
|
||||||
|
background-size:100%;
|
||||||
|
}
|
||||||
11
app/assets/stylesheets/themes/blue2/extra.css.scss
Normal file
11
app/assets/stylesheets/themes/blue2/extra.css.scss
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
div.content-column {
|
||||||
|
max-width:100%;
|
||||||
|
}
|
||||||
|
div.content-wrap {
|
||||||
|
margin-left:auto;
|
||||||
|
margin-right:auto;
|
||||||
|
}
|
||||||
|
a.linkbox, div.contentbox
|
||||||
|
{
|
||||||
|
border-color: $color-schema-1
|
||||||
|
}
|
||||||
@@ -40,6 +40,9 @@
|
|||||||
|
|
||||||
|
|
||||||
def get_theme
|
def get_theme
|
||||||
|
if params[:theme]== "default"
|
||||||
|
params[:theme]="blue1"
|
||||||
|
end
|
||||||
if ThemesForRails.available_theme_names.include?(params[:theme])
|
if ThemesForRails.available_theme_names.include?(params[:theme])
|
||||||
params[:theme]
|
params[:theme]
|
||||||
|
|
||||||
@@ -48,6 +51,6 @@ else
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
def default_url_options
|
def default_url_options
|
||||||
{locale: I18n.locale, theme: theme_name, ansicht: nil}
|
{locale: I18n.locale, theme: (theme_name=="blue1") ? "default" : theme_name , ansicht: nil}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
71
app/views/themes/blue2/home/index.html.erb
Normal file
71
app/views/themes/blue2/home/index.html.erb
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
<div class="content-wrap content-column">
|
||||||
|
<h1><%= I18n.t('home.willkommen') %></h1>
|
||||||
|
<%= raw(@starttopic.text) %>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span6">
|
||||||
|
|
||||||
|
<ul class="linklist">
|
||||||
|
<li>
|
||||||
|
<%= link_to ffi1_icon("facebook1") + I18n.t('home.fblogin'), user_omniauth_authorize_path(:facebook) ,class: :linkbox %>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to ffi1_icon("academic") + I18n.t('home.login'), user_omniauth_authorize_path(:ldap) ,class: :linkbox %>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<%= link_to ffi1_icon("quiz")+ I18n.t("themengruppe.faqs"), faqs_themengruppen_path,class: :linkbox %>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li><%= link_to ffi1_icon("books19")+"Beispielsammlung", studium_path(Studium.first, {:ansicht=>'semesteransicht'}) ,class: :btn ,class: :linkbox %></li>
|
||||||
|
<li><%= link_to "Alte Beispielsammlung", "http://www.fet.at/alt/bin/view/Beispielsammlung/WebHome" ,class: :btn ,class: :linkbox %></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<!-- <div class="alert">
|
||||||
|
<h2>Beta Test</h2>
|
||||||
|
<p>Die Webseite befindet sich derzeit in einem Entwicklungsstadium,
|
||||||
|
volle Funktionsfähigkeit ist noch nicht erreicht. Bitte Featurerequests und
|
||||||
|
Fehlermeldungen auf GitHub melden.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<%= link_to "Issues", "http://www.github.com/fetsite/fetsite/issues" %>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Bezüglich Design und Steuerung sind Vorschläge erwünscht.
|
||||||
|
</p>
|
||||||
|
<p><%= link_to "Steuerelemente und Komponenten", "http://getbootstrap.com/2.3.2/index.html" %></p>
|
||||||
|
<p>Um bei der Entwicklung mitzuhelfen braucht nur Ruby on Rails installiert werden</p>
|
||||||
|
<p><%= link_to "Getting Started" , startdev_home_index_path %></p>
|
||||||
|
<p> Das Kalender Feature wird überarbeitet, in Zukunft soll folgender Link nicht mehr funktionieren <%= link_to "Kalender", calendars_path %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>-->
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<%= render 'beispiele' %>
|
||||||
|
</div>
|
||||||
|
<div class="span6">
|
||||||
|
<ul class="unstyled linkbox-list" style="max-width:70em">
|
||||||
|
<% @neuigkeiten.each do |n| %>
|
||||||
|
<li><%= render n if can?(:show, n) %> </li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
Verschiedene Styles
|
||||||
|
<ul>
|
||||||
|
<li> <%= link_to "Darkblue", home_index_path({:theme=>"darkblue"}) %></li>
|
||||||
|
<li> <%= link_to "Blue1", home_index_path({:theme=>"blue1"}) %></li>
|
||||||
|
|
||||||
|
<li> <%= link_to "2003", home_index_path({:theme=>"2003"}) %></li>
|
||||||
|
<li> <%= link_to "white_1", home_index_path({:theme=>"white_1"}) %></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
BIN
public/stvn.jpg
Normal file
BIN
public/stvn.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
Reference in New Issue
Block a user