diff --git a/Gemfile b/Gemfile index ee2718f4..bf12953f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,13 +1,19 @@ source 'https://rubygems.org' -gem 'rails', '4.2.3' +gem 'rails', '4.2.4' gem 'turbolinks' gem 'turbolinks-redirect' -group :assets do - gem 'sass-rails', '~> 5.0.1' - gem 'coffee-rails', '~> 4.1.0' - gem 'uglifier', '>= 2.7.1' -# gem 'compass-rails','~> 2.0.4' -end +gem 'sass-rails', '~> 5.0.1' +gem 'coffee-rails', '~> 4.1.0' +gem 'uglifier', '>= 2.7.1' +#gem 'compass-rails','~> 2.0.4' +#gem 'twitter-bootstrap-rails' +gem 'bootstrap-sass' +gem 'bootstrap-sass-extras' +gem "bootstrap_flash_messages" +gem 'kaminari-bootstrap' +gem 'rails_bootstrap_navbar' +gem 'bootswatch-rails' +gem 'bootstrap-select-rails' gem 'protected_attributes' @@ -18,9 +24,10 @@ gem "jquery-easing-rails" gem 'jquery-validation-rails' gem "jquery-form-rails" gem "jquery-turbolinks" +gem "jquery-tmpl-rails" gem "momentjs-rails" gem 'rails-jquery-autocomplete' -gem 'mysql2' +gem 'mysql2', '~> 0.3.20' gem 'bcrypt-ruby' gem 'devise' gem 'devise-encryptable' @@ -59,13 +66,11 @@ gem 'jquery-ui-themes' gem 'html5_validators' gem 'pundit' gem 'dalli' -group :development do - gem 'better_errors' - gem 'quiet_assets' - gem 'rails_layout' - gem 'spring-commands-rspec' - gem "binding_of_caller" -end +gem 'better_errors' +gem 'quiet_assets' +gem 'rails_layout' +gem 'spring-commands-rspec' +gem "binding_of_caller" gem 'gritter_notices' gem 'activerecord-session_store' @@ -74,3 +79,6 @@ gem 'rails-erd' gem 'rack-cors', :require => 'rack/cors' gem "paperclip", :git => "git://github.com/thoughtbot/paperclip.git" gem 'nested_scaffold' +gem 'carrierwave' +gem 'mini_magick' +gem 'translit' diff --git a/app/assets/javascripts/desktop/aircompanies.js b/app/assets/javascripts/desktop/aircompanies.js deleted file mode 100644 index 85d6e95b..00000000 --- a/app/assets/javascripts/desktop/aircompanies.js +++ /dev/null @@ -1,12 +0,0 @@ -$(function() { - $("#aircompanies th a, #aircompanies .pagination a").on("click", '', function() { - $.getScript(this.href); - return false; - }); - $("#aircompanies_search input").keyup(function() { - $.get($("#aircompanies_search").attr("action"), - $("#aircompanies_search").serialize(), null, "script"); - return false; - }); -}); - diff --git a/app/assets/javascripts/desktop/airports.js b/app/assets/javascripts/desktop/airports.js index 96419d2c..c701868d 100644 --- a/app/assets/javascripts/desktop/airports.js +++ b/app/assets/javascripts/desktop/airports.js @@ -1,8 +1,4 @@ $(function() { -// $("#airports th a, #airports .pagination a").on("click", '', //function() { -// $.getScript(this.href); -// return false; -// }); $("#airports_search input").keyup(function() { $.get($("#airports_search").attr("action"), $("#airports_search").serialize(), null, "script"); diff --git a/app/assets/javascripts/desktop/application.js b/app/assets/javascripts/desktop/application.js index 8c333c9d..76d4a269 100644 --- a/app/assets/javascripts/desktop/application.js +++ b/app/assets/javascripts/desktop/application.js @@ -11,27 +11,17 @@ // GO AFTER THE REQUIRES BELOW. // //= require jquery +//= require jquery-ui //= require jquery_ujs -//= require mousetrap //= require jquery-tablesorter //= require jquery.validate //= require jquery.validate.additional-methods -//= require jquery.form -//= require jquery-ui/core -//= require jquery-ui/widget -//= require jquery-ui/mouse -//= require jquery-ui/position -//= require jquery-ui/sortable -//= require jquery-ui/accordion -//= require jquery-ui/accordion +//= require mousetrap //= require jquery-ui/autocomplete -//= require jquery-ui/datepicker -//= require jquery-ui/datepicker-ru -//= require jquery-ui/button -//= require jquery-ui/slider -//= require jquery-ui/selectmenu -//= require moment //= require autocomplete-rails -//= require_tree +//= require bootstrap-sprockets +//= require bootstrap +//= require_tree ./templates +//= require_tree . //= require_self diff --git a/app/assets/javascripts/desktop/bootstrap.js.coffee b/app/assets/javascripts/desktop/bootstrap.js.coffee new file mode 100644 index 00000000..94406798 --- /dev/null +++ b/app/assets/javascripts/desktop/bootstrap.js.coffee @@ -0,0 +1,3 @@ +jQuery -> + $("a[rel~=popover], .has-popover").popover() + $("a[rel~=tooltip], .has-tooltip").tooltip() diff --git a/app/assets/javascripts/desktop/button.js b/app/assets/javascripts/desktop/button.js deleted file mode 100644 index 658039c1..00000000 --- a/app/assets/javascripts/desktop/button.js +++ /dev/null @@ -1,3 +0,0 @@ -$(function() { - $( "input[type=submit], input[type=button], button, .jqbutton" ).button(); -}); diff --git a/app/assets/javascripts/desktop/date.js b/app/assets/javascripts/desktop/date.js deleted file mode 100644 index 5de82301..00000000 --- a/app/assets/javascripts/desktop/date.js +++ /dev/null @@ -1,1080 +0,0 @@ -// ----- -// The `timezoneJS.Date` object gives you full-blown timezone support, independent from the timezone set on the end-user's machine running the browser. It uses the Olson zoneinfo files for its timezone data. -// -// The constructor function and setter methods use proxy JavaScript Date objects behind the scenes, so you can use strings like '10/22/2006' with the constructor. You also get the same sensible wraparound behavior with numeric parameters (like setting a value of 14 for the month wraps around to the next March). -// -// The other significant difference from the built-in JavaScript Date is that `timezoneJS.Date` also has named properties that store the values of year, month, date, etc., so it can be directly serialized to JSON and used for data transfer. - -/* - * Copyright 2010 Matthew Eernisse (mde@fleegix.org) - * and Open Source Applications Foundation - * - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Credits: Ideas included from incomplete JS implementation of Olson - * parser, 'XMLDAte' by Philippe Goetz (philippe.goetz@wanadoo.fr) - * - * Contributions: - * Jan Niehusmann - * Ricky Romero - * Preston Hunt (prestonhunt@gmail.com) - * Dov. B Katz (dov.katz@morganstanley.com) - * Peter Bergström (pbergstr@mac.com) - * Long Ho - */ - - /*jshint laxcomma:true, laxbreak:true, expr:true*/ -(function () { - // Standard initialization stuff to make sure the library is - // usable on both client and server (node) side. - 'use strict'; - var root = this; - - // Export the timezoneJS object for Node.js, with backwards-compatibility for the old `require()` API - var timezoneJS = {}; - if (typeof define === 'function' && define.amd) { // AMD - define(function() { - return timezoneJS; - }); - } else if (typeof exports !== 'undefined') { - if (typeof module !== 'undefined' && module.exports) { - exports = module.exports = timezoneJS; - } - exports.timezoneJS = timezoneJS; - } else { - root.timezoneJS = timezoneJS; - } - - timezoneJS.VERSION = '0.4.11'; - - // Grab the ajax library from global context. - // This can be jQuery, Zepto or fleegix. - // You can also specify your own transport mechanism by declaring - // `timezoneJS.timezone.transport` to a `function`. More details will follow - var ajax_lib = root.$ || root.jQuery || root.Zepto - , fleegix = root.fleegix - // Declare constant list of days and months. Unfortunately this doesn't leave room for i18n due to the Olson data being in English itself - , DAYS = timezoneJS.Days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] - , MONTHS = timezoneJS.Months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] - , SHORT_MONTHS = {} - , SHORT_DAYS = {} - , EXACT_DATE_TIME = {}; - - //`{ 'Jan': 0, 'Feb': 1, 'Mar': 2, 'Apr': 3, 'May': 4, 'Jun': 5, 'Jul': 6, 'Aug': 7, 'Sep': 8, 'Oct': 9, 'Nov': 10, 'Dec': 11 }` - for (var i = 0; i < MONTHS.length; i++) { - SHORT_MONTHS[MONTHS[i].substr(0, 3)] = i; - } - - //`{ 'Sun': 0, 'Mon': 1, 'Tue': 2, 'Wed': 3, 'Thu': 4, 'Fri': 5, 'Sat': 6 }` - for (i = 0; i < DAYS.length; i++) { - SHORT_DAYS[DAYS[i].substr(0, 3)] = i; - } - - - //Handle array indexOf in IE - //From https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf - //Extending Array prototype causes IE to iterate thru extra element - var _arrIndexOf = Array.prototype.indexOf || function (el) { - if (this === null) { - throw new TypeError(); - } - var t = Object(this); - var len = t.length >>> 0; - if (len === 0) { - return -1; - } - var n = 0; - if (arguments.length > 1) { - n = Number(arguments[1]); - if (n != n) { // shortcut for verifying if it's NaN - n = 0; - } else if (n !== 0 && n !== Infinity && n !== -Infinity) { - n = (n > 0 || -1) * Math.floor(Math.abs(n)); - } - } - if (n >= len) { - return -1; - } - var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0); - for (; k < len; k++) { - if (k in t && t[k] === el) { - return k; - } - } - return -1; - }; - - // Format a number to the length = digits. For ex: - // - // `_fixWidth(2, 2) = '02'` - // - // `_fixWidth(1998, 2) = '98'` // year, shorten it to the 2 digit representation - // - // `_fixWidth(23, 1) = '23'` // hour, even with 1 digit specified, do not trim - // - // This is used to pad numbers in converting date to string in ISO standard. - var _fixWidth = function (number, digits) { - if (typeof number !== 'number') { throw 'not a number: ' + number; } - var trim = (number > 1000); // only trim 'year', as the others don't make sense why anyone would want that - var s = number.toString(); - var s_len = s.length; - if (trim && s_len > digits) { - return s.substr(s_len - digits, s_len); - } - s = [s]; - while (s_len < digits) { - s.unshift('0'); - s_len++; - } - return s.join(''); - }; - - // Abstraction layer for different transport layers, including fleegix/jQuery/Zepto/Node.js - // - // Object `opts` include - // - // - `url`: url to ajax query - // - // - `async`: true for asynchronous, false otherwise. If false, return value will be response from URL. This is true by default - // - // - `success`: success callback function - // - // - `error`: error callback function - // Returns response from URL if async is false, otherwise the AJAX request object itself - var _transport = function (opts) { - if (!opts) return; - if (!opts.url) throw new Error ('URL must be specified'); - if (!('async' in opts)) opts.async = true; - - // Server-side (node) - // if node, require the file system module - if (typeof window === 'undefined' && typeof require === 'function') { - var nodefs = require('fs'); - if (opts.async) { - // No point if there's no success handler - if (typeof opts.success !== 'function') return; - opts.error = opts.error || console.error; - return nodefs.readFile(opts.url, 'utf8', function(err, data) { - return err ? opts.error(err) : opts.success(data); - }); - } - return nodefs.readFileSync(opts.url, 'utf8'); - } - - // Client-side - if ((!fleegix || typeof fleegix.xhr === 'undefined') && (!ajax_lib || typeof ajax_lib.ajax === 'undefined')) { - throw new Error('Please use the Fleegix.js XHR module, jQuery ajax, Zepto ajax, or define your own transport mechanism for downloading zone files.'); - } - if (!opts.async) { - return fleegix && fleegix.xhr - ? fleegix.xhr.doReq({ url: opts.url, async: false }) - : ajax_lib.ajax({ url : opts.url, async : false, dataType: 'text' }).responseText; - } - return fleegix && fleegix.xhr - ? fleegix.xhr.send({ - url : opts.url, - method : 'get', - handleSuccess : opts.success, - handleErr : opts.error - }) - : ajax_lib.ajax({ - url : opts.url, - dataType: 'text', - method : 'GET', - error : opts.error, - success : opts.success - }); - }; - - // Constructor, which is similar to that of the native Date object itself - timezoneJS.Date = function () { - if(this === timezoneJS) { - throw 'timezoneJS.Date object must be constructed with \'new\''; - } - var args = Array.prototype.slice.apply(arguments) - , dt = null - , tz = null - , arr = [] - , valid = false - ; - - - //We support several different constructors, including all the ones from `Date` object - // with a timezone string at the end. - // - //- `[tz]`: Returns object with time in `tz` specified. - // - // - `utcMillis`, `[tz]`: Return object with UTC time = `utcMillis`, in `tz`. - // - // - `Date`, `[tz]`: Returns object with UTC time = `Date.getTime()`, in `tz`. - // - // - `year, month, [date,] [hours,] [minutes,] [seconds,] [millis,] [tz]: Same as `Date` object - // with tz. - // - // - `Array`: Can be any combo of the above. - // - //If 1st argument is an array, we can use it as a list of arguments itself - if (Object.prototype.toString.call(args[0]) === '[object Array]') { - args = args[0]; - } - // If the last string argument doesn't parse as a Date, treat it as tz - if (typeof args[args.length - 1] === 'string') { - valid = Date.parse(args[args.length - 1].replace(/GMT[\+\-]\d+/, '')); - if (isNaN(valid) || valid === null) { // Checking against null is required for compatability with Datejs - tz = args.pop(); - } - } - var is_dt_local = false; - switch (args.length) { - case 0: - dt = new Date(); - break; - case 1: - dt = new Date(args[0]); - // Date strings are local if they do not contain 'Z', 'T' or timezone offsets like '+0200' - // - more info below - if (typeof args[0] == 'string' && args[0].search(/[+-][0-9]{4}/) == -1 - && args[0].search(/Z/) == -1 && args[0].search(/T/) == -1) { - is_dt_local = true; - } - break; - case 2: - dt = new Date(args[0], args[1]); - is_dt_local = true; - break; - default: - for (var i = 0; i < 7; i++) { - arr[i] = args[i] || 0; - } - dt = new Date(arr[0], arr[1], arr[2], arr[3], arr[4], arr[5], arr[6]); - is_dt_local = true; - break; - } - - if (isNaN(dt.getTime())) { // invalid date were passed - throw new Error('Invalid date'); - } - - this._useCache = false; - this._tzInfo = {}; - this._day = 0; - this.year = 0; - this.month = 0; - this.date = 0; - this.hours = 0; - this.minutes = 0; - this.seconds = 0; - this.milliseconds = 0; - this.timezone = tz || null; - // Tricky part: - // The date is either given as unambiguous UTC date or otherwise the date is assumed - // to be a date in timezone `tz` or a locale date if `tz` is not provided. Thus, to - // determine how to use `dt` we distinguish between the following cases: - // - UTC (is_dt_local = false) - // `timezoneJS.Date(millis, [tz])` - // `timezoneJS.Date(Date, [tz])` - // `timezoneJS.Date(dt_str_tz, [tz])` - // - local/timezone `tz` (is_dt_local = true) - // `timezoneJS.Date(year, mon, day, [hour], [min], [second], [tz])` - // `timezoneJS.Date(dt_str, [tz])` - // - // `dt_str_tz` is a date string containing timezone information, i.e. containing 'Z', 'T' or - // /[+-][0-9]{4}/ (e.g. '+0200'), while `dt_str` is a string which does not contain - // timezone information. See: http://dygraphs.com/date-formats.html - if (is_dt_local) { - this.setFromDateObjProxy(dt); - } else { - this.setFromTimeProxy(dt.getTime(), tz); - } - }; - - // Implements most of the native Date object - timezoneJS.Date.prototype = { - getDate: function () { return this.date; }, - getDay: function () { return this._day; }, - getFullYear: function () { return this.year; }, - getMonth: function () { return this.month; }, - getYear: function () { return this.year - 1900; }, - getHours: function () { return this.hours; }, - getMilliseconds: function () { return this.milliseconds; }, - getMinutes: function () { return this.minutes; }, - getSeconds: function () { return this.seconds; }, - getUTCDate: function () { return this.getUTCDateProxy().getUTCDate(); }, - getUTCDay: function () { return this.getUTCDateProxy().getUTCDay(); }, - getUTCFullYear: function () { return this.getUTCDateProxy().getUTCFullYear(); }, - getUTCHours: function () { return this.getUTCDateProxy().getUTCHours(); }, - getUTCMilliseconds: function () { return this.getUTCDateProxy().getUTCMilliseconds(); }, - getUTCMinutes: function () { return this.getUTCDateProxy().getUTCMinutes(); }, - getUTCMonth: function () { return this.getUTCDateProxy().getUTCMonth(); }, - getUTCSeconds: function () { return this.getUTCDateProxy().getUTCSeconds(); }, - // Time adjusted to user-specified timezone - getTime: function () { - return this._timeProxy + (this.getTimezoneOffset() * 60 * 1000); - }, - getTimezone: function () { return this.timezone; }, - getTimezoneOffset: function () { return this.getTimezoneInfo().tzOffset; }, - getTimezoneAbbreviation: function () { return this.getTimezoneInfo().tzAbbr; }, - getTimezoneInfo: function () { - if (this._useCache) return this._tzInfo; - var res; - // If timezone is specified, get the correct timezone info based on the Date given - if (this.timezone) { - res = this.timezone === 'Etc/UTC' || this.timezone === 'Etc/GMT' - ? { tzOffset: 0, tzAbbr: 'UTC' } - : timezoneJS.timezone.getTzInfo(this._timeProxy, this.timezone); - } - // If no timezone was specified, use the local browser offset - else { - res = { tzOffset: this.getLocalOffset(), tzAbbr: null }; - } - this._tzInfo = res; - this._useCache = true; - return res; - }, - getUTCDateProxy: function () { - var dt = new Date(this._timeProxy); - dt.setUTCMinutes(dt.getUTCMinutes() + this.getTimezoneOffset()); - return dt; - }, - setDate: function (date) { - this.setAttribute('date', date); - return this.getTime(); - }, - setFullYear: function (year, month, date) { - if (date !== undefined) { this.setAttribute('date', 1); } - this.setAttribute('year', year); - if (month !== undefined) { this.setAttribute('month', month); } - if (date !== undefined) { this.setAttribute('date', date); } - return this.getTime(); - }, - setMonth: function (month, date) { - this.setAttribute('month', month); - if (date !== undefined) { this.setAttribute('date', date); } - return this.getTime(); - }, - setYear: function (year) { - year = Number(year); - if (0 <= year && year <= 99) { year += 1900; } - this.setUTCAttribute('year', year); - return this.getTime(); - }, - setHours: function (hours, minutes, seconds, milliseconds) { - this.setAttribute('hours', hours); - if (minutes !== undefined) { this.setAttribute('minutes', minutes); } - if (seconds !== undefined) { this.setAttribute('seconds', seconds); } - if (milliseconds !== undefined) { this.setAttribute('milliseconds', milliseconds); } - return this.getTime(); - }, - setMinutes: function (minutes, seconds, milliseconds) { - this.setAttribute('minutes', minutes); - if (seconds !== undefined) { this.setAttribute('seconds', seconds); } - if (milliseconds !== undefined) { this.setAttribute('milliseconds', milliseconds); } - return this.getTime(); - }, - setSeconds: function (seconds, milliseconds) { - this.setAttribute('seconds', seconds); - if (milliseconds !== undefined) { this.setAttribute('milliseconds', milliseconds); } - return this.getTime(); - }, - setMilliseconds: function (milliseconds) { - this.setAttribute('milliseconds', milliseconds); - return this.getTime(); - }, - setTime: function (n) { - if (isNaN(n)) { throw new Error('Units must be a number.'); } - this.setFromTimeProxy(n, this.timezone); - return this.getTime(); - }, - setUTCFullYear: function (year, month, date) { - if (date !== undefined) { this.setUTCAttribute('date', 1); } - this.setUTCAttribute('year', year); - if (month !== undefined) { this.setUTCAttribute('month', month); } - if (date !== undefined) { this.setUTCAttribute('date', date); } - return this.getTime(); - }, - setUTCMonth: function (month, date) { - this.setUTCAttribute('month', month); - if (date !== undefined) { this.setUTCAttribute('date', date); } - return this.getTime(); - }, - setUTCDate: function (date) { - this.setUTCAttribute('date', date); - return this.getTime(); - }, - setUTCHours: function (hours, minutes, seconds, milliseconds) { - this.setUTCAttribute('hours', hours); - if (minutes !== undefined) { this.setUTCAttribute('minutes', minutes); } - if (seconds !== undefined) { this.setUTCAttribute('seconds', seconds); } - if (milliseconds !== undefined) { this.setUTCAttribute('milliseconds', milliseconds); } - return this.getTime(); - }, - setUTCMinutes: function (minutes, seconds, milliseconds) { - this.setUTCAttribute('minutes', minutes); - if (seconds !== undefined) { this.setUTCAttribute('seconds', seconds); } - if (milliseconds !== undefined) { this.setUTCAttribute('milliseconds', milliseconds); } - return this.getTime(); - }, - setUTCSeconds: function (seconds, milliseconds) { - this.setUTCAttribute('seconds', seconds); - if (milliseconds !== undefined) { this.setUTCAttribute('milliseconds', milliseconds); } - return this.getTime(); - }, - setUTCMilliseconds: function (milliseconds) { - this.setUTCAttribute('milliseconds', milliseconds); - return this.getTime(); - }, - setFromDateObjProxy: function (dt) { - this.year = dt.getFullYear(); - this.month = dt.getMonth(); - this.date = dt.getDate(); - this.hours = dt.getHours(); - this.minutes = dt.getMinutes(); - this.seconds = dt.getSeconds(); - this.milliseconds = dt.getMilliseconds(); - this._day = dt.getDay(); - this._dateProxy = dt; - this._timeProxy = Date.UTC(this.year, this.month, this.date, this.hours, this.minutes, this.seconds, this.milliseconds); - this._useCache = false; - }, - setFromTimeProxy: function (utcMillis, tz) { - var dt = new Date(utcMillis); - var tzOffset = tz ? timezoneJS.timezone.getTzInfo(utcMillis, tz, true).tzOffset : dt.getTimezoneOffset(); - dt.setTime(utcMillis + (dt.getTimezoneOffset() - tzOffset) * 60000); - this.setFromDateObjProxy(dt); - }, - setAttribute: function (unit, n) { - if (isNaN(n)) { throw new Error('Units must be a number.'); } - var dt = this._dateProxy; - var meth = unit === 'year' ? 'FullYear' : unit.substr(0, 1).toUpperCase() + unit.substr(1); - dt['set' + meth](n); - this.setFromDateObjProxy(dt); - }, - setUTCAttribute: function (unit, n) { - if (isNaN(n)) { throw new Error('Units must be a number.'); } - var meth = unit === 'year' ? 'FullYear' : unit.substr(0, 1).toUpperCase() + unit.substr(1); - var dt = this.getUTCDateProxy(); - dt['setUTC' + meth](n); - dt.setUTCMinutes(dt.getUTCMinutes() - this.getTimezoneOffset()); - this.setFromTimeProxy(dt.getTime() + this.getTimezoneOffset() * 60000, this.timezone); - }, - setTimezone: function (tz) { - var previousOffset = this.getTimezoneInfo().tzOffset; - this.timezone = tz; - this._useCache = false; - // Set UTC minutes offsets by the delta of the two timezones - this.setUTCMinutes(this.getUTCMinutes() - this.getTimezoneInfo().tzOffset + previousOffset); - }, - removeTimezone: function () { - this.timezone = null; - this._useCache = false; - }, - valueOf: function () { return this.getTime(); }, - clone: function () { - return this.timezone ? new timezoneJS.Date(this.getTime(), this.timezone) : new timezoneJS.Date(this.getTime()); - }, - toGMTString: function () { return this.toString('EEE, dd MMM yyyy HH:mm:ss Z', 'Etc/GMT'); }, - toLocaleString: function () {}, - toLocaleDateString: function () {}, - toLocaleTimeString: function () {}, - toSource: function () {}, - toISOString: function () { return this.toString('yyyy-MM-ddTHH:mm:ss.SSS', 'Etc/UTC') + 'Z'; }, - toJSON: function () { return this.toISOString(); }, - toDateString: function () { return this.toString('EEE MMM dd yyyy'); }, - toTimeString: function () { return this.toString('H:mm k'); }, - // Allows different format following ISO8601 format: - toString: function (format, tz) { - // Default format is the same as toISOString - if (!format) format = 'yyyy-MM-ddTHH:mm:ss.SSS'; - var result = format; - var tzInfo = tz ? timezoneJS.timezone.getTzInfo(this.getTime(), tz) : this.getTimezoneInfo(); - var _this = this; - // If timezone is specified, get a clone of the current Date object and modify it - if (tz) { - _this = this.clone(); - _this.setTimezone(tz); - } - var hours = _this.getHours(); - return result - // fix the same characters in Month names - .replace(/a+/g, function () { return 'k'; }) - // `y`: year - .replace(/y+/g, function (token) { return _fixWidth(_this.getFullYear(), token.length); }) - // `d`: date - .replace(/d+/g, function (token) { return _fixWidth(_this.getDate(), token.length); }) - // `m`: minute - .replace(/m+/g, function (token) { return _fixWidth(_this.getMinutes(), token.length); }) - // `s`: second - .replace(/s+/g, function (token) { return _fixWidth(_this.getSeconds(), token.length); }) - // `S`: millisecond - .replace(/S+/g, function (token) { return _fixWidth(_this.getMilliseconds(), token.length); }) - // 'h': 12 hour format - .replace(/h+/g, function (token) { return _fixWidth( ((hours%12) === 0) ? 12 : (hours % 12), token.length); }) - // `M`: month. Note: `MM` will be the numeric representation (e.g February is 02) but `MMM` will be text representation (e.g February is Feb) - .replace(/M+/g, function (token) { - var _month = _this.getMonth(), - _len = token.length; - if (_len > 3) { - return timezoneJS.Months[_month]; - } else if (_len > 2) { - return timezoneJS.Months[_month].substring(0, _len); - } - return _fixWidth(_month + 1, _len); - }) - // `k`: AM/PM - .replace(/k+/g, function () { - if (hours >= 12) { - if (hours > 12) { - hours -= 12; - } - return 'PM'; - } - return 'AM'; - }) - // `H`: hour - .replace(/H+/g, function (token) { return _fixWidth(hours, token.length); }) - // `E`: day - .replace(/E+/g, function (token) { return DAYS[_this.getDay()].substring(0, token.length); }) - // `Z`: timezone abbreviation - .replace(/Z+/gi, function () { return tzInfo.tzAbbr; }); - }, - toUTCString: function () { return this.toGMTString(); }, - civilToJulianDayNumber: function (y, m, d) { - var a; - // Adjust for zero-based JS-style array - m++; - if (m > 12) { - a = parseInt(m/12, 10); - m = m % 12; - y += a; - } - if (m <= 2) { - y -= 1; - m += 12; - } - a = Math.floor(y / 100); - var b = 2 - a + Math.floor(a / 4) - , jDt = Math.floor(365.25 * (y + 4716)) + Math.floor(30.6001 * (m + 1)) + d + b - 1524; - return jDt; - }, - getLocalOffset: function () { - return this._dateProxy.getTimezoneOffset(); - } - }; - - - timezoneJS.timezone = new function () { - var _this = this - , regionMap = {'Etc':'etcetera','EST':'northamerica','MST':'northamerica','HST':'northamerica','EST5EDT':'northamerica','CST6CDT':'northamerica','MST7MDT':'northamerica','PST8PDT':'northamerica','America':['northamerica','southamerica'],'Pacific':'australasia','Atlantic':'europe','Africa':'africa','Indian':'africa','Antarctica':'antarctica','Asia':'asia','Australia':'australasia','Europe':'europe','WET':'europe','CET':'europe','MET':'europe','EET':'europe'} - , regionExceptions = {'Pacific/Honolulu':'northamerica','Atlantic/Bermuda':'northamerica','Atlantic/Cape_Verde':'africa','Atlantic/St_Helena':'africa','Indian/Kerguelen':'antarctica','Indian/Chagos':'asia','Indian/Maldives':'asia','Indian/Christmas':'australasia','Indian/Cocos':'australasia','America/Danmarkshavn':'europe','America/Scoresbysund':'europe','America/Godthab':'europe','America/Thule':'europe','Asia/Istanbul':'europe','Asia/Yekaterinburg':'europe','Asia/Omsk':'europe','Asia/Novosibirsk':'europe','Asia/Krasnoyarsk':'europe','Asia/Irkutsk':'europe','Asia/Yakutsk':'europe','Asia/Vladivostok':'europe','Asia/Sakhalin':'europe','Asia/Magadan':'europe','Asia/Kamchatka':'europe','Asia/Anadyr':'europe','Africa/Ceuta':'europe','GMT':'etcetera','Europe/Nicosia':'asia'}; - function invalidTZError(t) { throw new Error('Timezone \'' + t + '\' is either incorrect, or not loaded in the timezone registry.'); } - function builtInLoadZoneFile(fileName, opts) { - var url = _this.zoneFileBasePath + '/' + fileName; - return !opts || !opts.async - ? _this.parseZones(_this.transport({ url : url, async : false })) - : _this.transport({ - async: true, - url : url, - success : function (str) { - return _this.parseZones(str) && typeof opts.callback === 'function' && opts.callback(); - }, - error : function () { - throw new Error('Error retrieving \'' + url + '\' zoneinfo files'); - } - }); - } - function getRegionForTimezone(tz) { - var exc = regionExceptions[tz] - , reg - , ret; - if (exc) return exc; - reg = tz.split('/')[0]; - ret = regionMap[reg]; - // If there's nothing listed in the main regions for this TZ, check the 'backward' links - if (ret) return ret; - var link = _this.zones[tz]; - if (typeof link === 'string') { - return getRegionForTimezone(link); - } - // Backward-compat file hasn't loaded yet, try looking in there - if (!_this.loadedZones.backward) { - // This is for obvious legacy zones (e.g., Iceland) that don't even have a prefix like 'America/' that look like normal zones - _this.loadZoneFile('backward'); - return getRegionForTimezone(tz); - } - invalidTZError(tz); - } - //str has format hh:mm, can be negative - function parseTimeString(str) { - var pat = /(\d+)(?::0*(\d*))?(?::0*(\d*))?([wsugz])?$/; - var hms = str.match(pat); - hms[1] = parseInt(hms[1], 10); - hms[2] = hms[2] ? parseInt(hms[2], 10) : 0; - hms[3] = hms[3] ? parseInt(hms[3], 10) : 0; - return hms.slice(1, 5); - } - //z is something like `[ '-3:44:40', '-', 'LMT', '1911', 'May', '15', '' ]` or `[ '-5:00', '-', 'EST', '1974', 'Apr', '28', '2:00' ]` - function processZone(z) { - if (!z[3]) { return; } - var yea = parseInt(z[3], 10) - , mon = 11 - , dat = 31; - //If month is there - if (z[4]) { - mon = SHORT_MONTHS[z[4].substr(0, 3)]; - dat = parseInt(z[5], 10) || 1; - } - var t = z[6] ? parseTimeString(z[6]) : [0, 0, 0]; - return [yea, mon, dat, t[0], t[1], t[2]]; - } - function getZone(dt, tz) { - var utcMillis = typeof dt === 'number' ? dt : new Date(dt).getTime(); - var t = tz; - var zoneList = _this.zones[t]; - // Follow links to get to an actual zone - while (typeof zoneList === 'string') { - t = zoneList; - zoneList = _this.zones[t]; - } - if (!zoneList) { - // Backward-compat file hasn't loaded yet, try looking in there - if (!_this.loadedZones.backward) { - //This is for backward entries like 'America/Fort_Wayne' that - // getRegionForTimezone *thinks* it has a region file and zone - // for (e.g., America => 'northamerica'), but in reality it's a - // legacy zone we need the backward file for. - _this.loadZoneFile('backward'); - return getZone(dt, tz); - } else if (t && t !== tz) { - //Load the linked zone found in the backward file - _this.lazyLoadZoneFiles(t); - return getZone(dt, t); - } - invalidTZError(t); - } - if (zoneList.length === 0) { - throw new Error('No Zone found for \'' + tz + '\' on ' + dt); - } - //Do backwards lookup since most use cases deal with newer dates. - for (var i = zoneList.length - 1; i >= 0; i--) { - var z = zoneList[i]; - if (z[3] && utcMillis > z[3]) break; - } - return zoneList[i+1]; - } - function getBasicOffset(time) { - var off = parseTimeString(time) - , adj = time.charAt(0) === '-' ? -1 : 1; - off = adj * (((off[0] * 60 + off[1]) * 60 + off[2]) * 1000); - return off/60/1000; - } - function getAdjustedOffset(off, min) { - return -Math.ceil(min - off); - } - - //if isUTC is true, date is given in UTC, otherwise it's given - // in local time (ie. date.getUTC*() returns local time components) - function getRule(dt, zone, isUTC) { - var date = typeof dt === 'number' ? new Date(dt) : dt; - var ruleset = zone[1]; - var basicOffset = zone[0]; - - // If the zone has a DST rule like '1:00', create a rule and return it - // instead of looking it up in the parsed rules - var staticDstMatch = ruleset.match(/^([0-9]):([0-9][0-9])$/); - if (staticDstMatch) { - return [-1000000, 'max', '-', 'Jan', 1, [0, 0, 0], parseInt(staticDstMatch[1],10) * 60 + parseInt(staticDstMatch[2], 10), '-']; - } - - //Convert a date to UTC. Depending on the 'type' parameter, the date - // parameter may be: - // - // - `u`, `g`, `z`: already UTC (no adjustment). - // - // - `s`: standard time (adjust for time zone offset but not for DST) - // - // - `w`: wall clock time (adjust for both time zone and DST offset). - // - // DST adjustment is done using the rule given as third argument. - var convertDateToUTC = function (date, type, rule) { - var offset = 0; - - if (type === 'u' || type === 'g' || type === 'z') { // UTC - offset = 0; - } else if (type === 's') { // Standard Time - offset = basicOffset; - } else if (type === 'w' || !type) { // Wall Clock Time - offset = getAdjustedOffset(basicOffset, rule[6]); - } else { - throw new Error('unknown type ' + type); - } - offset *= 60 * 1000; // to millis - - return new Date(date.getTime() + offset); - }; - - //Step 1: Find applicable rules for this year. - // - //Step 2: Sort the rules by effective date. - // - //Step 3: Check requested date to see if a rule has yet taken effect this year. If not, - // - //Step 4: Get the rules for the previous year. If there isn't an applicable rule for last year, then - // there probably is no current time offset since they seem to explicitly turn off the offset - // when someone stops observing DST. - // - // FIXME if this is not the case and we'll walk all the way back (ugh). - // - //Step 5: Sort the rules by effective date. - //Step 6: Apply the most recent rule before the current time. - var convertRuleToExactDateAndTime = function (yearAndRule, prevRule) { - var year = yearAndRule[0] - , rule = yearAndRule[1]; - // Assume that the rule applies to the year of the given date. - - var hms = rule[5]; - var effectiveDate; - - if (!EXACT_DATE_TIME[year]) - EXACT_DATE_TIME[year] = {}; - - // Result for given parameters is already stored - if (EXACT_DATE_TIME[year][rule]) - effectiveDate = EXACT_DATE_TIME[year][rule]; - else { - //If we have a specific date, use that! - if (!isNaN(rule[4])) { - effectiveDate = new Date(Date.UTC(year, SHORT_MONTHS[rule[3]], rule[4], hms[0], hms[1], hms[2], 0)); - } - //Let's hunt for the date. - else { - var targetDay - , operator; - //Example: `lastThu` - if (rule[4].substr(0, 4) === 'last') { - // Start at the last day of the month and work backward. - effectiveDate = new Date(Date.UTC(year, SHORT_MONTHS[rule[3]] + 1, 1, hms[0] - 24, hms[1], hms[2], 0)); - targetDay = SHORT_DAYS[rule[4].substr(4, 3)]; - operator = '<='; - } - //Example: `Sun>=15` - else { - //Start at the specified date. - effectiveDate = new Date(Date.UTC(year, SHORT_MONTHS[rule[3]], rule[4].substr(5), hms[0], hms[1], hms[2], 0)); - targetDay = SHORT_DAYS[rule[4].substr(0, 3)]; - operator = rule[4].substr(3, 2); - } - var ourDay = effectiveDate.getUTCDay(); - //Go forwards. - if (operator === '>=') { - effectiveDate.setUTCDate(effectiveDate.getUTCDate() + (targetDay - ourDay + ((targetDay < ourDay) ? 7 : 0))); - } - //Go backwards. Looking for the last of a certain day, or operator is '<=' (less likely). - else { - effectiveDate.setUTCDate(effectiveDate.getUTCDate() + (targetDay - ourDay - ((targetDay > ourDay) ? 7 : 0))); - } - } - EXACT_DATE_TIME[year][rule] = effectiveDate; - } - - - //If previous rule is given, correct for the fact that the starting time of the current - // rule may be specified in local time. - if (prevRule) { - effectiveDate = convertDateToUTC(effectiveDate, hms[3], prevRule); - } - return effectiveDate; - }; - - var findApplicableRules = function (year, ruleset) { - var applicableRules = []; - for (var i = 0; ruleset && i < ruleset.length; i++) { - //Exclude future rules. - if (ruleset[i][0] <= year && - ( - // Date is in a set range. - ruleset[i][1] >= year || - // Date is in an 'only' year. - (ruleset[i][0] === year && ruleset[i][1] === 'only') || - //We're in a range from the start year to infinity. - ruleset[i][1] === 'max' - ) - ) { - //It's completely okay to have any number of matches here. - // Normally we should only see two, but that doesn't preclude other numbers of matches. - // These matches are applicable to this year. - applicableRules.push([year, ruleset[i]]); - } - } - return applicableRules; - }; - - var compareDates = function (a, b, prev) { - var year, rule; - if (!(a instanceof Date)) { - year = a[0]; - rule = a[1]; - a = (!prev && EXACT_DATE_TIME[year] && EXACT_DATE_TIME[year][rule]) - ? EXACT_DATE_TIME[year][rule] - : convertRuleToExactDateAndTime(a, prev); - } else if (prev) { - a = convertDateToUTC(a, isUTC ? 'u' : 'w', prev); - } - if (!(b instanceof Date)) { - year = b[0]; - rule = b[1]; - b = (!prev && EXACT_DATE_TIME[year] && EXACT_DATE_TIME[year][rule]) ? EXACT_DATE_TIME[year][rule] - : convertRuleToExactDateAndTime(b, prev); - } else if (prev) { - b = convertDateToUTC(b, isUTC ? 'u' : 'w', prev); - } - a = Number(a); - b = Number(b); - return a - b; - }; - - var year = date.getUTCFullYear(); - var applicableRules; - - applicableRules = findApplicableRules(year, _this.rules[ruleset]); - applicableRules.push(date); - //While sorting, the time zone in which the rule starting time is specified - // is ignored. This is ok as long as the timespan between two DST changes is - // larger than the DST offset, which is probably always true. - // As the given date may indeed be close to a DST change, it may get sorted - // to a wrong position (off by one), which is corrected below. - applicableRules.sort(compareDates); - - //If there are not enough past DST rules... - if (_arrIndexOf.call(applicableRules, date) < 2) { - applicableRules = applicableRules.concat(findApplicableRules(year-1, _this.rules[ruleset])); - applicableRules.sort(compareDates); - } - var pinpoint = _arrIndexOf.call(applicableRules, date); - if (pinpoint > 1 && compareDates(date, applicableRules[pinpoint-1], applicableRules[pinpoint-2][1]) < 0) { - //The previous rule does not really apply, take the one before that. - return applicableRules[pinpoint - 2][1]; - } else if (pinpoint > 0 && pinpoint < applicableRules.length - 1 && compareDates(date, applicableRules[pinpoint+1], applicableRules[pinpoint-1][1]) > 0) { - - //The next rule does already apply, take that one. - return applicableRules[pinpoint + 1][1]; - } else if (pinpoint === 0) { - //No applicable rule found in this and in previous year. - return null; - } - return applicableRules[pinpoint - 1][1]; - } - function getAbbreviation(zone, rule) { - var base = zone[2]; - if (base.indexOf('%s') > -1) { - var repl; - if (rule) { - repl = rule[7] === '-' ? '' : rule[7]; - } - //FIXME: Right now just falling back to Standard -- - // apparently ought to use the last valid rule, - // although in practice that always ought to be Standard - else { - repl = 'S'; - } - return base.replace('%s', repl); - } else if (base.indexOf('/') > -1) { - //Chose one of two alternative strings. - return base.split('/', 2)[rule ? (rule[6] ? 1 : 0) : 0]; - } - return base; - } - - this.zoneFileBasePath = null; - this.zoneFiles = ['africa', 'antarctica', 'asia', 'australasia', 'backward', 'etcetera', 'europe', 'northamerica', 'pacificnew', 'southamerica']; - this.loadingSchemes = { - PRELOAD_ALL: 'preloadAll', - LAZY_LOAD: 'lazyLoad', - MANUAL_LOAD: 'manualLoad' - }; - this.getRegionForTimezone = getRegionForTimezone; - this.loadingScheme = this.loadingSchemes.LAZY_LOAD; - this.loadedZones = {}; - this.zones = {}; - this.rules = {}; - - this.init = function (o) { - var opts = { async: true } - , def = this.loadingScheme === this.loadingSchemes.PRELOAD_ALL - ? this.zoneFiles - : (this.defaultZoneFile || 'northamerica'); - //Override default with any passed-in opts - for (var p in o) { - opts[p] = o[p]; - } - return this.loadZoneFiles(def, opts); - }; - - //Get a single zone file, or all files in an array - this.loadZoneFiles = function(fileNames, opts) { - var callbackFn - , done = 0; - if (typeof fileNames === 'string') { - return this.loadZoneFile(fileNames, opts); - } - //Wraps callback function in another one that makes - // sure all files have been loaded. - opts = opts || {}; - callbackFn = opts.callback; - opts.callback = function () { - done++; - (done === fileNames.length) && typeof callbackFn === 'function' && callbackFn(); - }; - for (var i = 0; i < fileNames.length; i++) { - this.loadZoneFile(fileNames[i], opts); - } - }; - //Get the zone files via XHR -- if the sync flag - // is set to true, it's being called by the lazy-loading - // mechanism, so the result needs to be returned inline. - this.loadZoneFile = function (fileName, opts) { - if (typeof this.zoneFileBasePath === 'undefined') { - throw new Error('Please define a base path to your zone file directory -- timezoneJS.timezone.zoneFileBasePath.'); - } - //Ignore already loaded zones. - if (this.loadedZones[fileName]) { - return; - } - this.loadedZones[fileName] = true; - return builtInLoadZoneFile(fileName, opts); - }; - this.loadZoneJSONData = function (url, sync) { - var processData = function (data) { - data = eval('('+ data +')'); - for (var z in data.zones) { - _this.zones[z] = data.zones[z]; - } - for (var r in data.rules) { - _this.rules[r] = data.rules[r]; - } - }; - return sync - ? processData(_this.transport({ url : url, async : false })) - : _this.transport({ url : url, success : processData }); - }; - this.loadZoneDataFromObject = function (data) { - if (!data) { return; } - for (var z in data.zones) { - _this.zones[z] = data.zones[z]; - } - for (var r in data.rules) { - _this.rules[r] = data.rules[r]; - } - }; - this.getAllZones = function () { - var arr = []; - for (var z in this.zones) { arr.push(z); } - return arr.sort(); - }; - this.parseZones = function (str) { - - if (!str) { - return false; - } - - var lines = str.split('\n') - , arr = [] - , chunk = '' - , l - , zone = null - , rule = null; - for (var i = 0; i < lines.length; i++) { - l = lines[i]; - if (l.match(/^\s/)) { - l = 'Zone ' + zone + l; - } - l = l.split('#')[0]; - if (l.length > 3) { - arr = l.split(/\s+/); - chunk = arr.shift(); - //Ignore Leap. - switch (chunk) { - case 'Zone': - zone = arr.shift(); - if (!_this.zones[zone]) { - _this.zones[zone] = []; - } - if (arr.length < 3) break; - //Process zone right here and replace 3rd element with the processed array. - arr.splice(3, arr.length, processZone(arr)); - if (arr[3]) arr[3] = Date.UTC.apply(null, arr[3]); - arr[0] = -getBasicOffset(arr[0]); - _this.zones[zone].push(arr); - break; - case 'Rule': - rule = arr.shift(); - if (!_this.rules[rule]) { - _this.rules[rule] = []; - } - //Parse int FROM year and TO year - arr[0] = parseInt(arr[0], 10); - arr[1] = parseInt(arr[1], 10) || arr[1]; - //Parse time string AT - arr[5] = parseTimeString(arr[5]); - //Parse offset SAVE - arr[6] = getBasicOffset(arr[6]); - _this.rules[rule].push(arr); - break; - case 'Link': - //No zones for these should already exist. - if (_this.zones[arr[1]]) { - throw new Error('Error with Link ' + arr[1] + '. Cannot create link of a preexisted zone.'); - } - //Create the link. - //Links are saved as strings that are the keys - //of their referenced values. - //Ex: "US/Central": "America/Chicago" - if (isNaN(arr[0])) { - _this.zones[arr[1]] = arr[0]; - } - else { - _this.zones[arr[1]] = parseInt(arr[0], 10); - } - break; - } - } - } - return true; - }; - //Expose transport mechanism and allow overwrite. - this.transport = _transport; - this.getTzInfo = function (dt, tz, isUTC) { - this.lazyLoadZoneFiles(tz); - var z = getZone(dt, tz); - var off = +z[0]; - //See if the offset needs adjustment. - var rule = getRule(dt, z, isUTC); - if (rule) { - off = getAdjustedOffset(off, rule[6]); - } - var abbr = getAbbreviation(z, rule); - return { tzOffset: off, tzAbbr: abbr }; - }; - //Lazy-load any zones not yet loaded. - this.lazyLoadZoneFiles = function(tz) { - if (this.loadingScheme === this.loadingSchemes.LAZY_LOAD) { - //Get the correct region for the zone. - var zoneFile = getRegionForTimezone(tz); - if (!zoneFile) { - throw new Error('Not a valid timezone ID.'); - } - //Get the file and parse it -- use synchronous XHR. - this.loadZoneFiles(zoneFile); - } - }; - }(); -}).call(typeof window !== "undefined" ? window : this); diff --git a/app/assets/javascripts/desktop/menu.js b/app/assets/javascripts/desktop/menu.js new file mode 100644 index 00000000..55f4c085 --- /dev/null +++ b/app/assets/javascripts/desktop/menu.js @@ -0,0 +1,8 @@ +$(document).ready(function(){ + $('.navbar .dropdown').hover(function() { + $(this).find('.dropdown-menu').first().stop(true, true).delay(250).slideDown(); + }, function() { + $(this).find('.dropdown-menu').first().stop(true, true).delay(100).slideUp() + }); +}) + diff --git a/app/assets/javascripts/desktop/selectToUISlider.jQuery.js b/app/assets/javascripts/desktop/selectToUISlider.jQuery.js deleted file mode 100644 index 18704d78..00000000 --- a/app/assets/javascripts/desktop/selectToUISlider.jQuery.js +++ /dev/null @@ -1,240 +0,0 @@ -/* - * -------------------------------------------------------------------- - * jQuery-Plugin - selectToUISlider - creates a UI slider component from a select element(s) - * by Scott Jehl, scott@filamentgroup.com - * http://www.filamentgroup.com - * reference article: http://www.filamentgroup.com/lab/update_jquery_ui_16_slider_from_a_select_element/ - * demo page: http://www.filamentgroup.com/examples/slider_v2/index.html - * - * Copyright (c) 2008 Filament Group, Inc - * Dual licensed under the MIT (filamentgroup.com/examples/mit-license.txt) and GPL (filamentgroup.com/examples/gpl-license.txt) licenses. - * - * Usage Notes: please refer to our article above for documentation - * - * -------------------------------------------------------------------- - */ - - -jQuery.fn.selectToUISlider = function(settings){ - var selects = jQuery(this); - - //accessible slider options - var options = jQuery.extend({ - labels: 3, //number of visible labels - tooltip: true, //show tooltips, boolean - tooltipSrc: 'text',//accepts 'value' as well - labelSrc: 'value',//accepts 'value' as well , - sliderOptions: null - }, settings); - - - //handle ID attrs - selects each need IDs for handles to find them - var handleIds = (function(){ - var tempArr = []; - selects.each(function(){ - tempArr.push('handle_'+jQuery(this).attr('id')); - }); - return tempArr; - })(); - - //array of all option elements in select element (ignores optgroups) - var selectOptions = (function(){ - var opts = []; - selects.eq(0).find('option').each(function(){ - opts.push({ - value: jQuery(this).attr('value'), - text: jQuery(this).text() - }); - }); - return opts; - })(); - - //array of opt groups if present - var groups = (function(){ - if(selects.eq(0).find('optgroup').size()>0){ - var groupedData = []; - selects.eq(0).find('optgroup').each(function(i){ - groupedData[i] = {}; - groupedData[i].label = jQuery(this).attr('label'); - groupedData[i].options = []; - jQuery(this).find('option').each(function(){ - groupedData[i].options.push({text: jQuery(this).text(), value: jQuery(this).attr('value')}); - }); - }); - return groupedData; - } - else return null; - })(); - - //check if obj is array - function isArray(obj) { - return obj.constructor == Array; - } - //return tooltip text from option index - function ttText(optIndex){ - return (options.tooltipSrc == 'text') ? selectOptions[optIndex].text : selectOptions[optIndex].value; - } - - //plugin-generated slider options (can be overridden) - var sliderOptions = { - step: 1, - min: 0, - orientation: 'horizontal', - max: selectOptions.length-1, - range: selects.length > 1,//multiple select elements = true - slide: function(e, ui) {//slide function - var thisHandle = jQuery(ui.handle); - //handle feedback - var textval = ttText(ui.value); - thisHandle - .attr('aria-valuetext', textval) - .attr('aria-valuenow', ui.value) - .find('.ui-slider-tooltip .ttContent') - .text( textval ); - - //control original select menu - var currSelect = jQuery('#' + thisHandle.attr('id').split('handle_')[1]); - currSelect.find('option').eq(ui.value).attr('selected', 'selected'); - }, - values: (function(){ - var values = []; - selects.each(function(){ - values.push( jQuery(this).get(0).selectedIndex ); - }); - return values; - })() - }; - - //slider options from settings - options.sliderOptions = (settings) ? jQuery.extend(sliderOptions, settings.sliderOptions) : sliderOptions; - - //select element change event - selects.bind('change keyup click', function(){ - var thisIndex = jQuery(this).get(0).selectedIndex; - var thisHandle = jQuery('#handle_'+ jQuery(this).attr('id')); - var handleIndex = thisHandle.data('handleNum'); - thisHandle.parents('.ui-slider:eq(0)').slider("values", handleIndex, thisIndex); - }); - - - //create slider component div - var sliderComponent = jQuery('
'); - - //CREATE HANDLES - selects.each(function(i){ - var hidett = ''; - - //associate label for ARIA - var thisLabel = jQuery('label[for=' + jQuery(this).attr('id') +']'); - //labelled by aria doesn't seem to work on slider handle. Using title attr as backup - var labelText = (thisLabel.size()>0) ? 'Slider control for '+ thisLabel.text()+'' : ''; - var thisLabelId = thisLabel.attr('id') || thisLabel.attr('id', 'label_'+handleIds[i]).attr('id'); - - - if( options.tooltip == false ){hidett = ' style="display: none;"';} - jQuery(''+labelText+''+ - ''+ - ''+ - '') - .data('handleNum',i) - .appendTo(sliderComponent); - }); - - //CREATE SCALE AND TICS - - //write dl if there are optgroups - if(groups) { - var inc = 0; - var scale = sliderComponent.append('').find('.ui-slider-scale:eq(0)'); - jQuery(groups).each(function(h){ - scale.append('
'+this.label+'
');//class name becomes camelCased label - var groupOpts = this.options; - jQuery(this.options).each(function(i){ - var style = (inc == selectOptions.length-1 || inc == 0) ? 'style="display: none;"' : '' ; - var labelText = (options.labelSrc == 'text') ? groupOpts[i].text : groupOpts[i].value; - scale.append('
'+ labelText +'
'); - inc++; - }); - }); - } - //write ol - else { - var scale = sliderComponent.append('').find('.ui-slider-scale:eq(0)'); - jQuery(selectOptions).each(function(i){ - var style = (i == selectOptions.length-1 || i == 0) ? 'style="display: none;"' : '' ; - var labelText = (options.labelSrc == 'text') ? this.text : this.value; - scale.append('
  • '+ labelText +'
  • '); - }); - } - - function leftVal(i){ - return (i/(selectOptions.length-1) * 100).toFixed(2) +'%'; - - } - - - - - //show and hide labels depending on labels pref - //show the last one if there are more than 1 specified - if(options.labels > 1) sliderComponent.find('.ui-slider-scale li:last span.ui-slider-label, .ui-slider-scale dd:last span.ui-slider-label').addClass('ui-slider-label-show'); - - //set increment - var increm = Math.max(1, Math.round(selectOptions.length / options.labels)); - //show em based on inc - for(var j=0; j increm){//don't show if it's too close to the end label - sliderComponent.find('.ui-slider-scale li:eq('+ j +') span.ui-slider-label, .ui-slider-scale dd:eq('+ j +') span.ui-slider-label').addClass('ui-slider-label-show'); - } - } - - //style the dt's - sliderComponent.find('.ui-slider-scale dt').each(function(i){ - jQuery(this).css({ - 'left': ((100 /( groups.length))*i).toFixed(2) + '%' - }); - }); - - - //inject and return - sliderComponent - .insertAfter(jQuery(this).eq(this.length-1)) - .slider(options.sliderOptions) - .attr('role','application') - .find('.ui-slider-label') - .each(function(){ - jQuery(this).css('marginLeft', -jQuery(this).width()/2); - }); - - //update tooltip arrow inner color - sliderComponent.find('.ui-tooltip-pointer-down-inner').each(function(){ - var bWidth = jQuery('.ui-tooltip-pointer-down-inner').css('borderTopWidth'); - var bColor = jQuery(this).parents('.ui-slider-tooltip').css('backgroundColor') - jQuery(this).css('border-top', bWidth+' solid '+bColor); - }); - - var values = sliderComponent.slider('values'); - - if(isArray(values)){ - jQuery(values).each(function(i){ - sliderComponent.find('.ui-slider-tooltip .ttContent').eq(i).text( ttText(this) ); - }); - } - else { - sliderComponent.find('.ui-slider-tooltip .ttContent').eq(0).text( ttText(values) ); - } - - return this; -} - - diff --git a/app/assets/javascripts/desktop/selectmenu.js b/app/assets/javascripts/desktop/selectmenu.js deleted file mode 100644 index b2eb9423..00000000 --- a/app/assets/javascripts/desktop/selectmenu.js +++ /dev/null @@ -1,9 +0,0 @@ - $(function() { - $( "select" ).each(function(){ - $(this).selectmenu({ - position: {my:"left+10 top", - at:"left top+30"}}) - .selectmenu( "menuWidget" ) - .addClass( "select_overflow" ); - }); - }); diff --git a/app/assets/javascripts/desktop/suncalc.js b/app/assets/javascripts/desktop/suncalc.js deleted file mode 100644 index 7216208f..00000000 --- a/app/assets/javascripts/desktop/suncalc.js +++ /dev/null @@ -1,195 +0,0 @@ -SunCalc = (function() { - var J1970 = 2440588, - J2000 = 2451545, - deg2rad = Math.PI / 180, - M0 = 357.5291 * deg2rad, - M1 = 0.98560028 * deg2rad, - J0 = 0.0009, - J1 = 0.0053, - J2 = -0.0069, - C1 = 1.9148 * deg2rad, - C2 = 0.0200 * deg2rad, - C3 = 0.0003 * deg2rad, - P = 102.9372 * deg2rad, - e = 23.45 * deg2rad, - th0 = 280.1600 * deg2rad, - th1 = 360.9856235 * deg2rad, - h0 = -0.83 * deg2rad, //sunset angle - d0 = 0.53 * deg2rad, //sun diameter - h1 = -6 * deg2rad, //nautical twilight angle - h2 = -12 * deg2rad, //astronomical twilight angle - h3 = -18 * deg2rad //darkness angle - msInDay = 1000 * 60 * 60 * 24; - - function dateToJulianDate( date ) { - return date.valueOf() / msInDay - 0.5 + J1970; - } - - function julianDateToDate( j ) { - return new Date((j + 0.5 - J1970) * msInDay); - } - - function getJulianCycle( J, lw ) { - return Math.round(J - J2000 - J0 - lw/(2 * Math.PI)); - } - - function getApproxSolarTransit( Ht, lw, n ) { - return J2000 + J0 + (Ht + lw)/(2 * Math.PI) + n; - } - - function getSolarMeanAnomaly( Js ) { - return M0 + M1 * (Js - J2000); - } - - function getEquationOfCenter( M ) { - return C1 * Math.sin(M) + C2 * Math.sin(2 * M) + C3 * Math.sin(3 * M); - } - - function getEclipticLongitude( M, C ) { - return M + P + C + Math.PI; - } - - function getSolarTransit( Js, M, Lsun ) { - return Js + (J1 * Math.sin(M)) + (J2 * Math.sin(2 * Lsun)); - } - - function getSunDeclination( Lsun ) { - return Math.asin(Math.sin(Lsun) * Math.sin(e)); - } - - function getRightAscension( Lsun ) { - return Math.atan2(Math.sin(Lsun) * Math.cos(e), Math.cos(Lsun)); - } - - function getSiderealTime( J, lw ) { - return th0 + th1 * (J - J2000) - lw; - } - - function getAzimuth( th, a, phi, d ) { - var H = th - a; - return Math.atan2(Math.sin(H), Math.cos(H) * Math.sin(phi) - - Math.tan(d) * Math.cos(phi)); - } - - function getAltitude( th, a, phi, d ) { - var H = th - a; - return Math.asin(Math.sin(phi) * Math.sin(d) + - Math.cos(phi) * Math.cos(d) * Math.cos(H)); - } - - function getHourAngle( h, phi, d ) { - return Math.acos((Math.sin(h) - Math.sin(phi) * Math.sin(d)) / - (Math.cos(phi) * Math.cos(d))); - } - - function getSunsetJulianDate( w0, M, Lsun, lw, n ) { - return getSolarTransit(getApproxSolarTransit(w0, lw, n), M, Lsun); - } - - function getSunriseJulianDate( Jtransit, Jset ) { - return Jtransit - (Jset - Jtransit); - } - - function getSunPosition( J, lw, phi ) { - var M = getSolarMeanAnomaly(J), - C = getEquationOfCenter(M), - Lsun = getEclipticLongitude(M, C), - d = getSunDeclination(Lsun), - a = getRightAscension(Lsun), - th = getSiderealTime(J, lw); - - return { - azimuth: getAzimuth( th, a, phi, d ), - altitude: getAltitude( th, a, phi, d ) - }; - } - - return { - getDayInfo: function( date, lat, lng, detailed ) { - var lw = -lng * deg2rad, - phi = lat * deg2rad, - J = dateToJulianDate(date); - - var n = getJulianCycle(J, lw), - Js = getApproxSolarTransit(0, lw, n), - M = getSolarMeanAnomaly(Js), - C = getEquationOfCenter(M), - Lsun = getEclipticLongitude(M, C), - d = getSunDeclination(Lsun), - Jtransit = getSolarTransit(Js, M, Lsun), - w0 = getHourAngle(h0, phi, d), - w1 = getHourAngle(h0 + d0, phi, d), - Jset = getSunsetJulianDate(w0, M, Lsun, lw, n), - Jsetstart = getSunsetJulianDate(w1, M, Lsun, lw, n), - Jrise = getSunriseJulianDate(Jtransit, Jset), - Jriseend = getSunriseJulianDate(Jtransit, Jsetstart), - w2 = getHourAngle(h1, phi, d), - Jnau = getSunsetJulianDate(w2, M, Lsun, lw, n), - Jciv2 = getSunriseJulianDate(Jtransit, Jnau); - - var info = { - dawn: julianDateToDate(Jciv2), - sunrise: { - start: julianDateToDate(Jrise), - end: julianDateToDate(Jriseend) - }, - transit: julianDateToDate(Jtransit), - sunset: { - start: julianDateToDate(Jsetstart), - end: julianDateToDate(Jset) - }, - dusk: julianDateToDate(Jnau) - }; - - if (detailed) { - var w3 = getHourAngle(h2, phi, d), - w4 = getHourAngle(h3, phi, d), - Jastro = getSunsetJulianDate(w3, M, Lsun, lw, n), - Jdark = getSunsetJulianDate(w4, M, Lsun, lw, n), - Jnau2 = getSunriseJulianDate(Jtransit, Jastro), - Jastro2 = getSunriseJulianDate(Jtransit, Jdark); - - info.morningTwilight = { - astronomical: { - start: julianDateToDate(Jastro2), - end: julianDateToDate(Jnau2) - }, - nautical: { - start: julianDateToDate(Jnau2), - end: julianDateToDate(Jciv2) - }, - civil: { - start: julianDateToDate(Jciv2), - end: julianDateToDate(Jrise) - } - }; - info.nightTwilight = { - civil: { - start: julianDateToDate(Jset), - end: julianDateToDate(Jnau) - }, - nautical: { - start: julianDateToDate(Jnau), - end: julianDateToDate(Jastro) - }, - astronomical: { - start: julianDateToDate(Jastro), - end: julianDateToDate(Jdark) - } - }; - } - - return info; - }, - - getSunPosition: function( date, lat, lng ) { - return getSunPosition( dateToJulianDate(date), -lng * deg2rad, lat * deg2rad ); - } - }; -})(); - -/* -var di = SunCalc.getDayInfo(data, lat, lng); -var sunrisePos = SunCalc.getSunPosition(di.sunrise.start, lat, lng); -var sunsetPos = SunCalc.getSunPosition(di.sunset.end, lat, lng); -*/ \ No newline at end of file diff --git a/app/assets/javascripts/desktop/timetableaps.js b/app/assets/javascripts/desktop/timetableaps.js deleted file mode 100644 index c305067b..00000000 --- a/app/assets/javascripts/desktop/timetableaps.js +++ /dev/null @@ -1,51 +0,0 @@ -$(function (){ - $('#timetableap_DateOfStartNav').datepicker({ - changeYear: true, - dateFormat: "yy-mm-dd", - changeMonth: true, - minDate: "-15y", - maxDate: "+2y", - closeText: "Закрыть", - showWeek: true, - duration: 300 - }); - $('#timetableap_DateOfEndNav').datepicker({ - changeYear: true, - dateFormat: "yy-mm-dd", - changeMonth: true, - minDate: "-15y", - maxDate: "+2y", - closeText: "Закрыть", - showWeek: true, - defaultDate: +365, - duration: 300 - }); -// $("#timetableaps th a, #timetableaps .pagination a").on("click", '', function() { -// $.getScript(this.href); -// return false; -// }); -// $("#timetableaps_search input").keyup(function() { -// $.get($("#timetableaps_search").attr("action"), -// $("#timetableaps_search").serialize(), null, "script"); -// return false; -// }); -}); - - -//$(document).ready(function () { -// $("#new_timetableap").validate({ -// focusInvalid: false, -// focusCleanup: true, -// rules: { -// "timetableap[Flight_Number]": {required: true, maxlength: 4, number: true}, -// "timetableap[DateOfStartNav]": {required: true, maxlength: 10}, -// "timetableap[DateOfEndNav]": {required: true, maxlength: 10 } -// }, -// messages: { -// "timetableap[Flight_Number]": "Введите номер рейса", -// "timetableap[DateOfStartNav]": "Введите дату начала навигации", -// "timetableap[DateOfEndNav]": "Введите дату конца навигации" -// } -// }); -// }); - diff --git a/app/assets/javascripts/mobile/aircompanies.js b/app/assets/javascripts/mobile/aircompanies.js deleted file mode 100644 index 85d6e95b..00000000 --- a/app/assets/javascripts/mobile/aircompanies.js +++ /dev/null @@ -1,12 +0,0 @@ -$(function() { - $("#aircompanies th a, #aircompanies .pagination a").on("click", '', function() { - $.getScript(this.href); - return false; - }); - $("#aircompanies_search input").keyup(function() { - $.get($("#aircompanies_search").attr("action"), - $("#aircompanies_search").serialize(), null, "script"); - return false; - }); -}); - diff --git a/app/assets/javascripts/mobile/airports.js b/app/assets/javascripts/mobile/airports.js deleted file mode 100644 index 96419d2c..00000000 --- a/app/assets/javascripts/mobile/airports.js +++ /dev/null @@ -1,34 +0,0 @@ -$(function() { -// $("#airports th a, #airports .pagination a").on("click", '', //function() { -// $.getScript(this.href); -// return false; -// }); - $("#airports_search input").keyup(function() { - $.get($("#airports_search").attr("action"), - $("#airports_search").serialize(), null, "script"); - return false; - }); -// $("#timetableaps_search input").keyup(function() { -// $.get($("#timetableaps_search").attr("action"), -// $("#timetableaps_search").serialize(), null, "script"); -// return false; -// }); -}); -$(function (){ - $('#article_published_on').datepicker(); -}); -$(document).ready(function () { - $("#ap_dist").validate({ - focusInvalid: false, - focusCleanup: true, - rules: { - "start": {required: true, minlength: 3}, - "end": {required: true, minlength: 3}, - }, - messages: { - "start": "Введите аэропорт отправления", - "end": "Введите аэропорт назначения", - } - }); - }); - diff --git a/app/assets/javascripts/mobile/application.js b/app/assets/javascripts/mobile/application.js index 2c445d16..ed673896 100644 --- a/app/assets/javascripts/mobile/application.js +++ b/app/assets/javascripts/mobile/application.js @@ -11,21 +11,11 @@ // GO AFTER THE REQUIRES BELOW. // //= require jquery +//= require jquery-ui //= require jquery_ujs -//= require mousetrap //= require jquery-tablesorter //= require jquery.validate //= require jquery.validate.additional-methods -//= require jquery.form -//= require jquery-ui/core -//= require jquery-ui/widget -//= require jquery-ui/mouse -//= require jquery-ui/position -//= require jquery-ui/sortable -//= require jquery-ui/accordion -//= require jquery-ui/autocomplete -//= require jquery-ui/datepicker -//= require jquery-ui/datepicker-ru -//= require jquery-ui/button -//= require_tree +//= require_tree . //= require_self + diff --git a/app/assets/javascripts/mobile/button.js b/app/assets/javascripts/mobile/button.js deleted file mode 100644 index e4e1de10..00000000 --- a/app/assets/javascripts/mobile/button.js +++ /dev/null @@ -1,3 +0,0 @@ -$(function() { - $( "input[type=submit], input[type=button], button" ).button(); -}); diff --git a/app/assets/javascripts/mobile/countries.js b/app/assets/javascripts/mobile/countries.js deleted file mode 100644 index b12e5706..00000000 --- a/app/assets/javascripts/mobile/countries.js +++ /dev/null @@ -1,12 +0,0 @@ -$(function() { - $("#countries th a, #countries .pagination a").on("click", '', function() { - $.getScript(this.href); - return false; - }); - $("#countries_search input").keyup(function() { - $.get($("#countries_search").attr("action"), - $("#countries_search").serialize(), null, "script"); - return false; - }); -}); - diff --git a/app/assets/javascripts/mobile/script.js b/app/assets/javascripts/mobile/script.js new file mode 100644 index 00000000..018b5aaf --- /dev/null +++ b/app/assets/javascripts/mobile/script.js @@ -0,0 +1,30 @@ +$(document).ready(function(){ + var max = $('#start_time').val(); + var min = $('#end_time').val(); + var rangeSlider = $('#slider') + .slider({ + min: 1, + max: 24, + step: 1, + values: [1, 24], + value: $("#start_time").selectedIndex + 1, + range: true, + animate: true, + slide: function(e,ui) { + $('#start_time')[0].selectedIndex = ui.value - 1; + $('#end_time')[0].selectedIndex = ui.value; + $(this) + .parent().find('#start_time option:selected').val(ui.values[0]).text(); + $(this) + .parent().find('#end_time option:selected').val(ui.values[1]).text(); + }, + stop: function(event, ui) { + // $.get("#", { start_time: $("#start_time").val(), end_time: $("#end_time").val()} ); + // alert($("#start_time").val()+" "+$("#end_time").val()); + alert("Положение бегунков: " + ui.values); + } + }) + // .before('

    Drag the slider to filter by price:

    '); + + $('#tablo_form').after(rangeSlider); +}); diff --git a/app/assets/javascripts/mobile/suncalc.js b/app/assets/javascripts/mobile/suncalc.js deleted file mode 100644 index 7216208f..00000000 --- a/app/assets/javascripts/mobile/suncalc.js +++ /dev/null @@ -1,195 +0,0 @@ -SunCalc = (function() { - var J1970 = 2440588, - J2000 = 2451545, - deg2rad = Math.PI / 180, - M0 = 357.5291 * deg2rad, - M1 = 0.98560028 * deg2rad, - J0 = 0.0009, - J1 = 0.0053, - J2 = -0.0069, - C1 = 1.9148 * deg2rad, - C2 = 0.0200 * deg2rad, - C3 = 0.0003 * deg2rad, - P = 102.9372 * deg2rad, - e = 23.45 * deg2rad, - th0 = 280.1600 * deg2rad, - th1 = 360.9856235 * deg2rad, - h0 = -0.83 * deg2rad, //sunset angle - d0 = 0.53 * deg2rad, //sun diameter - h1 = -6 * deg2rad, //nautical twilight angle - h2 = -12 * deg2rad, //astronomical twilight angle - h3 = -18 * deg2rad //darkness angle - msInDay = 1000 * 60 * 60 * 24; - - function dateToJulianDate( date ) { - return date.valueOf() / msInDay - 0.5 + J1970; - } - - function julianDateToDate( j ) { - return new Date((j + 0.5 - J1970) * msInDay); - } - - function getJulianCycle( J, lw ) { - return Math.round(J - J2000 - J0 - lw/(2 * Math.PI)); - } - - function getApproxSolarTransit( Ht, lw, n ) { - return J2000 + J0 + (Ht + lw)/(2 * Math.PI) + n; - } - - function getSolarMeanAnomaly( Js ) { - return M0 + M1 * (Js - J2000); - } - - function getEquationOfCenter( M ) { - return C1 * Math.sin(M) + C2 * Math.sin(2 * M) + C3 * Math.sin(3 * M); - } - - function getEclipticLongitude( M, C ) { - return M + P + C + Math.PI; - } - - function getSolarTransit( Js, M, Lsun ) { - return Js + (J1 * Math.sin(M)) + (J2 * Math.sin(2 * Lsun)); - } - - function getSunDeclination( Lsun ) { - return Math.asin(Math.sin(Lsun) * Math.sin(e)); - } - - function getRightAscension( Lsun ) { - return Math.atan2(Math.sin(Lsun) * Math.cos(e), Math.cos(Lsun)); - } - - function getSiderealTime( J, lw ) { - return th0 + th1 * (J - J2000) - lw; - } - - function getAzimuth( th, a, phi, d ) { - var H = th - a; - return Math.atan2(Math.sin(H), Math.cos(H) * Math.sin(phi) - - Math.tan(d) * Math.cos(phi)); - } - - function getAltitude( th, a, phi, d ) { - var H = th - a; - return Math.asin(Math.sin(phi) * Math.sin(d) + - Math.cos(phi) * Math.cos(d) * Math.cos(H)); - } - - function getHourAngle( h, phi, d ) { - return Math.acos((Math.sin(h) - Math.sin(phi) * Math.sin(d)) / - (Math.cos(phi) * Math.cos(d))); - } - - function getSunsetJulianDate( w0, M, Lsun, lw, n ) { - return getSolarTransit(getApproxSolarTransit(w0, lw, n), M, Lsun); - } - - function getSunriseJulianDate( Jtransit, Jset ) { - return Jtransit - (Jset - Jtransit); - } - - function getSunPosition( J, lw, phi ) { - var M = getSolarMeanAnomaly(J), - C = getEquationOfCenter(M), - Lsun = getEclipticLongitude(M, C), - d = getSunDeclination(Lsun), - a = getRightAscension(Lsun), - th = getSiderealTime(J, lw); - - return { - azimuth: getAzimuth( th, a, phi, d ), - altitude: getAltitude( th, a, phi, d ) - }; - } - - return { - getDayInfo: function( date, lat, lng, detailed ) { - var lw = -lng * deg2rad, - phi = lat * deg2rad, - J = dateToJulianDate(date); - - var n = getJulianCycle(J, lw), - Js = getApproxSolarTransit(0, lw, n), - M = getSolarMeanAnomaly(Js), - C = getEquationOfCenter(M), - Lsun = getEclipticLongitude(M, C), - d = getSunDeclination(Lsun), - Jtransit = getSolarTransit(Js, M, Lsun), - w0 = getHourAngle(h0, phi, d), - w1 = getHourAngle(h0 + d0, phi, d), - Jset = getSunsetJulianDate(w0, M, Lsun, lw, n), - Jsetstart = getSunsetJulianDate(w1, M, Lsun, lw, n), - Jrise = getSunriseJulianDate(Jtransit, Jset), - Jriseend = getSunriseJulianDate(Jtransit, Jsetstart), - w2 = getHourAngle(h1, phi, d), - Jnau = getSunsetJulianDate(w2, M, Lsun, lw, n), - Jciv2 = getSunriseJulianDate(Jtransit, Jnau); - - var info = { - dawn: julianDateToDate(Jciv2), - sunrise: { - start: julianDateToDate(Jrise), - end: julianDateToDate(Jriseend) - }, - transit: julianDateToDate(Jtransit), - sunset: { - start: julianDateToDate(Jsetstart), - end: julianDateToDate(Jset) - }, - dusk: julianDateToDate(Jnau) - }; - - if (detailed) { - var w3 = getHourAngle(h2, phi, d), - w4 = getHourAngle(h3, phi, d), - Jastro = getSunsetJulianDate(w3, M, Lsun, lw, n), - Jdark = getSunsetJulianDate(w4, M, Lsun, lw, n), - Jnau2 = getSunriseJulianDate(Jtransit, Jastro), - Jastro2 = getSunriseJulianDate(Jtransit, Jdark); - - info.morningTwilight = { - astronomical: { - start: julianDateToDate(Jastro2), - end: julianDateToDate(Jnau2) - }, - nautical: { - start: julianDateToDate(Jnau2), - end: julianDateToDate(Jciv2) - }, - civil: { - start: julianDateToDate(Jciv2), - end: julianDateToDate(Jrise) - } - }; - info.nightTwilight = { - civil: { - start: julianDateToDate(Jset), - end: julianDateToDate(Jnau) - }, - nautical: { - start: julianDateToDate(Jnau), - end: julianDateToDate(Jastro) - }, - astronomical: { - start: julianDateToDate(Jastro), - end: julianDateToDate(Jdark) - } - }; - } - - return info; - }, - - getSunPosition: function( date, lat, lng ) { - return getSunPosition( dateToJulianDate(date), -lng * deg2rad, lat * deg2rad ); - } - }; -})(); - -/* -var di = SunCalc.getDayInfo(data, lat, lng); -var sunrisePos = SunCalc.getSunPosition(di.sunrise.start, lat, lng); -var sunsetPos = SunCalc.getSunPosition(di.sunset.end, lat, lng); -*/ \ No newline at end of file diff --git a/app/assets/javascripts/mobile/switchery.js b/app/assets/javascripts/mobile/switchery.js deleted file mode 100644 index d1763e31..00000000 --- a/app/assets/javascripts/mobile/switchery.js +++ /dev/null @@ -1,1955 +0,0 @@ - -;(function(){ - -/** - * Require the module at `name`. - * - * @param {String} name - * @return {Object} exports - * @api public - */ - -function require(name) { - var module = require.modules[name]; - if (!module) throw new Error('failed to require "' + name + '"'); - - if (!('exports' in module) && typeof module.definition === 'function') { - module.client = module.component = true; - module.definition.call(this, module.exports = {}, module); - delete module.definition; - } - - return module.exports; -} - -/** - * Meta info, accessible in the global scope unless you use AMD option. - */ - -require.loader = 'component'; - -/** - * Internal helper object, contains a sorting function for semantiv versioning - */ -require.helper = {}; -require.helper.semVerSort = function(a, b) { - var aArray = a.version.split('.'); - var bArray = b.version.split('.'); - for (var i=0; i bLex ? 1 : -1; - continue; - } else if (aInt > bInt) { - return 1; - } else { - return -1; - } - } - return 0; -} - -/** - * Find and require a module which name starts with the provided name. - * If multiple modules exists, the highest semver is used. - * This function can only be used for remote dependencies. - - * @param {String} name - module name: `user~repo` - * @param {Boolean} returnPath - returns the canonical require path if true, - * otherwise it returns the epxorted module - */ -require.latest = function (name, returnPath) { - function showError(name) { - throw new Error('failed to find latest module of "' + name + '"'); - } - // only remotes with semvers, ignore local files conataining a '/' - var versionRegexp = /(.*)~(.*)@v?(\d+\.\d+\.\d+[^\/]*)$/; - var remoteRegexp = /(.*)~(.*)/; - if (!remoteRegexp.test(name)) showError(name); - var moduleNames = Object.keys(require.modules); - var semVerCandidates = []; - var otherCandidates = []; // for instance: name of the git branch - for (var i=0; i 0) { - var module = semVerCandidates.sort(require.helper.semVerSort).pop().name; - if (returnPath === true) { - return module; - } - return require(module); - } - // if the build contains more than one branch of the same module - // you should not use this funciton - var module = otherCandidates.sort(function(a, b) {return a.name > b.name})[0].name; - if (returnPath === true) { - return module; - } - return require(module); -} - -/** - * Registered modules. - */ - -require.modules = {}; - -/** - * Register module at `name` with callback `definition`. - * - * @param {String} name - * @param {Function} definition - * @api private - */ - -require.register = function (name, definition) { - require.modules[name] = { - definition: definition - }; -}; - -/** - * Define a module's exports immediately with `exports`. - * - * @param {String} name - * @param {Generic} exports - * @api private - */ - -require.define = function (name, exports) { - require.modules[name] = { - exports: exports - }; -}; -require.register("abpetkov~transitionize@0.0.3", function (exports, module) { - -/** - * Transitionize 0.0.2 - * https://github.com/abpetkov/transitionize - * - * Authored by Alexander Petkov - * https://github.com/abpetkov - * - * Copyright 2013, Alexander Petkov - * License: The MIT License (MIT) - * http://opensource.org/licenses/MIT - * - */ - -/** - * Expose `Transitionize`. - */ - -module.exports = Transitionize; - -/** - * Initialize new Transitionize. - * - * @param {Object} element - * @param {Object} props - * @api public - */ - -function Transitionize(element, props) { - if (!(this instanceof Transitionize)) return new Transitionize(element, props); - - this.element = element; - this.props = props || {}; - this.init(); -} - -/** - * Detect if Safari. - * - * @returns {Boolean} - * @api private - */ - -Transitionize.prototype.isSafari = function() { - return (/Safari/).test(navigator.userAgent) && (/Apple Computer/).test(navigator.vendor); -}; - -/** - * Loop though the object and push the keys and values in an array. - * Apply the CSS3 transition to the element and prefix with -webkit- for Safari. - * - * @api private - */ - -Transitionize.prototype.init = function() { - var transitions = []; - - for (var key in this.props) { - transitions.push(key + ' ' + this.props[key]); - } - - this.element.style.transition = transitions.join(', '); - if (this.isSafari()) this.element.style.webkitTransition = transitions.join(', '); -}; -}); - -require.register("ftlabs~fastclick@v0.6.11", function (exports, module) { -/** - * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. - * - * @version 0.6.11 - * @codingstandard ftlabs-jsv2 - * @copyright The Financial Times Limited [All Rights Reserved] - * @license MIT License (see LICENSE.txt) - */ - -/*jslint browser:true, node:true*/ -/*global define, Event, Node*/ - - -/** - * Instantiate fast-clicking listeners on the specificed layer. - * - * @constructor - * @param {Element} layer The layer to listen on - */ -function FastClick(layer) { - 'use strict'; - var oldOnClick, self = this; - - - /** - * Whether a click is currently being tracked. - * - * @type boolean - */ - this.trackingClick = false; - - - /** - * Timestamp for when when click tracking started. - * - * @type number - */ - this.trackingClickStart = 0; - - - /** - * The element being tracked for a click. - * - * @type EventTarget - */ - this.targetElement = null; - - - /** - * X-coordinate of touch start event. - * - * @type number - */ - this.touchStartX = 0; - - - /** - * Y-coordinate of touch start event. - * - * @type number - */ - this.touchStartY = 0; - - - /** - * ID of the last touch, retrieved from Touch.identifier. - * - * @type number - */ - this.lastTouchIdentifier = 0; - - - /** - * Touchmove boundary, beyond which a click will be cancelled. - * - * @type number - */ - this.touchBoundary = 10; - - - /** - * The FastClick layer. - * - * @type Element - */ - this.layer = layer; - - if (!layer || !layer.nodeType) { - throw new TypeError('Layer must be a document node'); - } - - /** @type function() */ - this.onClick = function() { return FastClick.prototype.onClick.apply(self, arguments); }; - - /** @type function() */ - this.onMouse = function() { return FastClick.prototype.onMouse.apply(self, arguments); }; - - /** @type function() */ - this.onTouchStart = function() { return FastClick.prototype.onTouchStart.apply(self, arguments); }; - - /** @type function() */ - this.onTouchMove = function() { return FastClick.prototype.onTouchMove.apply(self, arguments); }; - - /** @type function() */ - this.onTouchEnd = function() { return FastClick.prototype.onTouchEnd.apply(self, arguments); }; - - /** @type function() */ - this.onTouchCancel = function() { return FastClick.prototype.onTouchCancel.apply(self, arguments); }; - - if (FastClick.notNeeded(layer)) { - return; - } - - // Set up event handlers as required - if (this.deviceIsAndroid) { - layer.addEventListener('mouseover', this.onMouse, true); - layer.addEventListener('mousedown', this.onMouse, true); - layer.addEventListener('mouseup', this.onMouse, true); - } - - layer.addEventListener('click', this.onClick, true); - layer.addEventListener('touchstart', this.onTouchStart, false); - layer.addEventListener('touchmove', this.onTouchMove, false); - layer.addEventListener('touchend', this.onTouchEnd, false); - layer.addEventListener('touchcancel', this.onTouchCancel, false); - - // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) - // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick - // layer when they are cancelled. - if (!Event.prototype.stopImmediatePropagation) { - layer.removeEventListener = function(type, callback, capture) { - var rmv = Node.prototype.removeEventListener; - if (type === 'click') { - rmv.call(layer, type, callback.hijacked || callback, capture); - } else { - rmv.call(layer, type, callback, capture); - } - }; - - layer.addEventListener = function(type, callback, capture) { - var adv = Node.prototype.addEventListener; - if (type === 'click') { - adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) { - if (!event.propagationStopped) { - callback(event); - } - }), capture); - } else { - adv.call(layer, type, callback, capture); - } - }; - } - - // If a handler is already declared in the element's onclick attribute, it will be fired before - // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and - // adding it as listener. - if (typeof layer.onclick === 'function') { - - // Android browser on at least 3.2 requires a new reference to the function in layer.onclick - // - the old one won't work if passed to addEventListener directly. - oldOnClick = layer.onclick; - layer.addEventListener('click', function(event) { - oldOnClick(event); - }, false); - layer.onclick = null; - } -} - - -/** - * Android requires exceptions. - * - * @type boolean - */ -FastClick.prototype.deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0; - - -/** - * iOS requires exceptions. - * - * @type boolean - */ -FastClick.prototype.deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent); - - -/** - * iOS 4 requires an exception for select elements. - * - * @type boolean - */ -FastClick.prototype.deviceIsIOS4 = FastClick.prototype.deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent); - - -/** - * iOS 6.0(+?) requires the target element to be manually derived - * - * @type boolean - */ -FastClick.prototype.deviceIsIOSWithBadTarget = FastClick.prototype.deviceIsIOS && (/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent); - - -/** - * Determine whether a given element requires a native click. - * - * @param {EventTarget|Element} target Target DOM element - * @returns {boolean} Returns true if the element needs a native click - */ -FastClick.prototype.needsClick = function(target) { - 'use strict'; - switch (target.nodeName.toLowerCase()) { - - // Don't send a synthetic click to disabled inputs (issue #62) - case 'button': - case 'select': - case 'textarea': - if (target.disabled) { - return true; - } - - break; - case 'input': - - // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) - if ((this.deviceIsIOS && target.type === 'file') || target.disabled) { - return true; - } - - break; - case 'label': - case 'video': - return true; - } - - return (/\bneedsclick\b/).test(target.className); -}; - - -/** - * Determine whether a given element requires a call to focus to simulate click into element. - * - * @param {EventTarget|Element} target Target DOM element - * @returns {boolean} Returns true if the element requires a call to focus to simulate native click. - */ -FastClick.prototype.needsFocus = function(target) { - 'use strict'; - switch (target.nodeName.toLowerCase()) { - case 'textarea': - return true; - case 'select': - return !this.deviceIsAndroid; - case 'input': - switch (target.type) { - case 'button': - case 'checkbox': - case 'file': - case 'image': - case 'radio': - case 'submit': - return false; - } - - // No point in attempting to focus disabled inputs - return !target.disabled && !target.readOnly; - default: - return (/\bneedsfocus\b/).test(target.className); - } -}; - - -/** - * Send a click event to the specified element. - * - * @param {EventTarget|Element} targetElement - * @param {Event} event - */ -FastClick.prototype.sendClick = function(targetElement, event) { - 'use strict'; - var clickEvent, touch; - - // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) - if (document.activeElement && document.activeElement !== targetElement) { - document.activeElement.blur(); - } - - touch = event.changedTouches[0]; - - // Synthesise a click event, with an extra attribute so it can be tracked - clickEvent = document.createEvent('MouseEvents'); - clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); - clickEvent.forwardedTouchEvent = true; - targetElement.dispatchEvent(clickEvent); -}; - -FastClick.prototype.determineEventType = function(targetElement) { - 'use strict'; - - //Issue #159: Android Chrome Select Box does not open with a synthetic click event - if (this.deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') { - return 'mousedown'; - } - - return 'click'; -}; - - -/** - * @param {EventTarget|Element} targetElement - */ -FastClick.prototype.focus = function(targetElement) { - 'use strict'; - var length; - - // Issue #160: on iOS 7, some input elements (e.g. date datetime) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724. - if (this.deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time') { - length = targetElement.value.length; - targetElement.setSelectionRange(length, length); - } else { - targetElement.focus(); - } -}; - - -/** - * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. - * - * @param {EventTarget|Element} targetElement - */ -FastClick.prototype.updateScrollParent = function(targetElement) { - 'use strict'; - var scrollParent, parentElement; - - scrollParent = targetElement.fastClickScrollParent; - - // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the - // target element was moved to another parent. - if (!scrollParent || !scrollParent.contains(targetElement)) { - parentElement = targetElement; - do { - if (parentElement.scrollHeight > parentElement.offsetHeight) { - scrollParent = parentElement; - targetElement.fastClickScrollParent = parentElement; - break; - } - - parentElement = parentElement.parentElement; - } while (parentElement); - } - - // Always update the scroll top tracker if possible. - if (scrollParent) { - scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; - } -}; - - -/** - * @param {EventTarget} targetElement - * @returns {Element|EventTarget} - */ -FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) { - 'use strict'; - - // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. - if (eventTarget.nodeType === Node.TEXT_NODE) { - return eventTarget.parentNode; - } - - return eventTarget; -}; - - -/** - * On touch start, record the position and scroll offset. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onTouchStart = function(event) { - 'use strict'; - var targetElement, touch, selection; - - // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). - if (event.targetTouches.length > 1) { - return true; - } - - targetElement = this.getTargetElementFromEventTarget(event.target); - touch = event.targetTouches[0]; - - if (this.deviceIsIOS) { - - // Only trusted events will deselect text on iOS (issue #49) - selection = window.getSelection(); - if (selection.rangeCount && !selection.isCollapsed) { - return true; - } - - if (!this.deviceIsIOS4) { - - // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): - // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched - // with the same identifier as the touch event that previously triggered the click that triggered the alert. - // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an - // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform. - if (touch.identifier === this.lastTouchIdentifier) { - event.preventDefault(); - return false; - } - - this.lastTouchIdentifier = touch.identifier; - - // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: - // 1) the user does a fling scroll on the scrollable layer - // 2) the user stops the fling scroll with another tap - // then the event.target of the last 'touchend' event will be the element that was under the user's finger - // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check - // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). - this.updateScrollParent(targetElement); - } - } - - this.trackingClick = true; - this.trackingClickStart = event.timeStamp; - this.targetElement = targetElement; - - this.touchStartX = touch.pageX; - this.touchStartY = touch.pageY; - - // Prevent phantom clicks on fast double-tap (issue #36) - if ((event.timeStamp - this.lastClickTime) < 200) { - event.preventDefault(); - } - - return true; -}; - - -/** - * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.touchHasMoved = function(event) { - 'use strict'; - var touch = event.changedTouches[0], boundary = this.touchBoundary; - - if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { - return true; - } - - return false; -}; - - -/** - * Update the last position. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onTouchMove = function(event) { - 'use strict'; - if (!this.trackingClick) { - return true; - } - - // If the touch has moved, cancel the click tracking - if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { - this.trackingClick = false; - this.targetElement = null; - } - - return true; -}; - - -/** - * Attempt to find the labelled control for the given label element. - * - * @param {EventTarget|HTMLLabelElement} labelElement - * @returns {Element|null} - */ -FastClick.prototype.findControl = function(labelElement) { - 'use strict'; - - // Fast path for newer browsers supporting the HTML5 control attribute - if (labelElement.control !== undefined) { - return labelElement.control; - } - - // All browsers under test that support touch events also support the HTML5 htmlFor attribute - if (labelElement.htmlFor) { - return document.getElementById(labelElement.htmlFor); - } - - // If no for attribute exists, attempt to retrieve the first labellable descendant element - // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label - return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); -}; - - -/** - * On touch end, determine whether to send a click event at once. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onTouchEnd = function(event) { - 'use strict'; - var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement; - - if (!this.trackingClick) { - return true; - } - - // Prevent phantom clicks on fast double-tap (issue #36) - if ((event.timeStamp - this.lastClickTime) < 200) { - this.cancelNextClick = true; - return true; - } - - // Reset to prevent wrong click cancel on input (issue #156). - this.cancelNextClick = false; - - this.lastClickTime = event.timeStamp; - - trackingClickStart = this.trackingClickStart; - this.trackingClick = false; - this.trackingClickStart = 0; - - // On some iOS devices, the targetElement supplied with the event is invalid if the layer - // is performing a transition or scroll, and has to be re-detected manually. Note that - // for this to function correctly, it must be called *after* the event target is checked! - // See issue #57; also filed as rdar://13048589 . - if (this.deviceIsIOSWithBadTarget) { - touch = event.changedTouches[0]; - - // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null - targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; - targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; - } - - targetTagName = targetElement.tagName.toLowerCase(); - if (targetTagName === 'label') { - forElement = this.findControl(targetElement); - if (forElement) { - this.focus(targetElement); - if (this.deviceIsAndroid) { - return false; - } - - targetElement = forElement; - } - } else if (this.needsFocus(targetElement)) { - - // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. - // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). - if ((event.timeStamp - trackingClickStart) > 100 || (this.deviceIsIOS && window.top !== window && targetTagName === 'input')) { - this.targetElement = null; - return false; - } - - this.focus(targetElement); - - // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. - if (!this.deviceIsIOS4 || targetTagName !== 'select') { - this.targetElement = null; - event.preventDefault(); - } - - return false; - } - - if (this.deviceIsIOS && !this.deviceIsIOS4) { - - // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled - // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). - scrollParent = targetElement.fastClickScrollParent; - if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) { - return true; - } - } - - // Prevent the actual click from going though - unless the target node is marked as requiring - // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. - if (!this.needsClick(targetElement)) { - event.preventDefault(); - this.sendClick(targetElement, event); - } - - return false; -}; - - -/** - * On touch cancel, stop tracking the click. - * - * @returns {void} - */ -FastClick.prototype.onTouchCancel = function() { - 'use strict'; - this.trackingClick = false; - this.targetElement = null; -}; - - -/** - * Determine mouse events which should be permitted. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onMouse = function(event) { - 'use strict'; - - // If a target element was never set (because a touch event was never fired) allow the event - if (!this.targetElement) { - return true; - } - - if (event.forwardedTouchEvent) { - return true; - } - - // Programmatically generated events targeting a specific element should be permitted - if (!event.cancelable) { - return true; - } - - // Derive and check the target element to see whether the mouse event needs to be permitted; - // unless explicitly enabled, prevent non-touch click events from triggering actions, - // to prevent ghost/doubleclicks. - if (!this.needsClick(this.targetElement) || this.cancelNextClick) { - - // Prevent any user-added listeners declared on FastClick element from being fired. - if (event.stopImmediatePropagation) { - event.stopImmediatePropagation(); - } else { - - // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) - event.propagationStopped = true; - } - - // Cancel the event - event.stopPropagation(); - event.preventDefault(); - - return false; - } - - // If the mouse event is permitted, return true for the action to go through. - return true; -}; - - -/** - * On actual clicks, determine whether this is a touch-generated click, a click action occurring - * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or - * an actual click which should be permitted. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onClick = function(event) { - 'use strict'; - var permitted; - - // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. - if (this.trackingClick) { - this.targetElement = null; - this.trackingClick = false; - return true; - } - - // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. - if (event.target.type === 'submit' && event.detail === 0) { - return true; - } - - permitted = this.onMouse(event); - - // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. - if (!permitted) { - this.targetElement = null; - } - - // If clicks are permitted, return true for the action to go through. - return permitted; -}; - - -/** - * Remove all FastClick's event listeners. - * - * @returns {void} - */ -FastClick.prototype.destroy = function() { - 'use strict'; - var layer = this.layer; - - if (this.deviceIsAndroid) { - layer.removeEventListener('mouseover', this.onMouse, true); - layer.removeEventListener('mousedown', this.onMouse, true); - layer.removeEventListener('mouseup', this.onMouse, true); - } - - layer.removeEventListener('click', this.onClick, true); - layer.removeEventListener('touchstart', this.onTouchStart, false); - layer.removeEventListener('touchmove', this.onTouchMove, false); - layer.removeEventListener('touchend', this.onTouchEnd, false); - layer.removeEventListener('touchcancel', this.onTouchCancel, false); -}; - - -/** - * Check whether FastClick is needed. - * - * @param {Element} layer The layer to listen on - */ -FastClick.notNeeded = function(layer) { - 'use strict'; - var metaViewport; - var chromeVersion; - - // Devices that don't support touch don't need FastClick - if (typeof window.ontouchstart === 'undefined') { - return true; - } - - // Chrome version - zero for other browsers - chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1]; - - if (chromeVersion) { - - if (FastClick.prototype.deviceIsAndroid) { - metaViewport = document.querySelector('meta[name=viewport]'); - - if (metaViewport) { - // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) - if (metaViewport.content.indexOf('user-scalable=no') !== -1) { - return true; - } - // Chrome 32 and above with width=device-width or less don't need FastClick - if (chromeVersion > 31 && window.innerWidth <= window.screen.width) { - return true; - } - } - - // Chrome desktop doesn't need FastClick (issue #15) - } else { - return true; - } - } - - // IE10 with -ms-touch-action: none, which disables double-tap-to-zoom (issue #97) - if (layer.style.msTouchAction === 'none') { - return true; - } - - return false; -}; - - -/** - * Factory method for creating a FastClick object - * - * @param {Element} layer The layer to listen on - */ -FastClick.attach = function(layer) { - 'use strict'; - return new FastClick(layer); -}; - - -if (typeof define !== 'undefined' && define.amd) { - - // AMD. Register as an anonymous module. - define(function() { - 'use strict'; - return FastClick; - }); -} else if (typeof module !== 'undefined' && module.exports) { - module.exports = FastClick.attach; - module.exports.FastClick = FastClick; -} else { - window.FastClick = FastClick; -} - -}); - -require.register("component~indexof@0.0.3", function (exports, module) { -module.exports = function(arr, obj){ - if (arr.indexOf) return arr.indexOf(obj); - for (var i = 0; i < arr.length; ++i) { - if (arr[i] === obj) return i; - } - return -1; -}; -}); - -require.register("component~classes@1.2.1", function (exports, module) { -/** - * Module dependencies. - */ - -var index = require('component~indexof@0.0.3'); - -/** - * Whitespace regexp. - */ - -var re = /\s+/; - -/** - * toString reference. - */ - -var toString = Object.prototype.toString; - -/** - * Wrap `el` in a `ClassList`. - * - * @param {Element} el - * @return {ClassList} - * @api public - */ - -module.exports = function(el){ - return new ClassList(el); -}; - -/** - * Initialize a new ClassList for `el`. - * - * @param {Element} el - * @api private - */ - -function ClassList(el) { - if (!el) throw new Error('A DOM element reference is required'); - this.el = el; - this.list = el.classList; -} - -/** - * Add class `name` if not already present. - * - * @param {String} name - * @return {ClassList} - * @api public - */ - -ClassList.prototype.add = function(name){ - // classList - if (this.list) { - this.list.add(name); - return this; - } - - // fallback - var arr = this.array(); - var i = index(arr, name); - if (!~i) arr.push(name); - this.el.className = arr.join(' '); - return this; -}; - -/** - * Remove class `name` when present, or - * pass a regular expression to remove - * any which match. - * - * @param {String|RegExp} name - * @return {ClassList} - * @api public - */ - -ClassList.prototype.remove = function(name){ - if ('[object RegExp]' == toString.call(name)) { - return this.removeMatching(name); - } - - // classList - if (this.list) { - this.list.remove(name); - return this; - } - - // fallback - var arr = this.array(); - var i = index(arr, name); - if (~i) arr.splice(i, 1); - this.el.className = arr.join(' '); - return this; -}; - -/** - * Remove all classes matching `re`. - * - * @param {RegExp} re - * @return {ClassList} - * @api private - */ - -ClassList.prototype.removeMatching = function(re){ - var arr = this.array(); - for (var i = 0; i < arr.length; i++) { - if (re.test(arr[i])) { - this.remove(arr[i]); - } - } - return this; -}; - -/** - * Toggle class `name`, can force state via `force`. - * - * For browsers that support classList, but do not support `force` yet, - * the mistake will be detected and corrected. - * - * @param {String} name - * @param {Boolean} force - * @return {ClassList} - * @api public - */ - -ClassList.prototype.toggle = function(name, force){ - // classList - if (this.list) { - if ("undefined" !== typeof force) { - if (force !== this.list.toggle(name, force)) { - this.list.toggle(name); // toggle again to correct - } - } else { - this.list.toggle(name); - } - return this; - } - - // fallback - if ("undefined" !== typeof force) { - if (!force) { - this.remove(name); - } else { - this.add(name); - } - } else { - if (this.has(name)) { - this.remove(name); - } else { - this.add(name); - } - } - - return this; -}; - -/** - * Return an array of classes. - * - * @return {Array} - * @api public - */ - -ClassList.prototype.array = function(){ - var str = this.el.className.replace(/^\s+|\s+$/g, ''); - var arr = str.split(re); - if ('' === arr[0]) arr.shift(); - return arr; -}; - -/** - * Check if class `name` is present. - * - * @param {String} name - * @return {ClassList} - * @api public - */ - -ClassList.prototype.has = -ClassList.prototype.contains = function(name){ - return this.list - ? this.list.contains(name) - : !! ~index(this.array(), name); -}; - -}); - -require.register("component~event@0.1.4", function (exports, module) { -var bind = window.addEventListener ? 'addEventListener' : 'attachEvent', - unbind = window.removeEventListener ? 'removeEventListener' : 'detachEvent', - prefix = bind !== 'addEventListener' ? 'on' : ''; - -/** - * Bind `el` event `type` to `fn`. - * - * @param {Element} el - * @param {String} type - * @param {Function} fn - * @param {Boolean} capture - * @return {Function} - * @api public - */ - -exports.bind = function(el, type, fn, capture){ - el[bind](prefix + type, fn, capture || false); - return fn; -}; - -/** - * Unbind `el` event `type`'s callback `fn`. - * - * @param {Element} el - * @param {String} type - * @param {Function} fn - * @param {Boolean} capture - * @return {Function} - * @api public - */ - -exports.unbind = function(el, type, fn, capture){ - el[unbind](prefix + type, fn, capture || false); - return fn; -}; -}); - -require.register("component~query@0.0.3", function (exports, module) { -function one(selector, el) { - return el.querySelector(selector); -} - -exports = module.exports = function(selector, el){ - el = el || document; - return one(selector, el); -}; - -exports.all = function(selector, el){ - el = el || document; - return el.querySelectorAll(selector); -}; - -exports.engine = function(obj){ - if (!obj.one) throw new Error('.one callback required'); - if (!obj.all) throw new Error('.all callback required'); - one = obj.one; - exports.all = obj.all; - return exports; -}; - -}); - -require.register("component~matches-selector@0.1.5", function (exports, module) { -/** - * Module dependencies. - */ - -var query = require('component~query@0.0.3'); - -/** - * Element prototype. - */ - -var proto = Element.prototype; - -/** - * Vendor function. - */ - -var vendor = proto.matches - || proto.webkitMatchesSelector - || proto.mozMatchesSelector - || proto.msMatchesSelector - || proto.oMatchesSelector; - -/** - * Expose `match()`. - */ - -module.exports = match; - -/** - * Match `el` to `selector`. - * - * @param {Element} el - * @param {String} selector - * @return {Boolean} - * @api public - */ - -function match(el, selector) { - if (!el || el.nodeType !== 1) return false; - if (vendor) return vendor.call(el, selector); - var nodes = query.all(selector, el.parentNode); - for (var i = 0; i < nodes.length; ++i) { - if (nodes[i] == el) return true; - } - return false; -} - -}); - -require.register("component~closest@0.1.4", function (exports, module) { -var matches = require('component~matches-selector@0.1.5') - -module.exports = function (element, selector, checkYoSelf, root) { - element = checkYoSelf ? {parentNode: element} : element - - root = root || document - - // Make sure `element !== document` and `element != null` - // otherwise we get an illegal invocation - while ((element = element.parentNode) && element !== document) { - if (matches(element, selector)) - return element - // After `matches` on the edge case that - // the selector matches the root - // (when the root is not the document) - if (element === root) - return - } -} - -}); - -require.register("component~delegate@0.2.3", function (exports, module) { -/** - * Module dependencies. - */ - -var closest = require('component~closest@0.1.4') - , event = require('component~event@0.1.4'); - -/** - * Delegate event `type` to `selector` - * and invoke `fn(e)`. A callback function - * is returned which may be passed to `.unbind()`. - * - * @param {Element} el - * @param {String} selector - * @param {String} type - * @param {Function} fn - * @param {Boolean} capture - * @return {Function} - * @api public - */ - -exports.bind = function(el, selector, type, fn, capture){ - return event.bind(el, type, function(e){ - var target = e.target || e.srcElement; - e.delegateTarget = closest(target, selector, true, el); - if (e.delegateTarget) fn.call(el, e); - }, capture); -}; - -/** - * Unbind event `type`'s callback `fn`. - * - * @param {Element} el - * @param {String} type - * @param {Function} fn - * @param {Boolean} capture - * @api public - */ - -exports.unbind = function(el, type, fn, capture){ - event.unbind(el, type, fn, capture); -}; - -}); - -require.register("component~events@1.0.9", function (exports, module) { - -/** - * Module dependencies. - */ - -var events = require('component~event@0.1.4'); -var delegate = require('component~delegate@0.2.3'); - -/** - * Expose `Events`. - */ - -module.exports = Events; - -/** - * Initialize an `Events` with the given - * `el` object which events will be bound to, - * and the `obj` which will receive method calls. - * - * @param {Object} el - * @param {Object} obj - * @api public - */ - -function Events(el, obj) { - if (!(this instanceof Events)) return new Events(el, obj); - if (!el) throw new Error('element required'); - if (!obj) throw new Error('object required'); - this.el = el; - this.obj = obj; - this._events = {}; -} - -/** - * Subscription helper. - */ - -Events.prototype.sub = function(event, method, cb){ - this._events[event] = this._events[event] || {}; - this._events[event][method] = cb; -}; - -/** - * Bind to `event` with optional `method` name. - * When `method` is undefined it becomes `event` - * with the "on" prefix. - * - * Examples: - * - * Direct event handling: - * - * events.bind('click') // implies "onclick" - * events.bind('click', 'remove') - * events.bind('click', 'sort', 'asc') - * - * Delegated event handling: - * - * events.bind('click li > a') - * events.bind('click li > a', 'remove') - * events.bind('click a.sort-ascending', 'sort', 'asc') - * events.bind('click a.sort-descending', 'sort', 'desc') - * - * @param {String} event - * @param {String|function} [method] - * @return {Function} callback - * @api public - */ - -Events.prototype.bind = function(event, method){ - var e = parse(event); - var el = this.el; - var obj = this.obj; - var name = e.name; - var method = method || 'on' + name; - var args = [].slice.call(arguments, 2); - - // callback - function cb(){ - var a = [].slice.call(arguments).concat(args); - obj[method].apply(obj, a); - } - - // bind - if (e.selector) { - cb = delegate.bind(el, e.selector, name, cb); - } else { - events.bind(el, name, cb); - } - - // subscription for unbinding - this.sub(name, method, cb); - - return cb; -}; - -/** - * Unbind a single binding, all bindings for `event`, - * or all bindings within the manager. - * - * Examples: - * - * Unbind direct handlers: - * - * events.unbind('click', 'remove') - * events.unbind('click') - * events.unbind() - * - * Unbind delegate handlers: - * - * events.unbind('click', 'remove') - * events.unbind('click') - * events.unbind() - * - * @param {String|Function} [event] - * @param {String|Function} [method] - * @api public - */ - -Events.prototype.unbind = function(event, method){ - if (0 == arguments.length) return this.unbindAll(); - if (1 == arguments.length) return this.unbindAllOf(event); - - // no bindings for this event - var bindings = this._events[event]; - if (!bindings) return; - - // no bindings for this method - var cb = bindings[method]; - if (!cb) return; - - events.unbind(this.el, event, cb); -}; - -/** - * Unbind all events. - * - * @api private - */ - -Events.prototype.unbindAll = function(){ - for (var event in this._events) { - this.unbindAllOf(event); - } -}; - -/** - * Unbind all events for `event`. - * - * @param {String} event - * @api private - */ - -Events.prototype.unbindAllOf = function(event){ - var bindings = this._events[event]; - if (!bindings) return; - - for (var method in bindings) { - this.unbind(event, method); - } -}; - -/** - * Parse `event`. - * - * @param {String} event - * @return {Object} - * @api private - */ - -function parse(event) { - var parts = event.split(/ +/); - return { - name: parts.shift(), - selector: parts.join(' ') - } -} - -}); - -require.register("switchery", function (exports, module) { -/** - * Switchery 0.8.0 - * http://abpetkov.github.io/switchery/ - * - * Authored by Alexander Petkov - * https://github.com/abpetkov - * - * Copyright 2013-2015, Alexander Petkov - * License: The MIT License (MIT) - * http://opensource.org/licenses/MIT - * - */ - -/** - * External dependencies. - */ - -var transitionize = require('abpetkov~transitionize@0.0.3') - , fastclick = require('ftlabs~fastclick@v0.6.11') - , classes = require('component~classes@1.2.1') - , events = require('component~events@1.0.9'); - -/** - * Expose `Switchery`. - */ - -module.exports = Switchery; - -/** - * Set Switchery default values. - * - * @api public - */ - -var defaults = { - color : '#64bd63' - , secondaryColor : '#dfdfdf' - , jackColor : '#fff' - , jackSecondaryColor: null - , className : 'switchery' - , disabled : false - , disabledOpacity : 0.5 - , speed : '0.4s' - , size : 'default' -}; - -/** - * Create Switchery object. - * - * @param {Object} element - * @param {Object} options - * @api public - */ - -function Switchery(element, options) { - if (!(this instanceof Switchery)) return new Switchery(element, options); - - this.element = element; - this.options = options || {}; - - for (var i in defaults) { - if (this.options[i] == null) { - this.options[i] = defaults[i]; - } - } - - if (this.element != null && this.element.type == 'checkbox') this.init(); - if (this.isDisabled() === true) this.disable(); -} - -/** - * Hide the target element. - * - * @api private - */ - -Switchery.prototype.hide = function() { - this.element.style.display = 'none'; -}; - -/** - * Show custom switch after the target element. - * - * @api private - */ - -Switchery.prototype.show = function() { - var switcher = this.create(); - this.insertAfter(this.element, switcher); -}; - -/** - * Create custom switch. - * - * @returns {Object} this.switcher - * @api private - */ - -Switchery.prototype.create = function() { - this.switcher = document.createElement('span'); - this.jack = document.createElement('small'); - this.switcher.appendChild(this.jack); - this.switcher.className = this.options.className; - this.events = events(this.switcher, this); - - return this.switcher; -}; - -/** - * Insert after element after another element. - * - * @param {Object} reference - * @param {Object} target - * @api private - */ - -Switchery.prototype.insertAfter = function(reference, target) { - reference.parentNode.insertBefore(target, reference.nextSibling); -}; - -/** - * Set switch jack proper position. - * - * @param {Boolean} clicked - we need this in order to uncheck the input when the switch is clicked - * @api private - */ - -Switchery.prototype.setPosition = function (clicked) { - var checked = this.isChecked() - , switcher = this.switcher - , jack = this.jack; - - if (clicked && checked) checked = false; - else if (clicked && !checked) checked = true; - - if (checked === true) { - this.element.checked = true; - - if (window.getComputedStyle) jack.style.left = parseInt(window.getComputedStyle(switcher).width) - parseInt(window.getComputedStyle(jack).width) + 'px'; - else jack.style.left = parseInt(switcher.currentStyle['width']) - parseInt(jack.currentStyle['width']) + 'px'; - - if (this.options.color) this.colorize(); - this.setSpeed(); - } else { - jack.style.left = 0; - this.element.checked = false; - this.switcher.style.boxShadow = 'inset 0 0 0 0 ' + this.options.secondaryColor; - this.switcher.style.borderColor = this.options.secondaryColor; - this.switcher.style.backgroundColor = (this.options.secondaryColor !== defaults.secondaryColor) ? this.options.secondaryColor : '#fff'; - this.jack.style.backgroundColor = (this.options.jackSecondaryColor !== this.options.jackColor) ? this.options.jackSecondaryColor : this.options.jackColor; - this.setSpeed(); - } -}; - -/** - * Set speed. - * - * @api private - */ - -Switchery.prototype.setSpeed = function() { - var switcherProp = {} - , jackProp = { - 'background-color': this.options.speed - , 'left': this.options.speed.replace(/[a-z]/, '') / 2 + 's' - }; - - if (this.isChecked()) { - switcherProp = { - 'border': this.options.speed - , 'box-shadow': this.options.speed - , 'background-color': this.options.speed.replace(/[a-z]/, '') * 3 + 's' - }; - } else { - switcherProp = { - 'border': this.options.speed - , 'box-shadow': this.options.speed - }; - } - - transitionize(this.switcher, switcherProp); - transitionize(this.jack, jackProp); -}; - -/** - * Set switch size. - * - * @api private - */ - -Switchery.prototype.setSize = function() { - var small = 'switchery-small' - , normal = 'switchery-default' - , large = 'switchery-large'; - - switch (this.options.size) { - case 'small': - classes(this.switcher).add(small) - break; - case 'large': - classes(this.switcher).add(large) - break; - default: - classes(this.switcher).add(normal) - break; - } -}; - -/** - * Set switch color. - * - * @api private - */ - -Switchery.prototype.colorize = function() { - var switcherHeight = this.switcher.offsetHeight / 2; - - this.switcher.style.backgroundColor = this.options.color; - this.switcher.style.borderColor = this.options.color; - this.switcher.style.boxShadow = 'inset 0 0 0 ' + switcherHeight + 'px ' + this.options.color; - this.jack.style.backgroundColor = this.options.jackColor; -}; - -/** - * Handle the onchange event. - * - * @param {Boolean} state - * @api private - */ - -Switchery.prototype.handleOnchange = function(state) { - if (document.dispatchEvent) { - var event = document.createEvent('HTMLEvents'); - event.initEvent('change', true, true); - this.element.dispatchEvent(event); - } else { - this.element.fireEvent('onchange'); - } -}; - -/** - * Handle the native input element state change. - * A `change` event must be fired in order to detect the change. - * - * @api private - */ - -Switchery.prototype.handleChange = function() { - var self = this - , el = this.element; - - if (el.addEventListener) { - el.addEventListener('change', function() { - self.setPosition(); - }); - } else { - el.attachEvent('onchange', function() { - self.setPosition(); - }); - } -}; - -/** - * Handle the switch click event. - * - * @api private - */ - -Switchery.prototype.handleClick = function() { - var switcher = this.switcher; - - fastclick(switcher); - this.events.bind('click', 'bindClick'); -}; - -/** - * Attach all methods that need to happen on switcher click. - * - * @api private - */ - -Switchery.prototype.bindClick = function() { - var parent = this.element.parentNode.tagName.toLowerCase() - , labelParent = (parent === 'label') ? false : true; - - this.setPosition(labelParent); - this.handleOnchange(this.element.checked); -}; - -/** - * Mark an individual switch as already handled. - * - * @api private - */ - -Switchery.prototype.markAsSwitched = function() { - this.element.setAttribute('data-switchery', true); -}; - -/** - * Check if an individual switch is already handled. - * - * @api private - */ - -Switchery.prototype.markedAsSwitched = function() { - return this.element.getAttribute('data-switchery'); -}; - -/** - * Initialize Switchery. - * - * @api private - */ - -Switchery.prototype.init = function() { - this.hide(); - this.show(); - this.setSize(); - this.setPosition(); - this.markAsSwitched(); - this.handleChange(); - this.handleClick(); -}; - -/** - * See if input is checked. - * - * @returns {Boolean} - * @api public - */ - -Switchery.prototype.isChecked = function() { - return this.element.checked; -}; - -/** - * See if switcher should be disabled. - * - * @returns {Boolean} - * @api public - */ - -Switchery.prototype.isDisabled = function() { - return this.options.disabled || this.element.disabled || this.element.readOnly; -}; - -/** - * Destroy all event handlers attached to the switch. - * - * @api public - */ - -Switchery.prototype.destroy = function() { - this.events.unbind(); -}; - -/** - * Enable disabled switch element. - * - * @api public - */ - -Switchery.prototype.enable = function() { - if (this.options.disabled) this.options.disabled = false; - if (this.element.disabled) this.element.disabled = false; - if (this.element.readOnly) this.element.readOnly = false; - this.switcher.style.opacity = 1; - this.events.bind('click', 'bindClick'); -}; - -/** - * Disable switch element. - * - * @api public - */ - -Switchery.prototype.disable = function() { - if (this.options.disabled) this.options.disabled = true; - if (this.element.disabled) this.element.disabled = true; - if (this.element.readOnly) this.element.readOnly = true; - this.switcher.style.opacity = this.options.disabledOpacity; - this.destroy(); -}; - -}); - -if (typeof exports == "object") { - module.exports = require("switchery"); -} else if (typeof define == "function" && define.amd) { - define("Switchery", [], function(){ return require("switchery"); }); -} else { - (this || window)["Switchery"] = require("switchery"); -} -})() diff --git a/app/assets/javascripts/mobile/swtcheckbox.js b/app/assets/javascripts/mobile/swtcheckbox.js deleted file mode 100644 index 0d533221..00000000 --- a/app/assets/javascripts/mobile/swtcheckbox.js +++ /dev/null @@ -1,13 +0,0 @@ - -defaults = { - color : '#64bd63' - , secondaryColor : '#dfdfdf' - , jackColor : '#fff' - , jackSecondaryColor: null - , className : 'switchery' - , disabled : false - , disabledOpacity : 0.5 - , speed : '0.1s' - , size : 'default' -} - diff --git a/app/assets/javascripts/mobile/timetableaps.js b/app/assets/javascripts/mobile/timetableaps.js deleted file mode 100644 index c305067b..00000000 --- a/app/assets/javascripts/mobile/timetableaps.js +++ /dev/null @@ -1,51 +0,0 @@ -$(function (){ - $('#timetableap_DateOfStartNav').datepicker({ - changeYear: true, - dateFormat: "yy-mm-dd", - changeMonth: true, - minDate: "-15y", - maxDate: "+2y", - closeText: "Закрыть", - showWeek: true, - duration: 300 - }); - $('#timetableap_DateOfEndNav').datepicker({ - changeYear: true, - dateFormat: "yy-mm-dd", - changeMonth: true, - minDate: "-15y", - maxDate: "+2y", - closeText: "Закрыть", - showWeek: true, - defaultDate: +365, - duration: 300 - }); -// $("#timetableaps th a, #timetableaps .pagination a").on("click", '', function() { -// $.getScript(this.href); -// return false; -// }); -// $("#timetableaps_search input").keyup(function() { -// $.get($("#timetableaps_search").attr("action"), -// $("#timetableaps_search").serialize(), null, "script"); -// return false; -// }); -}); - - -//$(document).ready(function () { -// $("#new_timetableap").validate({ -// focusInvalid: false, -// focusCleanup: true, -// rules: { -// "timetableap[Flight_Number]": {required: true, maxlength: 4, number: true}, -// "timetableap[DateOfStartNav]": {required: true, maxlength: 10}, -// "timetableap[DateOfEndNav]": {required: true, maxlength: 10 } -// }, -// messages: { -// "timetableap[Flight_Number]": "Введите номер рейса", -// "timetableap[DateOfStartNav]": "Введите дату начала навигации", -// "timetableap[DateOfEndNav]": "Введите дату конца навигации" -// } -// }); -// }); - diff --git a/app/assets/selectmenu.js b/app/assets/selectmenu.js new file mode 100644 index 00000000..654cb944 --- /dev/null +++ b/app/assets/selectmenu.js @@ -0,0 +1,12 @@ +$(function() { +$('select').addClass('show-menu-arrow').selectpicker({ + style: 'btn-default', + width: 'auto', + size: false, + }); +// $('#limit').selectpicker({ +// change: function() { +// $(this).parents('form').submit(); +// } +// }); +}); diff --git a/app/assets/stylesheets/desktop/app.css b/app/assets/stylesheets/desktop/app.css new file mode 100644 index 00000000..e248a7a3 --- /dev/null +++ b/app/assets/stylesheets/desktop/app.css @@ -0,0 +1,37 @@ +body { + padding-top: 80px; + padding-bottom: 40px; +} +.sidebar-nav { + padding: 9px 0; +} + +@media (max-width: 980px) { +/* Enable use of floated navbar text */ + .navbar-text.pull-right { + float: none; + padding-left: 5px; + padding-right: 5px; + } +} +#aprus { + font: bold 12px Arial, Helvetica, sans-serif; +} + +#twrus{ + font: bold 34px Arial, Helvetica, sans-serif; +} + +#tt_time{ + vertical-align:middle; + text-align: center; + font: bold 22px Arial, Helvetica, sans-serif; +} + +#flight_info{ + vertical-align:bottom; +} +#tt_al_info{ + font: 11px Arial, Helvetica, sans-serif; +} + diff --git a/app/assets/stylesheets/desktop/application.css.scss b/app/assets/stylesheets/desktop/application.css.scss new file mode 100644 index 00000000..bf23b9f3 --- /dev/null +++ b/app/assets/stylesheets/desktop/application.css.scss @@ -0,0 +1,10 @@ +/* + *= require_self + *= require jquery-ui/autocomplete + *= require mousetrap + *= require_tree . + */ +@import "bootstrap-sprockets"; +@import "bootswatch/cyborg/variables"; +@import "bootstrap"; +@import "bootswatch/cyborg/bootswatch"; diff --git a/app/assets/stylesheets/desktop/color/black-tie/login.css b/app/assets/stylesheets/desktop/color/black-tie/login.css deleted file mode 100644 index 7f11be5f..00000000 --- a/app/assets/stylesheets/desktop/color/black-tie/login.css +++ /dev/null @@ -1,15 +0,0 @@ -input[type=text], input[type=password], input[type=email], input[type=number] { - color: #e0e0e0; - background: #2b2929; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #ccc; - background: #111; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - background: #282828; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/black-tie/paginate_page.css b/app/assets/stylesheets/desktop/color/black-tie/paginate_page.css deleted file mode 100644 index 8882e0f7..00000000 --- a/app/assets/stylesheets/desktop/color/black-tie/paginate_page.css +++ /dev/null @@ -1,133 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #000; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #000; - font-style: normal; - font-weight: bold; - background-color: #ddd; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #aaa; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #fff; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - color: #000; - font-style: normal; - font-weight: bold; - background-color: #aaa; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - .apple_pagination .page_info { - background: #000; - color: #fff; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #ddd; - background: #111; - padding: 0.1em 0.25em; } - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/blitzer/login.css b/app/assets/stylesheets/desktop/color/blitzer/login.css deleted file mode 100644 index 7f11be5f..00000000 --- a/app/assets/stylesheets/desktop/color/blitzer/login.css +++ /dev/null @@ -1,15 +0,0 @@ -input[type=text], input[type=password], input[type=email], input[type=number] { - color: #e0e0e0; - background: #2b2929; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #ccc; - background: #111; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - background: #282828; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/blitzer/paginate_page.css b/app/assets/stylesheets/desktop/color/blitzer/paginate_page.css deleted file mode 100644 index 8882e0f7..00000000 --- a/app/assets/stylesheets/desktop/color/blitzer/paginate_page.css +++ /dev/null @@ -1,133 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #000; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #000; - font-style: normal; - font-weight: bold; - background-color: #ddd; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #aaa; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #fff; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - color: #000; - font-style: normal; - font-weight: bold; - background-color: #aaa; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - .apple_pagination .page_info { - background: #000; - color: #fff; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #ddd; - background: #111; - padding: 0.1em 0.25em; } - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/blitzer/styles.css b/app/assets/stylesheets/desktop/color/blitzer/styles.css deleted file mode 100644 index fcd8861f..00000000 --- a/app/assets/stylesheets/desktop/color/blitzer/styles.css +++ /dev/null @@ -1,91 +0,0 @@ -.header { -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSI3MiUiIHN0b3AtY29sb3I9IiNmZmU2ODAiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmVmY2VhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==);background: -moz-linear-gradient(top, #300 62%,#400 80%, #500 100%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(62%,#300), color-stop(80%,#400), color-stop(100%,#500)); -/* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #300 62%,#400 80%,#500 100%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #300 62%,#400 80%,#500 100%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #300 62%,#400 80%,#500 100%); /* IE10+ */ -background: linear-gradient(to bottom, #300 62%,#400 80%,#500 100%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#300', endColorstr='#500',GradientType=0 ); /* IE6-8 */ -} - -.left-sidebar { -} -.footer { -color: #93CCF0; -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmNlYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjI4JSIgc3RvcC1jb2xvcj0iIzVmMzYxMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=); -background: -moz-linear-gradient(top, #500 0%, #200 43%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#500), color-stop(43%,#200)); /* - Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #500 0%,#200 43%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #500 0%,#200 43%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #500 0%,#200 43%); /* IE10+ */ -background: linear-gradient(to bottom, #500 0%,#200 43%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#500', endColorstr='#200',GradientType=0 ); /* IE6-8 */ -} -body, .x-body { - color: #ffe; - background: #500; -} - -a { - color: #f7f404; -} -a:hover, a:focus { - color: #f5c748; -} -tr:hover{ - background: #900; - color: #f5c748; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#00d; -} -fieldset{ - border: 2px solid gray; -} - -} - -#twrus{ - color:#FFFF77; -} - -.field_with_errors .message { - color: #D00; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; -} - -#tt_al_info{ - color:#63B8FF; -} diff --git a/app/assets/stylesheets/desktop/color/dark-hive/login.css b/app/assets/stylesheets/desktop/color/dark-hive/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/desktop/color/dark-hive/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/dark-hive/paginate_page.css b/app/assets/stylesheets/desktop/color/dark-hive/paginate_page.css deleted file mode 100644 index f7f21c0d..00000000 --- a/app/assets/stylesheets/desktop/color/dark-hive/paginate_page.css +++ /dev/null @@ -1,121 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #14171A; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #14171A; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #aaaaaa; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #999; - display: inline-block; - width: 1.4em; - height: 1.4em; - line-height: 1.5; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #00a1d2; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #98CCEC; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/dark-hive/styles.css b/app/assets/stylesheets/desktop/color/dark-hive/styles.css deleted file mode 100644 index 85a0269a..00000000 --- a/app/assets/stylesheets/desktop/color/dark-hive/styles.css +++ /dev/null @@ -1,312 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1200px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; - background: #090D0E; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1200px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; - background: #090D0E; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #B0D8F7; - background: #090D0E; - height: 100%; - line-height: 1.5; -} - -a { - color: #2D7B9C; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #fff; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #010F15; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/color/dot-luv/login.css b/app/assets/stylesheets/desktop/color/dot-luv/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/desktop/color/dot-luv/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/dot-luv/paginate_page.css b/app/assets/stylesheets/desktop/color/dot-luv/paginate_page.css deleted file mode 100644 index f7f21c0d..00000000 --- a/app/assets/stylesheets/desktop/color/dot-luv/paginate_page.css +++ /dev/null @@ -1,121 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #14171A; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #14171A; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #aaaaaa; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #999; - display: inline-block; - width: 1.4em; - height: 1.4em; - line-height: 1.5; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #00a1d2; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #98CCEC; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/dot-luv/styles.css b/app/assets/stylesheets/desktop/color/dot-luv/styles.css deleted file mode 100644 index 46eec1dc..00000000 --- a/app/assets/stylesheets/desktop/color/dot-luv/styles.css +++ /dev/null @@ -1,310 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1200px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1200px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #B0D8F7; - background: #090D0E; - height: 100%; - line-height: 1.5; -} - -a { - color: #2D7B9C; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #fff; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #010F15; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/color/le-frog/login.css b/app/assets/stylesheets/desktop/color/le-frog/login.css deleted file mode 100644 index 8d0fce70..00000000 --- a/app/assets/stylesheets/desktop/color/le-frog/login.css +++ /dev/null @@ -1,18 +0,0 @@ -input[type=text], input[type=password], input[type=email], input[type=number] { - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #4C643A; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #000; - background: #BBED98; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - background: #282828; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/le-frog/paginate_page.css b/app/assets/stylesheets/desktop/color/le-frog/paginate_page.css deleted file mode 100644 index 65c08dc9..00000000 --- a/app/assets/stylesheets/desktop/color/le-frog/paginate_page.css +++ /dev/null @@ -1,131 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #2F600B; - color: B0D8F7; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #B0D8F7; - background: #2F600B; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #2F600B; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #DFD789; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #B3AD64; - display: inline-block; - width: 1.4em; - height: 1.4em; - line-height: 1.5; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #DFD789; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #98CCEC; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #79743E; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination .page_info { - background: #2F600B; - color: #E6FADF; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #DFD789; - background: #2F600B; - padding: 0.1em 0.25em; } - - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/le-frog/styles.css b/app/assets/stylesheets/desktop/color/le-frog/styles.css deleted file mode 100644 index 261eb4ae..00000000 --- a/app/assets/stylesheets/desktop/color/le-frog/styles.css +++ /dev/null @@ -1,90 +0,0 @@ -@charset "utf-8"; - -/* Header ------------------------------------------------------------------------------*/ -.header { -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSI3MiUiIHN0b3AtY29sb3I9IiNmZmU2ODAiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmVmY2VhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==); -background: -moz-linear-gradient(top, #006400 72%, #2F600B 100%); /* FF3.6+ * -/ -background: -webkit-gradient(linear, left top, left bottom, color-stop(72%,#006400), color-stop(100%,#F7F1DF)); /* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #006400 72%, #2F600B 100%); /* Chrome -10+,Safari5.1+ */ -background: -o-linear-gradient(top, #006400 72%, #2F600B 100%); /* Opera 11.10 -+ */ -background: -ms-linear-gradient(top, #006400 72%, #2F600B 100%); /* IE10+ */ -background: linear-gradient(to bottom, #006400 72%,#2F600B 100%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#006400', endColorstr='#2F600B',GradientType=0 ); /* IE6-8 */ -} - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - background: #2F600B; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - color: #E6FADF; - background: #2F600B; -} - -a { - color: #DFD789; -} -a:hover, a:focus { - color: #fff; -} -tr:hover{ - background: #204605; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; -} -fieldset{ - border: 2px solid gray; -} - -#twrus{ - color:#FFFF77; -} - -.field_with_errors .message { - color: #D00; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; -} - -#tt_al_info{ - color:#63B8FF; -} \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/color/mint-choc/login.css b/app/assets/stylesheets/desktop/color/mint-choc/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/desktop/color/mint-choc/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/mint-choc/paginate_page.css b/app/assets/stylesheets/desktop/color/mint-choc/paginate_page.css deleted file mode 100644 index 97738887..00000000 --- a/app/assets/stylesheets/desktop/color/mint-choc/paginate_page.css +++ /dev/null @@ -1,130 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #211712; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #aaaaaa; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #82B03D; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.6; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #82B03D; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #A9C64A; } - .apple_pagination .page_info { - background: #211712; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #262E09; - background: #97AB55; - padding: 0.1em 0.25em; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/mint-choc/styles.css b/app/assets/stylesheets/desktop/color/mint-choc/styles.css deleted file mode 100644 index c598ff41..00000000 --- a/app/assets/stylesheets/desktop/color/mint-choc/styles.css +++ /dev/null @@ -1,314 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1000px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1000px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #D5E9B6; - background: #211712; - height: 100%; - line-height: 1.5; -} - -a { - color: #82B03D; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #90E90C; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #1E2E07; - color: #2AEE1C; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#00d; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/color/smoothness/login.css b/app/assets/stylesheets/desktop/color/smoothness/login.css deleted file mode 100644 index b7df9691..00000000 --- a/app/assets/stylesheets/desktop/color/smoothness/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #ffffff; - text-shadow: 1px 1px 1px black; - background: #aaaaaa; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #111; - background: #eeeeee; - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/smoothness/paginate_page.css b/app/assets/stylesheets/desktop/color/smoothness/paginate_page.css deleted file mode 100644 index 25395358..00000000 --- a/app/assets/stylesheets/desktop/color/smoothness/paginate_page.css +++ /dev/null @@ -1,132 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #555; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #E8E7E7; - color: #000; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000; - background: #E8E7E7; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #E8E7E7; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #fff; - font-style: normal; - font-weight: bold; - background-color: #777; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #555; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #ddd; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #999; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - .apple_pagination .page_info { - background: #E8E7E7; - color: #000; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #333; - background: #E8E7E7; - padding: 0.1em 0.25em; } - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/smoothness/styles.css b/app/assets/stylesheets/desktop/color/smoothness/styles.css deleted file mode 100644 index d746e8bd..00000000 --- a/app/assets/stylesheets/desktop/color/smoothness/styles.css +++ /dev/null @@ -1,317 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1000px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - background: #cEcCcC; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1000px; - max-width: 1800px; - height: 150px; - background: #656363; - color: #f1f1f1; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #000; - background: #EEECEC; - height: 100%; - line-height: 1.5; -} - -a { - color: #434141; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #000; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #cEcCcC; - color: #000; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#500; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/color/start/login.css b/app/assets/stylesheets/desktop/color/start/login.css deleted file mode 100644 index 4ba2d77c..00000000 --- a/app/assets/stylesheets/desktop/color/start/login.css +++ /dev/null @@ -1,15 +0,0 @@ -input[type=text], input[type=password], input[type=email], input[type=number] { - color: #E2EEF4; - background: #69818E; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #001; - background: #D7EAF5; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - background: #282828; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/start/paginate_page.css b/app/assets/stylesheets/desktop/color/start/paginate_page.css deleted file mode 100644 index 68464f5d..00000000 --- a/app/assets/stylesheets/desktop/color/start/paginate_page.css +++ /dev/null @@ -1,132 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #B5E3FF; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #11A2F0; - font-style: normal; - font-weight: bold; - background-color: #D8ECF7; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #007; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #11A2F0; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #A4D9F5; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - .apple_pagination .page_info { - background: #B5E3FF; - color: #0D2188; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #0D2188; - background: #B9DFF2; - padding: 0.1em 0.25em; } - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/start/styles.css b/app/assets/stylesheets/desktop/color/start/styles.css deleted file mode 100644 index 74bf6af9..00000000 --- a/app/assets/stylesheets/desktop/color/start/styles.css +++ /dev/null @@ -1,98 +0,0 @@ -.header { -color: #CAE2F1; -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSI3MiUiIHN0b3AtY29sb3I9IiNmZmU2ODAiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmVmY2VhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==);background: -moz-linear-gradient(top, #ffe680 72%, #F7F1DF 100%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(62%,#056895), color-stop(90%,#d8f0fb), color-stop(100%,#fff)); -/* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #056895 62%,#d8f0fb 90%,#fff 100%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #056895 62%,#d8f0fb 90%,#fff 100%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #056895 62%,#d8f0fb 90%,#fff 100%); /* IE10+ */ -background: linear-gradient(to bottom, #056895 62%,#d8f0fb 90%,#fff 100%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#056895', endColorstr='#fff',GradientType=0 ); /* IE6-8 */ -} - -.left-sidebar { -background: #B5E3FF; -} -.footer { -color: #93CCF0; -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmNlYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjI4JSIgc3RvcC1jb2xvcj0iIzVmMzYxMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=); -background: -moz-linear-gradient(top, #fff 0%, #031F31 43%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(43%,#031F31)); /* - Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #fff 0%,#031F31 43%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #fff 0%,#031F31 43%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #fff 0%,#031F31 43%); /* IE10+ */ -background: linear-gradient(to bottom, #fff 0%,#031F31 43%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff', endColorstr='#031F31',GradientType=0 ); /* IE6-8 */ - -} -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - color: #003; - background: #fff; -} - -a { - color: #1424B3; -} -a:hover, a:focus { - color: #01090D; -} -tr:hover{ - background: #B9DFF2; - color: #01090D; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#00d; -} -fieldset{ - border: 2px solid gray; -} - -} - -#twrus{ - color:#FFFF77; -} - -.field_with_errors .message { - color: #D00; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; -} - -#tt_al_info{ - color:#63B8FF; -} diff --git a/app/assets/stylesheets/desktop/color/sunny/paginate_page.css b/app/assets/stylesheets/desktop/color/sunny/paginate_page.css deleted file mode 100644 index b0f6fbc7..00000000 --- a/app/assets/stylesheets/desktop/color/sunny/paginate_page.css +++ /dev/null @@ -1,132 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #EEEDC2; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #EEEDC2; - font-style: normal; - font-weight: bold; - background-color: #fb0; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #700; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #f30; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - .apple_pagination .page_info { - background: #EEEDC2; - color: #a00; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #900; - background: #EEEDC2; - padding: 0.1em 0.25em; } - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/sunny/styles.css b/app/assets/stylesheets/desktop/color/sunny/styles.css deleted file mode 100644 index 5ab7f8ca..00000000 --- a/app/assets/stylesheets/desktop/color/sunny/styles.css +++ /dev/null @@ -1,335 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1700px; - max-width: 1900px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; - -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSI3MiUiIHN0b3AtY29sb3I9IiNmZmU2ODAiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmVmY2VhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==); -background: -moz-linear-gradient(top, #ffe680 72%, #F7F1DF 100%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(72%,#ffe680), color-stop(100%,#F7F1DF)); /* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #ffe680 72%,#F7F1DF 100%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #ffe680 72%,#F7F1DF 100%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #ffe680 72%,#F7F1DF 100%); /* IE10+ */ -background: linear-gradient(to bottom, #ffe680 72%,#F7F1DF 100%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffe680', endColorstr='#F7F1DF',GradientType=0 ); /* IE6-8 */ -} - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -80px auto 0; - min-width: 1700px; - max-width: 1900px; - height: 200px; - color: #E6CD7C; - position: relative; - text-align: center; - vertical-align:bottom; - padding-top:120px; -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmNlYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjI4JSIgc3RvcC1jb2xvcj0iIzVmMzYxMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=); -background: -moz-linear-gradient(top, #F7F1DF 0%, #5f3611 43%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F7F1DF), color-stop(43%,#5f3611)); /* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #F7F1DF 0%,#5f3611 43%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #F7F1DF 0%,#5f3611 43%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #F7F1DF 0%,#5f3611 43%); /* IE10+ */ -background: linear-gradient(to bottom, #F7F1DF 0%,#5f3611 43%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F7F1DF', endColorstr='#5f3611',GradientType=0 ); /* IE6-8 */ -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #500; - background: #F7F1DF; - height: 100%; - line-height: 1.5; -} - -a { - color: #f20; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #500; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #F5D87A; - color: #000; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#500; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#700; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info, .userpage{ - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section, .userpage-section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#30A7FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/color/swanky-purse/login.css b/app/assets/stylesheets/desktop/color/swanky-purse/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/desktop/color/swanky-purse/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/swanky-purse/paginate_page.css b/app/assets/stylesheets/desktop/color/swanky-purse/paginate_page.css deleted file mode 100644 index b27d2535..00000000 --- a/app/assets/stylesheets/desktop/color/swanky-purse/paginate_page.css +++ /dev/null @@ -1,121 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #4A3215; - color: B0D8F7; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #B0D8F7; - background: #4A3215; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #4A3215; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #DFD789; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #B3AD64; - display: inline-block; - width: 1.4em; - height: 1.4em; - line-height: 1.5; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #DFD789; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #98CCEC; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #79743E; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/swanky-purse/styles.css b/app/assets/stylesheets/desktop/color/swanky-purse/styles.css deleted file mode 100644 index 710d8cf5..00000000 --- a/app/assets/stylesheets/desktop/color/swanky-purse/styles.css +++ /dev/null @@ -1,310 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1200px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1200px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #B0D8F7; - background: #4A3215; - height: 100%; - line-height: 1.5; -} - -a { - color: #DFD789; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #fff; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #39250C; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/color/trontastic/login.css b/app/assets/stylesheets/desktop/color/trontastic/login.css deleted file mode 100644 index 7f11be5f..00000000 --- a/app/assets/stylesheets/desktop/color/trontastic/login.css +++ /dev/null @@ -1,15 +0,0 @@ -input[type=text], input[type=password], input[type=email], input[type=number] { - color: #e0e0e0; - background: #2b2929; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #ccc; - background: #111; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - background: #282828; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/trontastic/paginate_page.css b/app/assets/stylesheets/desktop/color/trontastic/paginate_page.css deleted file mode 100644 index 8882e0f7..00000000 --- a/app/assets/stylesheets/desktop/color/trontastic/paginate_page.css +++ /dev/null @@ -1,133 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #000; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #000; - font-style: normal; - font-weight: bold; - background-color: #ddd; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #aaa; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #fff; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - color: #000; - font-style: normal; - font-weight: bold; - background-color: #aaa; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - .apple_pagination .page_info { - background: #000; - color: #fff; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #ddd; - background: #111; - padding: 0.1em 0.25em; } - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/trontastic/styles.css b/app/assets/stylesheets/desktop/color/trontastic/styles.css deleted file mode 100644 index 8aed4092..00000000 --- a/app/assets/stylesheets/desktop/color/trontastic/styles.css +++ /dev/null @@ -1,68 +0,0 @@ -.left-sidebar { -background: #000; -} - -body, .x-body { - color: #fff; - background: #000; -} - -a { - color: #e8f10a; -} -a:hover, a:focus { - color: #beb31b; -} -tr:hover{ - background: #4b4b4b; - color: #01090D; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#00d; -} -fieldset{ - border: 2px solid gray; -} - -} - -#twrus{ - color:#FFFF77; -} - -.field_with_errors .message { - color: #D00; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; -} - -#tt_al_info{ - color:#63B8FF; -} diff --git a/app/assets/stylesheets/desktop/color/ui-darkness/login.css b/app/assets/stylesheets/desktop/color/ui-darkness/login.css deleted file mode 100644 index cf7f59c3..00000000 --- a/app/assets/stylesheets/desktop/color/ui-darkness/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #7F4D53; - text-shadow: 1px 1px 1px black; - background: #E9A19B; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #300; - background: #F6D4D1; - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/color/ui-darkness/paginate_page.css b/app/assets/stylesheets/desktop/color/ui-darkness/paginate_page.css deleted file mode 100644 index 9c325687..00000000 --- a/app/assets/stylesheets/desktop/color/ui-darkness/paginate_page.css +++ /dev/null @@ -1,130 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #FFA07A; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #010101; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #D2B48C; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #F4A460; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.6; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #FF8C00; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #F5DEB3; } - .apple_pagination .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #551C07; - background: #E9A04C; - padding: 0.1em 0.25em; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/color/ui-darkness/styles.css b/app/assets/stylesheets/desktop/color/ui-darkness/styles.css deleted file mode 100644 index f1a2ff09..00000000 --- a/app/assets/stylesheets/desktop/color/ui-darkness/styles.css +++ /dev/null @@ -1,314 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1000px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1000px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #FFFACD; - background: #010101; - height: 100%; - line-height: 1.5; -} - -a { - color: #FF8C00; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #CD9B1D; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #311C07; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#FFD700; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/style/application.css b/app/assets/stylesheets/desktop/style/application.css deleted file mode 100644 index f67eda32..00000000 --- a/app/assets/stylesheets/desktop/style/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/sunny - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/style/highslide.css b/app/assets/stylesheets/desktop/style/highslide.css deleted file mode 100644 index 3d07e1bc..00000000 --- a/app/assets/stylesheets/desktop/style/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #EEEDC2; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/style/login.css b/app/assets/stylesheets/desktop/style/login.css deleted file mode 100644 index bfae04c3..00000000 --- a/app/assets/stylesheets/desktop/style/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #956A5D; - text-shadow: 1px 1px 1px black; - background: #BAAB8D; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #100; - background: #F5ECCF; - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/style/paginate_page.css b/app/assets/stylesheets/desktop/style/paginate_page.css deleted file mode 100644 index a8d7ced3..00000000 --- a/app/assets/stylesheets/desktop/style/paginate_page.css +++ /dev/null @@ -1,120 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #EEEDC2; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #EEEDC2; - font-style: normal; - font-weight: bold; - background-color: #fb0; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #700; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #f30; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/style/styles.css b/app/assets/stylesheets/desktop/style/styles.css deleted file mode 100644 index 875d67d5..00000000 --- a/app/assets/stylesheets/desktop/style/styles.css +++ /dev/null @@ -1,315 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1700px; - max-width: 1900px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -80px auto 0; - min-width: 1700px; - max-width: 1900px; - height: 200px; - position: relative; - text-align: center; - vertical-align:bottom; - padding-top:120px; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - height: 100%; - line-height: 1.5; -} - -a { - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -legend{ - margin-left:30px; -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info, .userpage{ - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section, .userpage-section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} - - -.round-image-50 { - border: 1px solid #d9d9d9; - border-radius: 50px; - -moz-border-radius: 50px; - -webkit-border-radius: 50px; - height: 100px; - width: 100px; - overflow: hidden; - text-align: center; - img { width: 100% } -} -.round-image-250 { - border: 1px solid #d9d9d9; - border-radius: 250px; - -moz-border-radius: 250px; - -webkit-border-radius: 250px; - height: 500px; - width: 500px; - overflow: hidden; - text-align: center; - img { width: 100% } -} - .ui-autocomplete { - height: 200px; - overflow-y: scroll; - overflow-x: hidden; - } - - diff --git a/app/assets/stylesheets/desktop/style/wclock.css b/app/assets/stylesheets/desktop/style/wclock.css deleted file mode 100644 index e13aa8d3..00000000 --- a/app/assets/stylesheets/desktop/style/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1900px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/style/switchery.css b/app/assets/stylesheets/desktop/switchery.css similarity index 100% rename from app/assets/stylesheets/desktop/style/switchery.css rename to app/assets/stylesheets/desktop/switchery.css diff --git a/app/assets/stylesheets/desktop/themes/dark-hive/application.css b/app/assets/stylesheets/desktop/themes/dark-hive/application.css deleted file mode 100644 index ad20e1fc..00000000 --- a/app/assets/stylesheets/desktop/themes/dark-hive/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/dark-hive - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/themes/dark-hive/calendar_styles/red.css b/app/assets/stylesheets/desktop/themes/dark-hive/calendar_styles/red.css deleted file mode 100644 index 831dd2b1..00000000 --- a/app/assets/stylesheets/desktop/themes/dark-hive/calendar_styles/red.css +++ /dev/null @@ -1,65 +0,0 @@ -/* - A red, white, and grey theme. - - AUTHOR: Geoffrey Grosenbach http://nubyonrails.com -*/ - -.calendar { - margin: auto; -} - -.monthName th { - font-weight: normal; - text-align: right; - padding-top: 1em; - padding-bottom: 0.7em; -} - -.dayName th { - font-size: 0.7em; - padding-top: 0.6em; - padding-bottom: 0.3em; - background-color: #303030; - color: white; -} - -.otherMonth, .day, .specialDay { - padding: 0.7em 1em; - border-right: 1px solid white; - -} - -.otherMonth { - color: #eeeeee; - background-color: #505060; -} -.weekendDay { - background-color: #aa0000; -} - -.day, .specialDay { - text-align: center; - border-bottom: 1px dotted #bbbbbb; -} - -.specialDay { - background-color: #d10a21; - color: white; -} -.specialDay a, .specialDay a:visited, .specialDay a:hover { - color: white; - text-decoration: none; - padding: 1em; -} -.specialDay a:hover { - color: white; - background-color: black; -} -.today { - background-color: #1e90ff; - color: white; -} -/*.weekNumber { - background-color: #700; -} -*/ \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/themes/dark-hive/highslide.css b/app/assets/stylesheets/desktop/themes/dark-hive/highslide.css deleted file mode 100644 index dc26a6ce..00000000 --- a/app/assets/stylesheets/desktop/themes/dark-hive/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #111; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/themes/dark-hive/login.css b/app/assets/stylesheets/desktop/themes/dark-hive/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/desktop/themes/dark-hive/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/themes/dark-hive/paginate_page.css b/app/assets/stylesheets/desktop/themes/dark-hive/paginate_page.css deleted file mode 100644 index f7f21c0d..00000000 --- a/app/assets/stylesheets/desktop/themes/dark-hive/paginate_page.css +++ /dev/null @@ -1,121 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #14171A; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #14171A; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #aaaaaa; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #999; - display: inline-block; - width: 1.4em; - height: 1.4em; - line-height: 1.5; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #00a1d2; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #98CCEC; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/themes/dark-hive/styles.css b/app/assets/stylesheets/desktop/themes/dark-hive/styles.css deleted file mode 100644 index 46eec1dc..00000000 --- a/app/assets/stylesheets/desktop/themes/dark-hive/styles.css +++ /dev/null @@ -1,310 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1200px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1200px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #B0D8F7; - background: #090D0E; - height: 100%; - line-height: 1.5; -} - -a { - color: #2D7B9C; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #fff; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #010F15; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/themes/dark-hive/switchery.css b/app/assets/stylesheets/desktop/themes/dark-hive/switchery.css deleted file mode 100644 index 74c1da5b..00000000 --- a/app/assets/stylesheets/desktop/themes/dark-hive/switchery.css +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Main stylesheet for Switchery. - * http://abpetkov.github.io/switchery/ - * - */ - -/* Switchery defaults. */ - -.switchery { - background-color: #fff; - border: 1px solid #dfdfdf; - border-radius: 20px; - cursor: pointer; - display: inline-block; - height: 30px; - position: relative; - vertical-align: middle; - width: 50px; - - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: content-box; - background-clip: content-box; -} - -.switchery > small { - background: #fff; - border-radius: 100%; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - height: 30px; - position: absolute; - top: 0; - width: 30px; -} - -/* Switchery sizes. */ - -.switchery-small { - border-radius: 20px; - height: 20px; - width: 33px; -} - -.switchery-small > small { - height: 20px; - width: 20px; -} - -.switchery-large { - border-radius: 40px; - height: 40px; - width: 66px; -} - -.switchery-large > small { - height: 40px; - width: 40px; -} - - diff --git a/app/assets/stylesheets/desktop/themes/dark-hive/wclock.css b/app/assets/stylesheets/desktop/themes/dark-hive/wclock.css deleted file mode 100644 index 3466c332..00000000 --- a/app/assets/stylesheets/desktop/themes/dark-hive/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1800px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/themes/dot-luv/application.css b/app/assets/stylesheets/desktop/themes/dot-luv/application.css deleted file mode 100644 index 91a66529..00000000 --- a/app/assets/stylesheets/desktop/themes/dot-luv/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/dot-luv - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/themes/dot-luv/calendar_styles/red.css b/app/assets/stylesheets/desktop/themes/dot-luv/calendar_styles/red.css deleted file mode 100644 index 831dd2b1..00000000 --- a/app/assets/stylesheets/desktop/themes/dot-luv/calendar_styles/red.css +++ /dev/null @@ -1,65 +0,0 @@ -/* - A red, white, and grey theme. - - AUTHOR: Geoffrey Grosenbach http://nubyonrails.com -*/ - -.calendar { - margin: auto; -} - -.monthName th { - font-weight: normal; - text-align: right; - padding-top: 1em; - padding-bottom: 0.7em; -} - -.dayName th { - font-size: 0.7em; - padding-top: 0.6em; - padding-bottom: 0.3em; - background-color: #303030; - color: white; -} - -.otherMonth, .day, .specialDay { - padding: 0.7em 1em; - border-right: 1px solid white; - -} - -.otherMonth { - color: #eeeeee; - background-color: #505060; -} -.weekendDay { - background-color: #aa0000; -} - -.day, .specialDay { - text-align: center; - border-bottom: 1px dotted #bbbbbb; -} - -.specialDay { - background-color: #d10a21; - color: white; -} -.specialDay a, .specialDay a:visited, .specialDay a:hover { - color: white; - text-decoration: none; - padding: 1em; -} -.specialDay a:hover { - color: white; - background-color: black; -} -.today { - background-color: #1e90ff; - color: white; -} -/*.weekNumber { - background-color: #700; -} -*/ \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/themes/dot-luv/highslide.css b/app/assets/stylesheets/desktop/themes/dot-luv/highslide.css deleted file mode 100644 index dc26a6ce..00000000 --- a/app/assets/stylesheets/desktop/themes/dot-luv/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #111; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/themes/dot-luv/login.css b/app/assets/stylesheets/desktop/themes/dot-luv/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/desktop/themes/dot-luv/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/themes/dot-luv/paginate_page.css b/app/assets/stylesheets/desktop/themes/dot-luv/paginate_page.css deleted file mode 100644 index f7f21c0d..00000000 --- a/app/assets/stylesheets/desktop/themes/dot-luv/paginate_page.css +++ /dev/null @@ -1,121 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #14171A; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #14171A; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #aaaaaa; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #999; - display: inline-block; - width: 1.4em; - height: 1.4em; - line-height: 1.5; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #00a1d2; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #98CCEC; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/themes/dot-luv/styles.css b/app/assets/stylesheets/desktop/themes/dot-luv/styles.css deleted file mode 100644 index 46eec1dc..00000000 --- a/app/assets/stylesheets/desktop/themes/dot-luv/styles.css +++ /dev/null @@ -1,310 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1200px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1200px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #B0D8F7; - background: #090D0E; - height: 100%; - line-height: 1.5; -} - -a { - color: #2D7B9C; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #fff; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #010F15; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/themes/dot-luv/switchery.css b/app/assets/stylesheets/desktop/themes/dot-luv/switchery.css deleted file mode 100644 index 74c1da5b..00000000 --- a/app/assets/stylesheets/desktop/themes/dot-luv/switchery.css +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Main stylesheet for Switchery. - * http://abpetkov.github.io/switchery/ - * - */ - -/* Switchery defaults. */ - -.switchery { - background-color: #fff; - border: 1px solid #dfdfdf; - border-radius: 20px; - cursor: pointer; - display: inline-block; - height: 30px; - position: relative; - vertical-align: middle; - width: 50px; - - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: content-box; - background-clip: content-box; -} - -.switchery > small { - background: #fff; - border-radius: 100%; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - height: 30px; - position: absolute; - top: 0; - width: 30px; -} - -/* Switchery sizes. */ - -.switchery-small { - border-radius: 20px; - height: 20px; - width: 33px; -} - -.switchery-small > small { - height: 20px; - width: 20px; -} - -.switchery-large { - border-radius: 40px; - height: 40px; - width: 66px; -} - -.switchery-large > small { - height: 40px; - width: 40px; -} - - diff --git a/app/assets/stylesheets/desktop/themes/dot-luv/wclock.css b/app/assets/stylesheets/desktop/themes/dot-luv/wclock.css deleted file mode 100644 index 3466c332..00000000 --- a/app/assets/stylesheets/desktop/themes/dot-luv/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1800px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/themes/le-frog/application.css b/app/assets/stylesheets/desktop/themes/le-frog/application.css deleted file mode 100644 index a0948a61..00000000 --- a/app/assets/stylesheets/desktop/themes/le-frog/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/le-frog - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/themes/le-frog/calendar_styles/red.css b/app/assets/stylesheets/desktop/themes/le-frog/calendar_styles/red.css deleted file mode 100644 index 831dd2b1..00000000 --- a/app/assets/stylesheets/desktop/themes/le-frog/calendar_styles/red.css +++ /dev/null @@ -1,65 +0,0 @@ -/* - A red, white, and grey theme. - - AUTHOR: Geoffrey Grosenbach http://nubyonrails.com -*/ - -.calendar { - margin: auto; -} - -.monthName th { - font-weight: normal; - text-align: right; - padding-top: 1em; - padding-bottom: 0.7em; -} - -.dayName th { - font-size: 0.7em; - padding-top: 0.6em; - padding-bottom: 0.3em; - background-color: #303030; - color: white; -} - -.otherMonth, .day, .specialDay { - padding: 0.7em 1em; - border-right: 1px solid white; - -} - -.otherMonth { - color: #eeeeee; - background-color: #505060; -} -.weekendDay { - background-color: #aa0000; -} - -.day, .specialDay { - text-align: center; - border-bottom: 1px dotted #bbbbbb; -} - -.specialDay { - background-color: #d10a21; - color: white; -} -.specialDay a, .specialDay a:visited, .specialDay a:hover { - color: white; - text-decoration: none; - padding: 1em; -} -.specialDay a:hover { - color: white; - background-color: black; -} -.today { - background-color: #1e90ff; - color: white; -} -/*.weekNumber { - background-color: #700; -} -*/ \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/themes/le-frog/highslide.css b/app/assets/stylesheets/desktop/themes/le-frog/highslide.css deleted file mode 100644 index dc26a6ce..00000000 --- a/app/assets/stylesheets/desktop/themes/le-frog/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #111; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/themes/le-frog/login.css b/app/assets/stylesheets/desktop/themes/le-frog/login.css deleted file mode 100644 index 8b1f551c..00000000 --- a/app/assets/stylesheets/desktop/themes/le-frog/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #4C643A; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #000; - background: #BBED98; - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/themes/le-frog/paginate_page.css b/app/assets/stylesheets/desktop/themes/le-frog/paginate_page.css deleted file mode 100644 index 0a1b5be6..00000000 --- a/app/assets/stylesheets/desktop/themes/le-frog/paginate_page.css +++ /dev/null @@ -1,121 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #2F600B; - color: B0D8F7; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #B0D8F7; - background: #2F600B; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #2F600B; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #DFD789; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #B3AD64; - display: inline-block; - width: 1.4em; - height: 1.4em; - line-height: 1.5; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #DFD789; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #98CCEC; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #79743E; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/themes/le-frog/styles.css b/app/assets/stylesheets/desktop/themes/le-frog/styles.css deleted file mode 100644 index 08607b4d..00000000 --- a/app/assets/stylesheets/desktop/themes/le-frog/styles.css +++ /dev/null @@ -1,310 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1200px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1200px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #E6FADF; - background: #2F600B; - height: 100%; - line-height: 1.5; -} - -a { - color: #DFD789; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #fff; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #204605; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/themes/le-frog/switchery.css b/app/assets/stylesheets/desktop/themes/le-frog/switchery.css deleted file mode 100644 index 74c1da5b..00000000 --- a/app/assets/stylesheets/desktop/themes/le-frog/switchery.css +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Main stylesheet for Switchery. - * http://abpetkov.github.io/switchery/ - * - */ - -/* Switchery defaults. */ - -.switchery { - background-color: #fff; - border: 1px solid #dfdfdf; - border-radius: 20px; - cursor: pointer; - display: inline-block; - height: 30px; - position: relative; - vertical-align: middle; - width: 50px; - - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: content-box; - background-clip: content-box; -} - -.switchery > small { - background: #fff; - border-radius: 100%; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - height: 30px; - position: absolute; - top: 0; - width: 30px; -} - -/* Switchery sizes. */ - -.switchery-small { - border-radius: 20px; - height: 20px; - width: 33px; -} - -.switchery-small > small { - height: 20px; - width: 20px; -} - -.switchery-large { - border-radius: 40px; - height: 40px; - width: 66px; -} - -.switchery-large > small { - height: 40px; - width: 40px; -} - - diff --git a/app/assets/stylesheets/desktop/themes/le-frog/wclock.css b/app/assets/stylesheets/desktop/themes/le-frog/wclock.css deleted file mode 100644 index 3466c332..00000000 --- a/app/assets/stylesheets/desktop/themes/le-frog/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1800px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/themes/mint-choc/application.css b/app/assets/stylesheets/desktop/themes/mint-choc/application.css deleted file mode 100644 index 504a2c7d..00000000 --- a/app/assets/stylesheets/desktop/themes/mint-choc/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/mint-choc - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/themes/mint-choc/calendar_styles/red.css b/app/assets/stylesheets/desktop/themes/mint-choc/calendar_styles/red.css deleted file mode 100644 index 831dd2b1..00000000 --- a/app/assets/stylesheets/desktop/themes/mint-choc/calendar_styles/red.css +++ /dev/null @@ -1,65 +0,0 @@ -/* - A red, white, and grey theme. - - AUTHOR: Geoffrey Grosenbach http://nubyonrails.com -*/ - -.calendar { - margin: auto; -} - -.monthName th { - font-weight: normal; - text-align: right; - padding-top: 1em; - padding-bottom: 0.7em; -} - -.dayName th { - font-size: 0.7em; - padding-top: 0.6em; - padding-bottom: 0.3em; - background-color: #303030; - color: white; -} - -.otherMonth, .day, .specialDay { - padding: 0.7em 1em; - border-right: 1px solid white; - -} - -.otherMonth { - color: #eeeeee; - background-color: #505060; -} -.weekendDay { - background-color: #aa0000; -} - -.day, .specialDay { - text-align: center; - border-bottom: 1px dotted #bbbbbb; -} - -.specialDay { - background-color: #d10a21; - color: white; -} -.specialDay a, .specialDay a:visited, .specialDay a:hover { - color: white; - text-decoration: none; - padding: 1em; -} -.specialDay a:hover { - color: white; - background-color: black; -} -.today { - background-color: #1e90ff; - color: white; -} -/*.weekNumber { - background-color: #700; -} -*/ \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/themes/mint-choc/highslide.css b/app/assets/stylesheets/desktop/themes/mint-choc/highslide.css deleted file mode 100644 index dc26a6ce..00000000 --- a/app/assets/stylesheets/desktop/themes/mint-choc/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #111; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/themes/mint-choc/login.css b/app/assets/stylesheets/desktop/themes/mint-choc/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/desktop/themes/mint-choc/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/themes/mint-choc/paginate_page.css b/app/assets/stylesheets/desktop/themes/mint-choc/paginate_page.css deleted file mode 100644 index 97738887..00000000 --- a/app/assets/stylesheets/desktop/themes/mint-choc/paginate_page.css +++ /dev/null @@ -1,130 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #211712; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #aaaaaa; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #82B03D; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.6; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #82B03D; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #A9C64A; } - .apple_pagination .page_info { - background: #211712; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #262E09; - background: #97AB55; - padding: 0.1em 0.25em; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/themes/mint-choc/styles.css b/app/assets/stylesheets/desktop/themes/mint-choc/styles.css deleted file mode 100644 index c598ff41..00000000 --- a/app/assets/stylesheets/desktop/themes/mint-choc/styles.css +++ /dev/null @@ -1,314 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1000px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1000px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #D5E9B6; - background: #211712; - height: 100%; - line-height: 1.5; -} - -a { - color: #82B03D; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #90E90C; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #1E2E07; - color: #2AEE1C; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#00d; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/themes/mint-choc/switchery.css b/app/assets/stylesheets/desktop/themes/mint-choc/switchery.css deleted file mode 100644 index 1f884e77..00000000 --- a/app/assets/stylesheets/desktop/themes/mint-choc/switchery.css +++ /dev/null @@ -1,69 +0,0 @@ -/* - * - * Main stylesheet for Switchery. - * http://abpetkov.github.io/switchery/ - * - */ - -/* Switchery defaults. */ - -.switchery { - background-color: #000; - border: 1px solid #dfdfdf; - border-radius: 20px; - cursor: pointer; - display: inline-block; - height: 30px; - position: relative; - vertical-align: middle; - width: 50px; - - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: content-box; - background-clip: content-box; -} -element.style { - background-color: #fff; - border-color: #fff; - box-shadow: 0 0 0 16px #ddd inset; - transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s; -} -.switchery > small { - background: #fff; - border-radius: 100%; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - height: 30px; - position: absolute; - top: 0; - width: 30px; -} - -/* Switchery sizes. */ - -.switchery-small { - border-radius: 20px; - height: 20px; - width: 33px; -} - -.switchery-small > small { - height: 20px; - width: 20px; -} - -.switchery-large { - border-radius: 40px; - height: 40px; - width: 66px; -} - -.switchery-large > small { - height: 40px; - width: 40px; -} - - diff --git a/app/assets/stylesheets/desktop/themes/mint-choc/wclock.css b/app/assets/stylesheets/desktop/themes/mint-choc/wclock.css deleted file mode 100644 index 3466c332..00000000 --- a/app/assets/stylesheets/desktop/themes/mint-choc/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1800px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/themes/smoothness/application.css b/app/assets/stylesheets/desktop/themes/smoothness/application.css deleted file mode 100644 index 44e9cf61..00000000 --- a/app/assets/stylesheets/desktop/themes/smoothness/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/smoothness - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/themes/smoothness/calendar_styles/red.css b/app/assets/stylesheets/desktop/themes/smoothness/calendar_styles/red.css deleted file mode 100644 index 831dd2b1..00000000 --- a/app/assets/stylesheets/desktop/themes/smoothness/calendar_styles/red.css +++ /dev/null @@ -1,65 +0,0 @@ -/* - A red, white, and grey theme. - - AUTHOR: Geoffrey Grosenbach http://nubyonrails.com -*/ - -.calendar { - margin: auto; -} - -.monthName th { - font-weight: normal; - text-align: right; - padding-top: 1em; - padding-bottom: 0.7em; -} - -.dayName th { - font-size: 0.7em; - padding-top: 0.6em; - padding-bottom: 0.3em; - background-color: #303030; - color: white; -} - -.otherMonth, .day, .specialDay { - padding: 0.7em 1em; - border-right: 1px solid white; - -} - -.otherMonth { - color: #eeeeee; - background-color: #505060; -} -.weekendDay { - background-color: #aa0000; -} - -.day, .specialDay { - text-align: center; - border-bottom: 1px dotted #bbbbbb; -} - -.specialDay { - background-color: #d10a21; - color: white; -} -.specialDay a, .specialDay a:visited, .specialDay a:hover { - color: white; - text-decoration: none; - padding: 1em; -} -.specialDay a:hover { - color: white; - background-color: black; -} -.today { - background-color: #1e90ff; - color: white; -} -/*.weekNumber { - background-color: #700; -} -*/ \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/themes/smoothness/highslide.css b/app/assets/stylesheets/desktop/themes/smoothness/highslide.css deleted file mode 100644 index 3d07e1bc..00000000 --- a/app/assets/stylesheets/desktop/themes/smoothness/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #EEEDC2; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/themes/smoothness/login.css b/app/assets/stylesheets/desktop/themes/smoothness/login.css deleted file mode 100644 index b7df9691..00000000 --- a/app/assets/stylesheets/desktop/themes/smoothness/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #ffffff; - text-shadow: 1px 1px 1px black; - background: #aaaaaa; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #111; - background: #eeeeee; - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/themes/smoothness/paginate_page.css b/app/assets/stylesheets/desktop/themes/smoothness/paginate_page.css deleted file mode 100644 index 25395358..00000000 --- a/app/assets/stylesheets/desktop/themes/smoothness/paginate_page.css +++ /dev/null @@ -1,132 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #555; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #E8E7E7; - color: #000; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000; - background: #E8E7E7; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #E8E7E7; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #fff; - font-style: normal; - font-weight: bold; - background-color: #777; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #555; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #ddd; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #999; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - .apple_pagination .page_info { - background: #E8E7E7; - color: #000; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #333; - background: #E8E7E7; - padding: 0.1em 0.25em; } - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/themes/smoothness/styles.css b/app/assets/stylesheets/desktop/themes/smoothness/styles.css deleted file mode 100644 index d746e8bd..00000000 --- a/app/assets/stylesheets/desktop/themes/smoothness/styles.css +++ /dev/null @@ -1,317 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1000px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - background: #cEcCcC; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1000px; - max-width: 1800px; - height: 150px; - background: #656363; - color: #f1f1f1; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #000; - background: #EEECEC; - height: 100%; - line-height: 1.5; -} - -a { - color: #434141; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #000; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #cEcCcC; - color: #000; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#500; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/themes/smoothness/switchery.css b/app/assets/stylesheets/desktop/themes/smoothness/switchery.css deleted file mode 100644 index 1f884e77..00000000 --- a/app/assets/stylesheets/desktop/themes/smoothness/switchery.css +++ /dev/null @@ -1,69 +0,0 @@ -/* - * - * Main stylesheet for Switchery. - * http://abpetkov.github.io/switchery/ - * - */ - -/* Switchery defaults. */ - -.switchery { - background-color: #000; - border: 1px solid #dfdfdf; - border-radius: 20px; - cursor: pointer; - display: inline-block; - height: 30px; - position: relative; - vertical-align: middle; - width: 50px; - - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: content-box; - background-clip: content-box; -} -element.style { - background-color: #fff; - border-color: #fff; - box-shadow: 0 0 0 16px #ddd inset; - transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s; -} -.switchery > small { - background: #fff; - border-radius: 100%; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - height: 30px; - position: absolute; - top: 0; - width: 30px; -} - -/* Switchery sizes. */ - -.switchery-small { - border-radius: 20px; - height: 20px; - width: 33px; -} - -.switchery-small > small { - height: 20px; - width: 20px; -} - -.switchery-large { - border-radius: 40px; - height: 40px; - width: 66px; -} - -.switchery-large > small { - height: 40px; - width: 40px; -} - - diff --git a/app/assets/stylesheets/desktop/themes/smoothness/wclock.css b/app/assets/stylesheets/desktop/themes/smoothness/wclock.css deleted file mode 100644 index 3466c332..00000000 --- a/app/assets/stylesheets/desktop/themes/smoothness/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1800px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/themes/start/application.css b/app/assets/stylesheets/desktop/themes/start/application.css deleted file mode 100644 index c2967639..00000000 --- a/app/assets/stylesheets/desktop/themes/start/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/start - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/themes/start/calendar_styles/highslide.css b/app/assets/stylesheets/desktop/themes/start/calendar_styles/highslide.css deleted file mode 100644 index 3d07e1bc..00000000 --- a/app/assets/stylesheets/desktop/themes/start/calendar_styles/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #EEEDC2; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/themes/start/login.css b/app/assets/stylesheets/desktop/themes/start/login.css deleted file mode 100644 index 80de561b..00000000 --- a/app/assets/stylesheets/desktop/themes/start/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #E2EEF4; - text-shadow: 1px 1px 1px black; - background: #69818E; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #001; - background: #D7EAF5; - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/themes/start/paginate_page.css b/app/assets/stylesheets/desktop/themes/start/paginate_page.css deleted file mode 100644 index 68464f5d..00000000 --- a/app/assets/stylesheets/desktop/themes/start/paginate_page.css +++ /dev/null @@ -1,132 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #B5E3FF; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #11A2F0; - font-style: normal; - font-weight: bold; - background-color: #D8ECF7; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #007; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #11A2F0; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #A4D9F5; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - .apple_pagination .page_info { - background: #B5E3FF; - color: #0D2188; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #0D2188; - background: #B9DFF2; - padding: 0.1em 0.25em; } - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/themes/start/red.css b/app/assets/stylesheets/desktop/themes/start/red.css deleted file mode 100644 index 831dd2b1..00000000 --- a/app/assets/stylesheets/desktop/themes/start/red.css +++ /dev/null @@ -1,65 +0,0 @@ -/* - A red, white, and grey theme. - - AUTHOR: Geoffrey Grosenbach http://nubyonrails.com -*/ - -.calendar { - margin: auto; -} - -.monthName th { - font-weight: normal; - text-align: right; - padding-top: 1em; - padding-bottom: 0.7em; -} - -.dayName th { - font-size: 0.7em; - padding-top: 0.6em; - padding-bottom: 0.3em; - background-color: #303030; - color: white; -} - -.otherMonth, .day, .specialDay { - padding: 0.7em 1em; - border-right: 1px solid white; - -} - -.otherMonth { - color: #eeeeee; - background-color: #505060; -} -.weekendDay { - background-color: #aa0000; -} - -.day, .specialDay { - text-align: center; - border-bottom: 1px dotted #bbbbbb; -} - -.specialDay { - background-color: #d10a21; - color: white; -} -.specialDay a, .specialDay a:visited, .specialDay a:hover { - color: white; - text-decoration: none; - padding: 1em; -} -.specialDay a:hover { - color: white; - background-color: black; -} -.today { - background-color: #1e90ff; - color: white; -} -/*.weekNumber { - background-color: #700; -} -*/ \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/themes/start/styles.css b/app/assets/stylesheets/desktop/themes/start/styles.css deleted file mode 100644 index 4c5fd11d..00000000 --- a/app/assets/stylesheets/desktop/themes/start/styles.css +++ /dev/null @@ -1,340 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1000px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - color: #CAE2F1; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSI3MiUiIHN0b3AtY29sb3I9IiNmZmU2ODAiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmVmY2VhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==);background: -moz-linear-gradient(top, #ffe680 72%, #F7F1DF 100%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(62%,#056895), color-stop(90%,#d8f0fb), color-stop(100%,#fff)); -/* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #056895 62%,#d8f0fb 90%,#fff 100%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #056895 62%,#d8f0fb 90%,#fff 100%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #056895 62%,#d8f0fb 90%,#fff 100%); /* IE10+ */ -background: linear-gradient(to bottom, #056895 62%,#d8f0fb 90%,#fff 100%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#056895', endColorstr='#fff',GradientType=0 ); /* IE6-8 */ -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; - background: #B5E3FF; - height: 100%; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -90px auto 0; - min-width: 1000px; - max-width: 1800px; - height: 150px; - color: #93CCF0; - position: relative; - text-align: center; -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmNlYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjI4JSIgc3RvcC1jb2xvcj0iIzVmMzYxMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=); -background: -moz-linear-gradient(top, #fff 0%, #031F31 43%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(43%,#031F31)); /* - Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #fff 0%,#031F31 43%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #fff 0%,#031F31 43%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #fff 0%,#031F31 43%); /* IE10+ */ -background: linear-gradient(to bottom, #fff 0%,#031F31 43%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff', endColorstr='#031F31',GradientType=0 ); /* IE6-8 */ - -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #003; - background: #fff; - height: 100%; - line-height: 1.5; -} - -a { - color: #1424B3; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #01090D; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #B9DFF2; - color: #01090D; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#00d; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} - -.menu-top{ - margin-top: 50px; -} - -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/themes/start/switchery.css b/app/assets/stylesheets/desktop/themes/start/switchery.css deleted file mode 100644 index 1f884e77..00000000 --- a/app/assets/stylesheets/desktop/themes/start/switchery.css +++ /dev/null @@ -1,69 +0,0 @@ -/* - * - * Main stylesheet for Switchery. - * http://abpetkov.github.io/switchery/ - * - */ - -/* Switchery defaults. */ - -.switchery { - background-color: #000; - border: 1px solid #dfdfdf; - border-radius: 20px; - cursor: pointer; - display: inline-block; - height: 30px; - position: relative; - vertical-align: middle; - width: 50px; - - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: content-box; - background-clip: content-box; -} -element.style { - background-color: #fff; - border-color: #fff; - box-shadow: 0 0 0 16px #ddd inset; - transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s; -} -.switchery > small { - background: #fff; - border-radius: 100%; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - height: 30px; - position: absolute; - top: 0; - width: 30px; -} - -/* Switchery sizes. */ - -.switchery-small { - border-radius: 20px; - height: 20px; - width: 33px; -} - -.switchery-small > small { - height: 20px; - width: 20px; -} - -.switchery-large { - border-radius: 40px; - height: 40px; - width: 66px; -} - -.switchery-large > small { - height: 40px; - width: 40px; -} - - diff --git a/app/assets/stylesheets/desktop/themes/start/wclock.css b/app/assets/stylesheets/desktop/themes/start/wclock.css deleted file mode 100644 index 3466c332..00000000 --- a/app/assets/stylesheets/desktop/themes/start/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1800px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/themes/sunny/application.css b/app/assets/stylesheets/desktop/themes/sunny/application.css deleted file mode 100644 index f67eda32..00000000 --- a/app/assets/stylesheets/desktop/themes/sunny/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/sunny - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/themes/sunny/calendar_styles/red.css b/app/assets/stylesheets/desktop/themes/sunny/calendar_styles/red.css deleted file mode 100644 index 831dd2b1..00000000 --- a/app/assets/stylesheets/desktop/themes/sunny/calendar_styles/red.css +++ /dev/null @@ -1,65 +0,0 @@ -/* - A red, white, and grey theme. - - AUTHOR: Geoffrey Grosenbach http://nubyonrails.com -*/ - -.calendar { - margin: auto; -} - -.monthName th { - font-weight: normal; - text-align: right; - padding-top: 1em; - padding-bottom: 0.7em; -} - -.dayName th { - font-size: 0.7em; - padding-top: 0.6em; - padding-bottom: 0.3em; - background-color: #303030; - color: white; -} - -.otherMonth, .day, .specialDay { - padding: 0.7em 1em; - border-right: 1px solid white; - -} - -.otherMonth { - color: #eeeeee; - background-color: #505060; -} -.weekendDay { - background-color: #aa0000; -} - -.day, .specialDay { - text-align: center; - border-bottom: 1px dotted #bbbbbb; -} - -.specialDay { - background-color: #d10a21; - color: white; -} -.specialDay a, .specialDay a:visited, .specialDay a:hover { - color: white; - text-decoration: none; - padding: 1em; -} -.specialDay a:hover { - color: white; - background-color: black; -} -.today { - background-color: #1e90ff; - color: white; -} -/*.weekNumber { - background-color: #700; -} -*/ \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/themes/sunny/highslide.css b/app/assets/stylesheets/desktop/themes/sunny/highslide.css deleted file mode 100644 index 3d07e1bc..00000000 --- a/app/assets/stylesheets/desktop/themes/sunny/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #EEEDC2; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/themes/sunny/login.css b/app/assets/stylesheets/desktop/themes/sunny/login.css deleted file mode 100644 index bfae04c3..00000000 --- a/app/assets/stylesheets/desktop/themes/sunny/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #956A5D; - text-shadow: 1px 1px 1px black; - background: #BAAB8D; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #100; - background: #F5ECCF; - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/themes/sunny/paginate_page.css b/app/assets/stylesheets/desktop/themes/sunny/paginate_page.css deleted file mode 100644 index b0f6fbc7..00000000 --- a/app/assets/stylesheets/desktop/themes/sunny/paginate_page.css +++ /dev/null @@ -1,132 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #EEEDC2; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #fff; } - .apple_pagination .current { - color: #EEEDC2; - font-style: normal; - font-weight: bold; - background-color: #fb0; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.4; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #700; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #f30; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - .apple_pagination .page_info { - background: #EEEDC2; - color: #a00; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #900; - background: #EEEDC2; - padding: 0.1em 0.25em; } - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/themes/sunny/styles.css b/app/assets/stylesheets/desktop/themes/sunny/styles.css deleted file mode 100644 index 2c14c2b5..00000000 --- a/app/assets/stylesheets/desktop/themes/sunny/styles.css +++ /dev/null @@ -1,335 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1000px; - max-width: 1900px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; - -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSI3MiUiIHN0b3AtY29sb3I9IiNmZmU2ODAiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmVmY2VhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==); -background: -moz-linear-gradient(top, #ffe680 72%, #F7F1DF 100%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(72%,#ffe680), color-stop(100%,#F7F1DF)); /* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #ffe680 72%,#F7F1DF 100%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #ffe680 72%,#F7F1DF 100%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #ffe680 72%,#F7F1DF 100%); /* IE10+ */ -background: linear-gradient(to bottom, #ffe680 72%,#F7F1DF 100%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffe680', endColorstr='#F7F1DF',GradientType=0 ); /* IE6-8 */ -} - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -80px auto 0; - min-width: 1000px; - max-width: 1900px; - height: 200px; - color: #E6CD7C; - position: relative; - text-align: center; - vertical-align:bottom; - padding-top:120px; -/* IE9 SVG, needs conditional override of 'filter' to 'none' */ -background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmNlYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjI4JSIgc3RvcC1jb2xvcj0iIzVmMzYxMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=); -background: -moz-linear-gradient(top, #F7F1DF 0%, #5f3611 43%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F7F1DF), color-stop(43%,#5f3611)); /* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #F7F1DF 0%,#5f3611 43%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #F7F1DF 0%,#5f3611 43%); /* Opera 11.10+ */ -background: -ms-linear-gradient(top, #F7F1DF 0%,#5f3611 43%); /* IE10+ */ -background: linear-gradient(to bottom, #F7F1DF 0%,#5f3611 43%); /* W3C */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F7F1DF', endColorstr='#5f3611',GradientType=0 ); /* IE6-8 */ -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #500; - background: #F7F1DF; - height: 100%; - line-height: 1.5; -} - -a { - color: #f20; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #500; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #F5D87A; - color: #000; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#500; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/themes/sunny/switchery.css b/app/assets/stylesheets/desktop/themes/sunny/switchery.css deleted file mode 100644 index 1f884e77..00000000 --- a/app/assets/stylesheets/desktop/themes/sunny/switchery.css +++ /dev/null @@ -1,69 +0,0 @@ -/* - * - * Main stylesheet for Switchery. - * http://abpetkov.github.io/switchery/ - * - */ - -/* Switchery defaults. */ - -.switchery { - background-color: #000; - border: 1px solid #dfdfdf; - border-radius: 20px; - cursor: pointer; - display: inline-block; - height: 30px; - position: relative; - vertical-align: middle; - width: 50px; - - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: content-box; - background-clip: content-box; -} -element.style { - background-color: #fff; - border-color: #fff; - box-shadow: 0 0 0 16px #ddd inset; - transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s; -} -.switchery > small { - background: #fff; - border-radius: 100%; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - height: 30px; - position: absolute; - top: 0; - width: 30px; -} - -/* Switchery sizes. */ - -.switchery-small { - border-radius: 20px; - height: 20px; - width: 33px; -} - -.switchery-small > small { - height: 20px; - width: 20px; -} - -.switchery-large { - border-radius: 40px; - height: 40px; - width: 66px; -} - -.switchery-large > small { - height: 40px; - width: 40px; -} - - diff --git a/app/assets/stylesheets/desktop/themes/sunny/wclock.css b/app/assets/stylesheets/desktop/themes/sunny/wclock.css deleted file mode 100644 index e13aa8d3..00000000 --- a/app/assets/stylesheets/desktop/themes/sunny/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1900px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/themes/swanky-purse/application.css b/app/assets/stylesheets/desktop/themes/swanky-purse/application.css deleted file mode 100644 index e0152f6b..00000000 --- a/app/assets/stylesheets/desktop/themes/swanky-purse/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/swanky-purse - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/themes/swanky-purse/calendar_styles/red.css b/app/assets/stylesheets/desktop/themes/swanky-purse/calendar_styles/red.css deleted file mode 100644 index 831dd2b1..00000000 --- a/app/assets/stylesheets/desktop/themes/swanky-purse/calendar_styles/red.css +++ /dev/null @@ -1,65 +0,0 @@ -/* - A red, white, and grey theme. - - AUTHOR: Geoffrey Grosenbach http://nubyonrails.com -*/ - -.calendar { - margin: auto; -} - -.monthName th { - font-weight: normal; - text-align: right; - padding-top: 1em; - padding-bottom: 0.7em; -} - -.dayName th { - font-size: 0.7em; - padding-top: 0.6em; - padding-bottom: 0.3em; - background-color: #303030; - color: white; -} - -.otherMonth, .day, .specialDay { - padding: 0.7em 1em; - border-right: 1px solid white; - -} - -.otherMonth { - color: #eeeeee; - background-color: #505060; -} -.weekendDay { - background-color: #aa0000; -} - -.day, .specialDay { - text-align: center; - border-bottom: 1px dotted #bbbbbb; -} - -.specialDay { - background-color: #d10a21; - color: white; -} -.specialDay a, .specialDay a:visited, .specialDay a:hover { - color: white; - text-decoration: none; - padding: 1em; -} -.specialDay a:hover { - color: white; - background-color: black; -} -.today { - background-color: #1e90ff; - color: white; -} -/*.weekNumber { - background-color: #700; -} -*/ \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/themes/swanky-purse/highslide.css b/app/assets/stylesheets/desktop/themes/swanky-purse/highslide.css deleted file mode 100644 index dc26a6ce..00000000 --- a/app/assets/stylesheets/desktop/themes/swanky-purse/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #111; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/themes/swanky-purse/login.css b/app/assets/stylesheets/desktop/themes/swanky-purse/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/desktop/themes/swanky-purse/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/themes/swanky-purse/paginate_page.css b/app/assets/stylesheets/desktop/themes/swanky-purse/paginate_page.css deleted file mode 100644 index b27d2535..00000000 --- a/app/assets/stylesheets/desktop/themes/swanky-purse/paginate_page.css +++ /dev/null @@ -1,121 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #48140C; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #4A3215; - color: B0D8F7; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #B0D8F7; - background: #4A3215; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #4A3215; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #DFD789; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #B3AD64; - display: inline-block; - width: 1.4em; - height: 1.4em; - line-height: 1.5; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #DFD789; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #98CCEC; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #79743E; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/themes/swanky-purse/styles.css b/app/assets/stylesheets/desktop/themes/swanky-purse/styles.css deleted file mode 100644 index 710d8cf5..00000000 --- a/app/assets/stylesheets/desktop/themes/swanky-purse/styles.css +++ /dev/null @@ -1,310 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1200px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1200px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #B0D8F7; - background: #4A3215; - height: 100%; - line-height: 1.5; -} - -a { - color: #DFD789; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #fff; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #39250C; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/themes/swanky-purse/switchery.css b/app/assets/stylesheets/desktop/themes/swanky-purse/switchery.css deleted file mode 100644 index 74c1da5b..00000000 --- a/app/assets/stylesheets/desktop/themes/swanky-purse/switchery.css +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Main stylesheet for Switchery. - * http://abpetkov.github.io/switchery/ - * - */ - -/* Switchery defaults. */ - -.switchery { - background-color: #fff; - border: 1px solid #dfdfdf; - border-radius: 20px; - cursor: pointer; - display: inline-block; - height: 30px; - position: relative; - vertical-align: middle; - width: 50px; - - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: content-box; - background-clip: content-box; -} - -.switchery > small { - background: #fff; - border-radius: 100%; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - height: 30px; - position: absolute; - top: 0; - width: 30px; -} - -/* Switchery sizes. */ - -.switchery-small { - border-radius: 20px; - height: 20px; - width: 33px; -} - -.switchery-small > small { - height: 20px; - width: 20px; -} - -.switchery-large { - border-radius: 40px; - height: 40px; - width: 66px; -} - -.switchery-large > small { - height: 40px; - width: 40px; -} - - diff --git a/app/assets/stylesheets/desktop/themes/swanky-purse/wclock.css b/app/assets/stylesheets/desktop/themes/swanky-purse/wclock.css deleted file mode 100644 index 3466c332..00000000 --- a/app/assets/stylesheets/desktop/themes/swanky-purse/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1800px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/themes/ui-darkness/application.css b/app/assets/stylesheets/desktop/themes/ui-darkness/application.css deleted file mode 100644 index 3a898ee0..00000000 --- a/app/assets/stylesheets/desktop/themes/ui-darkness/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/ui-darkness - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/themes/ui-darkness/calendar_styles/red.css b/app/assets/stylesheets/desktop/themes/ui-darkness/calendar_styles/red.css deleted file mode 100644 index 831dd2b1..00000000 --- a/app/assets/stylesheets/desktop/themes/ui-darkness/calendar_styles/red.css +++ /dev/null @@ -1,65 +0,0 @@ -/* - A red, white, and grey theme. - - AUTHOR: Geoffrey Grosenbach http://nubyonrails.com -*/ - -.calendar { - margin: auto; -} - -.monthName th { - font-weight: normal; - text-align: right; - padding-top: 1em; - padding-bottom: 0.7em; -} - -.dayName th { - font-size: 0.7em; - padding-top: 0.6em; - padding-bottom: 0.3em; - background-color: #303030; - color: white; -} - -.otherMonth, .day, .specialDay { - padding: 0.7em 1em; - border-right: 1px solid white; - -} - -.otherMonth { - color: #eeeeee; - background-color: #505060; -} -.weekendDay { - background-color: #aa0000; -} - -.day, .specialDay { - text-align: center; - border-bottom: 1px dotted #bbbbbb; -} - -.specialDay { - background-color: #d10a21; - color: white; -} -.specialDay a, .specialDay a:visited, .specialDay a:hover { - color: white; - text-decoration: none; - padding: 1em; -} -.specialDay a:hover { - color: white; - background-color: black; -} -.today { - background-color: #1e90ff; - color: white; -} -/*.weekNumber { - background-color: #700; -} -*/ \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/themes/ui-darkness/highslide.css b/app/assets/stylesheets/desktop/themes/ui-darkness/highslide.css deleted file mode 100644 index dc26a6ce..00000000 --- a/app/assets/stylesheets/desktop/themes/ui-darkness/highslide.css +++ /dev/null @@ -1,889 +0,0 @@ -/** -* @file: highslide.css -* @version: 4.1.13 -*/ -.highslide-container div { - font-family: Verdana, Helvetica; - font-size: 10pt; -} -.highslide-container table { - background: none; -} -.highslide { - outline: none; - text-decoration: none; -} -.highslide img { - border: 2px solid silver; -} -.highslide:hover img { - border-color: gray; -} -.highslide-active-anchor img { - visibility: hidden; -} -.highslide-gallery .highslide-active-anchor img { - border-color: black; - visibility: visible; - cursor: default; -} -.highslide-image { - border-width: 2px; - border-style: solid; - border-color: white; -} -.highslide-wrapper, .highslide-outline { - background: white; -} -.glossy-dark { - background: #111; -} - -.highslide-image-blur { -} -.highslide-number { - font-weight: bold; - color: gray; - font-size: .9em; -} -.highslide-caption { - display: none; - font-size: 1em; - padding: 5px; - /*background: white;*/ -} -.highslide-heading { - display: none; - font-weight: bold; - margin: 0.4em; -} -.highslide-dimming { - /*position: absolute;*/ - background: black; -} -a.highslide-full-expand { - background: url(/images/highslide/fullexpand.gif) no-repeat; - display: block; - margin: 0 10px 10px 0; - width: 34px; - height: 34px; -} -.highslide-loading { - display: block; - color: black; - font-size: 9px; - font-weight: bold; - text-transform: uppercase; - text-decoration: none; - padding: 3px; - border: 1px solid white; - background-color: white; - padding-left: 22px; - background-image: url(/images/highslide/loader.white.gif); - background-repeat: no-repeat; - background-position: 3px 1px; -} -a.highslide-credits, -a.highslide-credits i { - padding: 2px; - color: silver; - text-decoration: none; - font-size: 10px; -} -a.highslide-credits:hover, -a.highslide-credits:hover i { - color: white; - background-color: gray; -} -.highslide-move, .highslide-move * { - cursor: move; -} - -.highslide-viewport { - display: none; - position: fixed; - width: 100%; - height: 100%; - z-index: 1; - background: none; - left: 0; - top: 0; -} -.highslide-overlay { - display: none; -} -.hidden-container { - display: none; -} -/* Example of a semitransparent, offset closebutton */ -.closebutton { - position: relative; - top: -15px; - left: 15px; - width: 30px; - height: 30px; - cursor: pointer; - background: url(/images/highslide/close.png); - /* NOTE! For IE6, you also need to update the highslide-ie6.css file. */ -} - -/*****************************************************************************/ -/* Thumbnail boxes for the galleries. */ -/* Remove these if you are not using a gallery. */ -/*****************************************************************************/ -.highslide-gallery ul { - list-style-type: none; - margin: 0; - padding: 0; -} -.highslide-gallery ul li { - display: block; - position: relative; - float: left; - width: 106px; - height: 106px; - border: 1px solid silver; - background: #ededed; - margin: 2px; - padding: 0; - line-height: 0; - overflow: hidden; -} -.highslide-gallery ul a { - position: absolute; - top: 50%; - left: 50%; -} -.highslide-gallery ul img { - position: relative; - top: -50%; - left: -50%; -} -html>/**/body .highslide-gallery ul li { - display: table; - text-align: center; -} -html>/**/body .highslide-gallery ul li { - text-align: center; -} -html>/**/body .highslide-gallery ul a { - position: static; - display: table-cell; - vertical-align: middle; -} -html>/**/body .highslide-gallery ul img { - position: static; -} - -/*****************************************************************************/ -/* Controls for the galleries. */ -/* Remove these if you are not using a gallery */ -/*****************************************************************************/ -.highslide-controls { - width: 195px; - height: 40px; - background: url(/images/highslide/controlbar-white.gif) 0 -90px no-repeat; - margin: 20px 15px 10px 0; -} -.highslide-controls ul { - position: relative; - left: 15px; - height: 40px; - list-style: none; - margin: 0; - padding: 0; - background: url(/images/highslide/controlbar-white.gif) right -90px no-repeat; - -} -.highslide-controls li { - float: left; - padding: 5px 0; - margin:0; - list-style: none; -} -.highslide-controls a { - background-image: url(/images/highslide/controlbar-white.gif); - display: block; - float: left; - height: 30px; - width: 30px; - outline: none; -} -.highslide-controls a.disabled { - cursor: default; -} -.highslide-controls a.disabled span { - cursor: default; -} -.highslide-controls a span { - /* hide the text for these graphic buttons */ - display: none; - cursor: pointer; -} - - -/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */ -.highslide-controls .highslide-previous a { - background-position: 0 0; -} -.highslide-controls .highslide-previous a:hover { - background-position: 0 -30px; -} -.highslide-controls .highslide-previous a.disabled { - background-position: 0 -60px !important; -} -.highslide-controls .highslide-play a { - background-position: -30px 0; -} -.highslide-controls .highslide-play a:hover { - background-position: -30px -30px; -} -.highslide-controls .highslide-play a.disabled { - background-position: -30px -60px !important; -} -.highslide-controls .highslide-pause a { - background-position: -60px 0; -} -.highslide-controls .highslide-pause a:hover { - background-position: -60px -30px; -} -.highslide-controls .highslide-next a { - background-position: -90px 0; -} -.highslide-controls .highslide-next a:hover { - background-position: -90px -30px; -} -.highslide-controls .highslide-next a.disabled { - background-position: -90px -60px !important; -} -.highslide-controls .highslide-move a { - background-position: -120px 0; -} -.highslide-controls .highslide-move a:hover { - background-position: -120px -30px; -} -.highslide-controls .highslide-full-expand a { - background-position: -150px 0; -} -.highslide-controls .highslide-full-expand a:hover { - background-position: -150px -30px; -} -.highslide-controls .highslide-full-expand a.disabled { - background-position: -150px -60px !important; -} -.highslide-controls .highslide-close a { - background-position: -180px 0; -} -.highslide-controls .highslide-close a:hover { - background-position: -180px -30px; -} - -/*****************************************************************************/ -/* Styles for the HTML popups */ -/* Remove these if you are not using Highslide HTML */ -/*****************************************************************************/ -.highslide-maincontent { - display: none; -} -.highslide-html { - background-color: #111; -} -.mobile .highslide-html { - border: 1px solid silver; -} -.highslide-html-content { - display: none; - width: 400px; - padding: 0 5px 5px 5px; -} -.highslide-header { - padding-bottom: 5px; -} -.highslide-header ul { - margin: 0; - padding: 0; - text-align: right; -} -.highslide-header ul li { - display: inline; - padding-left: 1em; -} -.highslide-header ul li.highslide-previous, .highslide-header ul li.highslide-next { - display: none; -} -.highslide-header a { - font-weight: bold; - color: gray; - text-transform: uppercase; - text-decoration: none; -} -.highslide-header a:hover { - color: black; -} -.highslide-header .highslide-move a { - cursor: move; -} -.highslide-footer { - height: 16px; -} -.highslide-footer .highslide-resize { - display: block; - float: right; - margin-top: 5px; - height: 11px; - width: 11px; - background: url(/images/highslide/resize.gif) no-repeat; -} -.highslide-footer .highslide-resize span { - display: none; -} -.highslide-body { -} -.highslide-resize { - cursor: nw-resize; -} - -/*****************************************************************************/ -/* Styles for the Individual wrapper class names. */ -/* See www.highslide.com/ref/hs.wrapperClassName */ -/* You can safely remove the class name themes you don't use */ -/*****************************************************************************/ - -/* hs.wrapperClassName = 'draggable-header' */ -.draggable-header .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.draggable-header .highslide-heading { - position: absolute; - margin: 2px 0.4em; -} - -.draggable-header .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.draggable-header .highslide-header .highslide-move * { - display: none; -} -.draggable-header .highslide-header .highslide-close { - position: absolute; - right: 2px; - top: 2px; - z-index: 5; - padding: 0; -} -.draggable-header .highslide-header .highslide-close a { - display: block; - height: 16px; - width: 16px; - background-image: url(/images/highslide/closeX.png); -} -.draggable-header .highslide-header .highslide-close a:hover { - background-position: 0 16px; -} -.draggable-header .highslide-header .highslide-close span { - display: none; -} -.draggable-header .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'titlebar' */ -.titlebar .highslide-header { - height: 18px; - border-bottom: 1px solid #dddddd; -} -.titlebar .highslide-heading { - position: absolute; - width: 90%; - margin: 1px 0 1px 5px; - color: #666666; -} - -.titlebar .highslide-header .highslide-move { - cursor: move; - display: block; - height: 16px; - position: absolute; - right: 24px; - top: 0; - width: 100%; - z-index: 1; -} -.titlebar .highslide-header .highslide-move * { - display: none; -} -.titlebar .highslide-header li { - position: relative; - top: 3px; - z-index: 2; - padding: 0 0 0 1em; -} -.titlebar .highslide-maincontent { - padding-top: 1em; -} - -/* hs.wrapperClassName = 'no-footer' */ -.no-footer .highslide-footer { - display: none; -} - -/* hs.wrapperClassName = 'wide-border' */ -.wide-border { - background: white; -} -.wide-border .highslide-image { - border-width: 10px; -} -.wide-border .highslide-caption { - padding: 0 10px 10px 10px; -} - -/* hs.wrapperClassName = 'borderless' */ -.borderless .highslide-image { - border: none; -} -.borderless .highslide-caption { - border-bottom: 1px solid white; - border-top: 1px solid white; - background: silver; -} - -/* hs.wrapperClassName = 'outer-glow' */ -.outer-glow { - background: #444; -} -.outer-glow .highslide-image { - border: 5px solid #444444; -} -.outer-glow .highslide-caption { - border: 5px solid #444444; - border-top: none; - padding: 5px; - background-color: gray; -} - -/* hs.wrapperClassName = 'colored-border' */ -.colored-border { - background: white; -} -.colored-border .highslide-image { - border: 2px solid green; -} -.colored-border .highslide-caption { - border: 2px solid green; - border-top: none; -} - -/* hs.wrapperClassName = 'dark' */ -.dark { - background: #111; -} -.dark .highslide-image { - border-color: black black #202020 black; - background: gray; -} -.dark .highslide-caption { - color: white; - background: #111; -} -.dark .highslide-controls, -.dark .highslide-controls ul, -.dark .highslide-controls a { - background-image: url(/images/highslide/controlbar-black-border.gif); -} - -/* hs.wrapperClassName = 'floating-caption' */ -.floating-caption .highslide-caption { - position: absolute; - padding: 1em 0 0 0; - background: none; - color: white; - border: none; - font-weight: bold; -} - -/* hs.wrapperClassName = 'controls-in-heading' */ -.controls-in-heading .highslide-heading { - color: gray; - font-weight: bold; - height: 20px; - overflow: hidden; - cursor: default; - padding: 0 0 0 22px; - margin: 0; - background: url(/images/highslide/icon.gif) no-repeat 0 1px; -} -.controls-in-heading .highslide-controls { - width: 105px; - height: 20px; - position: relative; - margin: 0; - top: -23px; - left: 7px; - background: none; -} -.controls-in-heading .highslide-controls ul { - position: static; - height: 20px; - background: none; -} -.controls-in-heading .highslide-controls li { - padding: 0; -} -.controls-in-heading .highslide-controls a { - background-image: url(/images/highslide/controlbar-white-small.gif); - height: 20px; - width: 20px; -} - -.controls-in-heading .highslide-controls .highslide-move { - display: none; -} - -.controls-in-heading .highslide-controls .highslide-previous a { - background-position: 0 0; -} -.controls-in-heading .highslide-controls .highslide-previous a:hover { - background-position: 0 -20px; -} -.controls-in-heading .highslide-controls .highslide-previous a.disabled { - background-position: 0 -40px !important; -} -.controls-in-heading .highslide-controls .highslide-play a { - background-position: -20px 0; -} -.controls-in-heading .highslide-controls .highslide-play a:hover { - background-position: -20px -20px; -} -.controls-in-heading .highslide-controls .highslide-play a.disabled { - background-position: -20px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-pause a { - background-position: -40px 0; -} -.controls-in-heading .highslide-controls .highslide-pause a:hover { - background-position: -40px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a { - background-position: -60px 0; -} -.controls-in-heading .highslide-controls .highslide-next a:hover { - background-position: -60px -20px; -} -.controls-in-heading .highslide-controls .highslide-next a.disabled { - background-position: -60px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-full-expand a { - background-position: -100px 0; -} -.controls-in-heading .highslide-controls .highslide-full-expand a:hover { - background-position: -100px -20px; -} -.controls-in-heading .highslide-controls .highslide-full-expand a.disabled { - background-position: -100px -40px !important; -} -.controls-in-heading .highslide-controls .highslide-close a { - background-position: -120px 0; -} -.controls-in-heading .highslide-controls .highslide-close a:hover { - background-position: -120px -20px; -} - -/*****************************************************************************/ -/* Styles for text based controls. */ -/* You can safely remove this if you don't use text based controls */ -/*****************************************************************************/ - -.text-controls .highslide-controls { - width: auto; - height: auto; - margin: 0; - text-align: center; - background: none; -} -.text-controls ul { - position: static; - background: none; - height: auto; - left: 0; -} -.text-controls .highslide-move { - display: none; -} -.text-controls li { - background-image: url(/images/highslide/controlbar-text-buttons.png); - background-position: right top !important; - padding: 0; - margin-left: 15px; - display: block; - width: auto; -} -.text-controls a { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - background-position: left top !important; - position: relative; - left: -10px; - display: block; - width: auto; - height: auto; - text-decoration: none !important; -} -.text-controls a span { - background: url(/images/highslide/controlbar-text-buttons.png) no-repeat; - margin: 1px 2px 1px 10px; - display: block; - min-width: 4em; - height: 18px; - line-height: 18px; - padding: 1px 0 1px 18px; - color: #333; - font-family: "Trebuchet MS", Arial, sans-serif; - font-size: 12px; - font-weight: bold; - white-space: nowrap; -} -.text-controls .highslide-next { - margin-right: 1em; -} -.text-controls .highslide-full-expand a span { - min-width: 0; - margin: 1px 0; - padding: 1px 0 1px 10px; -} -.text-controls .highslide-close a span { - min-width: 0; -} -.text-controls a:hover span { - color: black; -} -.text-controls a.disabled span { - color: #999; -} - -.text-controls .highslide-previous span { - background-position: 0 -40px; -} -.text-controls .highslide-previous a.disabled { - background-position: left top !important; -} -.text-controls .highslide-previous a.disabled span { - background-position: 0 -140px; -} -.text-controls .highslide-play span { - background-position: 0 -60px; -} -.text-controls .highslide-play a.disabled { - background-position: left top !important; -} -.text-controls .highslide-play a.disabled span { - background-position: 0 -160px; -} -.text-controls .highslide-pause span { - background-position: 0 -80px; -} -.text-controls .highslide-next span { - background-position: 0 -100px; -} -.text-controls .highslide-next a.disabled { - background-position: left top !important; -} -.text-controls .highslide-next a.disabled span { - background-position: 0 -200px; -} -.text-controls .highslide-full-expand span { - background: none; -} -.text-controls .highslide-full-expand a.disabled { - background-position: left top !important; -} -.text-controls .highslide-close span { - background-position: 0 -120px; -} - - -/*****************************************************************************/ -/* Styles for the thumbstrip. */ -/* See www.highslide.com/ref/hs.addSlideshow */ -/* You can safely remove this if you don't use a thumbstrip */ -/*****************************************************************************/ - -.highslide-thumbstrip { - height: 100%; - direction: ltr; -} -.highslide-thumbstrip div { - overflow: hidden; -} -.highslide-thumbstrip table { - position: relative; - padding: 0; - border-collapse: collapse; -} -.highslide-thumbstrip td { - padding: 1px; - /*text-align: center;*/ -} -.highslide-thumbstrip a { - outline: none; -} -.highslide-thumbstrip img { - display: block; - border: 1px solid gray; - margin: 0 auto; -} -.highslide-thumbstrip .highslide-active-anchor img { - visibility: visible; -} -.highslide-thumbstrip .highslide-marker { - position: absolute; - width: 0; - height: 0; - border-width: 0; - border-style: solid; - border-color: transparent; /* change this to actual background color in highslide-ie6.css */ -} -.highslide-thumbstrip-horizontal div { - width: auto; - /* width: 100% breaks in small strips in IE */ -} -.highslide-thumbstrip-horizontal .highslide-scroll-up { - display: none; - position: absolute; - top: 3px; - left: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-up div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) left center no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down { - display: none; - position: absolute; - top: 3px; - right: 3px; - width: 25px; - height: 42px; -} -.highslide-thumbstrip-horizontal .highslide-scroll-down div { - margin-bottom: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) center right no-repeat; - height: 42px; -} -.highslide-thumbstrip-horizontal table { - margin: 2px 0 10px 0; -} -.highslide-viewport .highslide-thumbstrip-horizontal table { - margin-left: 10px; -} -.highslide-thumbstrip-horizontal img { - width: auto; - height: 40px; -} -.highslide-thumbstrip-horizontal .highslide-marker { - top: 47px; - border-left-width: 6px; - border-right-width: 6px; - border-bottom: 6px solid gray; -} -.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - margin-left: 10px; -} -.dark .highslide-thumbstrip-horizontal .highslide-marker, .highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker { - border-bottom-color: white !important; -} - -.highslide-thumbstrip-vertical-overlay { - overflow: hidden !important; -} -.highslide-thumbstrip-vertical div { - height: 100%; -} -.highslide-thumbstrip-vertical a { - display: block; -} -.highslide-thumbstrip-vertical .highslide-scroll-up { - display: none; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-up div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) top center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down { - display: none; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 25px; -} -.highslide-thumbstrip-vertical .highslide-scroll-down div { - margin-left: 10px; - cursor: pointer; - background: url(/images/highslide/scrollarrows.png) bottom center no-repeat; - height: 25px; -} -.highslide-thumbstrip-vertical table { - margin: 10px 0 0 10px; -} -.highslide-thumbstrip-vertical img { - width: 60px; /* t=5481 */ -} -.highslide-thumbstrip-vertical .highslide-marker { - left: 0; - margin-top: 8px; - border-top-width: 6px; - border-bottom-width: 6px; - border-left: 6px solid gray; -} -.dark .highslide-thumbstrip-vertical .highslide-marker, .highslide-viewport .highslide-thumbstrip-vertical .highslide-marker { - border-left-color: white; -} - -.highslide-viewport .highslide-thumbstrip-float { - overflow: auto; -} -.highslide-thumbstrip-float ul { - margin: 2px 0; - padding: 0; -} -.highslide-thumbstrip-float li { - display: block; - height: 60px; - margin: 0 2px; - list-style: none; - float: left; -} -.highslide-thumbstrip-float img { - display: inline; - border-color: silver; - max-height: 56px; -} -.highslide-thumbstrip-float .highslide-active-anchor img { - border-color: black; -} -.highslide-thumbstrip-float .highslide-scroll-up div, .highslide-thumbstrip-float .highslide-scroll-down div { - display: none; -} -.highslide-thumbstrip-float .highslide-marker { - display: none; -} diff --git a/app/assets/stylesheets/desktop/themes/ui-darkness/login.css b/app/assets/stylesheets/desktop/themes/ui-darkness/login.css deleted file mode 100644 index cf7f59c3..00000000 --- a/app/assets/stylesheets/desktop/themes/ui-darkness/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #7F4D53; - text-shadow: 1px 1px 1px black; - background: #E9A19B; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: #300; - background: #F6D4D1; - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/themes/ui-darkness/paginate_page.css b/app/assets/stylesheets/desktop/themes/ui-darkness/paginate_page.css deleted file mode 100644 index 9c325687..00000000 --- a/app/assets/stylesheets/desktop/themes/ui-darkness/paginate_page.css +++ /dev/null @@ -1,130 +0,0 @@ -@charset "utf-8"; -.digg_pagination { - cursor: default; - /* self-clearing method: */ } - .digg_pagination a, .digg_pagination span, .digg_pagination em { - padding: 0.2em 0.5em; - display: block; - float: left; - margin-right: 1px; } - .digg_pagination .disabled { - color: #EAD008; - border: 1px solid #B08181; } - .digg_pagination .current { - font-style: normal; - font-weight: bold; - background: #EAB2AA; - color: #FFA07A; - border: 1px solid #A74B3D; } - .digg_pagination a { - text-decoration: none; - color: #F1C160; - border: 1px solid #A65C4B; } - .digg_pagination a:hover, .digg_pagination a:focus { - color: #560E06; - background: #E29417; - border-color: #4A4A16; } - .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .page_info b { - color: #000033; - background: #6aa6ed; - padding: 0.1em 0.25em; } - .digg_pagination:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; } - * html .digg_pagination { - height: 1%; } - *:first-child + html .digg_pagination { - overflow: hidden; } - -.apple_pagination { - background: #010101; - border: 1px solid #79a; - text-align: center; - padding: 1em; - cursor: default; } - .apple_pagination a, .apple_pagination span { - padding: 0.2em 0.3em; } - .apple_pagination .disabled { - color: #D2B48C; } - .apple_pagination .current { - font-style: normal; - font-weight: bold; - background-color: #F4A460; - display: inline-block; - width: 1.5em; - height: 1.5em; - line-height: 1.6; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - .apple_pagination a { - text-decoration: none; - color: #FF8C00; } - .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; - color: #F5DEB3; } - .apple_pagination .page_info { - background: #000000; - color: white; - padding: 0.4em 0.6em; - width: 22em; - margin-bottom: 0.3em; - text-align: center; } - .apple_pagination .page_info b { - color: #551C07; - background: #E9A04C; - padding: 0.1em 0.25em; } - .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { - font-style: normal; - font-weight: bold; - background-color: #a30; - display: inline-block; - width: 1.3em; - height: 1.3em; - line-height:1.2; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } - - -.flickr_pagination { - text-align: center; - padding: 0.3em; - cursor: default; } - .flickr_pagination a, .flickr_pagination span, .flickr_pagination em { - padding: 0.2em 0.5em; } - .flickr_pagination .disabled { - color: #aaaaaa; } - .flickr_pagination .current { - font-style: normal; - font-weight: bold; - color: #ff0084; } - .flickr_pagination a { - border: 1px solid #dddddd; - color: #0063dc; - text-decoration: none; } - .flickr_pagination a:hover, .flickr_pagination a:focus { - border-color: #003366; - background: #0063dc; - color: white; } - .flickr_pagination .page_info { - color: #aaaaaa; - padding-top: 0.8em; } - .flickr_pagination .previous_page, .flickr_pagination .next_page { - border-width: 2px; } - .flickr_pagination .previous_page { - margin-right: 1em; } - .flickr_pagination .next_page { - margin-left: 1em; } diff --git a/app/assets/stylesheets/desktop/themes/ui-darkness/styles.css b/app/assets/stylesheets/desktop/themes/ui-darkness/styles.css deleted file mode 100644 index f1a2ff09..00000000 --- a/app/assets/stylesheets/desktop/themes/ui-darkness/styles.css +++ /dev/null @@ -1,314 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -element.style{ - margin-left:710px; -} - -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1000px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1000px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #FFFACD; - background: #010101; - height: 100%; - line-height: 1.5; -} - -a { - color: #FF8C00; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #CD9B1D; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #311C07; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#FFD700; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/desktop/themes/ui-darkness/switchery.css b/app/assets/stylesheets/desktop/themes/ui-darkness/switchery.css deleted file mode 100644 index 74c1da5b..00000000 --- a/app/assets/stylesheets/desktop/themes/ui-darkness/switchery.css +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Main stylesheet for Switchery. - * http://abpetkov.github.io/switchery/ - * - */ - -/* Switchery defaults. */ - -.switchery { - background-color: #fff; - border: 1px solid #dfdfdf; - border-radius: 20px; - cursor: pointer; - display: inline-block; - height: 30px; - position: relative; - vertical-align: middle; - width: 50px; - - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: content-box; - background-clip: content-box; -} - -.switchery > small { - background: #fff; - border-radius: 100%; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - height: 30px; - position: absolute; - top: 0; - width: 30px; -} - -/* Switchery sizes. */ - -.switchery-small { - border-radius: 20px; - height: 20px; - width: 33px; -} - -.switchery-small > small { - height: 20px; - width: 20px; -} - -.switchery-large { - border-radius: 40px; - height: 40px; - width: 66px; -} - -.switchery-large > small { - height: 40px; - width: 40px; -} - - diff --git a/app/assets/stylesheets/desktop/themes/ui-darkness/wclock.css b/app/assets/stylesheets/desktop/themes/ui-darkness/wclock.css deleted file mode 100644 index 3466c332..00000000 --- a/app/assets/stylesheets/desktop/themes/ui-darkness/wclock.css +++ /dev/null @@ -1,73 +0,0 @@ -.wclock{ - min-width: 1800px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 0px; - zoom: 1; - *display: inline; - _height: 160px; - -} - -.clock-section{ - float:left; - height:150px; - margin-left:2px; - width:140px; -} - -.analog, .digital, .title{ - position: relative; - width: 130px; - list-style: none; -} -.analog { - background: url(/images/wclock/Ciferblat.png); - background-size:cover; -} - -.analog,.analog .hour,.analog .min,.analog .sec{ - height: 130px; -} -.digital{ - height: 30px; - -} -.analog .hour,.analog .min,.analog .sec { - position: absolute; - width: 6px; - top: 0; - left: 60.5px; - padding: 0; -} - -.analog .sec { - background: url(/images/wclock/sechand.png); - background-size:cover; - z-index: 3; -} - -.analog .min { - background: url(/images/wclock/minhand.png); - background-size:cover; - z-index: 2; -} - -.analog .hour { - background: url(/images/wclock/hourhand.png); - background-size:cover; - z-index: 1; -} - -.analog .meridiem { - margin-top: 90px; - font-size: 11px; - font-weight: bold; - display: inline-block; -} -.title { - font-size:12px; - font-weight:bold; -} - diff --git a/app/assets/stylesheets/desktop/untheme/application.css b/app/assets/stylesheets/desktop/untheme/application.css deleted file mode 100644 index ad20e1fc..00000000 --- a/app/assets/stylesheets/desktop/untheme/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/dark-hive - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/desktop/untheme/login.css b/app/assets/stylesheets/desktop/untheme/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/desktop/untheme/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/desktop/untheme/styles.css b/app/assets/stylesheets/desktop/untheme/styles.css deleted file mode 100644 index 46eec1dc..00000000 --- a/app/assets/stylesheets/desktop/untheme/styles.css +++ /dev/null @@ -1,310 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1200px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1200px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #B0D8F7; - background: #090D0E; - height: 100%; - line-height: 1.5; -} - -a { - color: #2D7B9C; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #fff; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #010F15; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/assets/stylesheets/mobile/application.css b/app/assets/stylesheets/mobile/application.css deleted file mode 100644 index fdca7c07..00000000 --- a/app/assets/stylesheets/mobile/application.css +++ /dev/null @@ -1,4 +0,0 @@ -/* - *= require_self - *= require_tree . - */ diff --git a/app/assets/stylesheets/mobile/application.css.scss b/app/assets/stylesheets/mobile/application.css.scss new file mode 100644 index 00000000..bf23b9f3 --- /dev/null +++ b/app/assets/stylesheets/mobile/application.css.scss @@ -0,0 +1,10 @@ +/* + *= require_self + *= require jquery-ui/autocomplete + *= require mousetrap + *= require_tree . + */ +@import "bootstrap-sprockets"; +@import "bootswatch/cyborg/variables"; +@import "bootstrap"; +@import "bootswatch/cyborg/bootswatch"; diff --git a/app/assets/stylesheets/desktop/color/black-tie/styles.css b/app/assets/stylesheets/mobile/color.css similarity index 100% rename from app/assets/stylesheets/desktop/color/black-tie/styles.css rename to app/assets/stylesheets/mobile/color.css diff --git a/app/assets/stylesheets/desktop/color/sunny/login.css b/app/assets/stylesheets/mobile/login.css similarity index 100% rename from app/assets/stylesheets/desktop/color/sunny/login.css rename to app/assets/stylesheets/mobile/login.css diff --git a/app/assets/stylesheets/mobile/paginate_page.css b/app/assets/stylesheets/mobile/paginate_page.css index 13a2a923..8882e0f7 100644 --- a/app/assets/stylesheets/mobile/paginate_page.css +++ b/app/assets/stylesheets/mobile/paginate_page.css @@ -47,7 +47,7 @@ overflow: hidden; } .apple_pagination { - background: #010101; + background: #000; border: 1px solid #79a; text-align: center; padding: 1em; @@ -55,24 +55,52 @@ .apple_pagination a, .apple_pagination span { padding: 0.2em 0.3em; } .apple_pagination .disabled { - color: #aaaaaa; } + color: #fff; } .apple_pagination .current { + color: #000; font-style: normal; font-weight: bold; - background-color: #999; + background-color: #ddd; display: inline-block; - width: 1.4em; - height: 1.4em; - line-height: 1.5; + width: 1.5em; + height: 1.5em; + line-height: 1.4; -moz-border-radius: 1em; -webkit-border-radius: 1em; border-radius: 1em; text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } .apple_pagination a { text-decoration: none; - color: #eff; } + color: #aaa; } .apple_pagination a:hover, .apple_pagination a:focus { - text-decoration: underline; } + text-decoration: underline; + color: #fff; } + .apple_pagination a:hover#pages, .apple_pagination a:focus#pages { + color: #000; + font-style: normal; + font-weight: bold; + background-color: #aaa; + display: inline-block; + width: 1.3em; + height: 1.3em; + line-height:1.2; + -moz-border-radius: 1em; + -webkit-border-radius: 1em; + border-radius: 1em; + text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; } + + + .apple_pagination .page_info { + background: #000; + color: #fff; + padding: 0.4em 0.6em; + width: 22em; + margin-bottom: 0.3em; + text-align: center; } + .apple_pagination .page_info b { + color: #ddd; + background: #111; + padding: 0.1em 0.25em; } .flickr_pagination { text-align: center; diff --git a/app/assets/stylesheets/mobile/styles.css b/app/assets/stylesheets/mobile/styles.css index 1f322eec..38507dd3 100644 --- a/app/assets/stylesheets/mobile/styles.css +++ b/app/assets/stylesheets/mobile/styles.css @@ -9,8 +9,8 @@ } body{ - width: auto; - max-width: 480px; + width: 980 !important; + max-width: 980px; font-family:Tahoma; font-weight:bold; background-color:#000; @@ -26,9 +26,6 @@ a:hover{ background: #234; /* Цвет фона под ссылкой */ color: #F5F103; /* Цвет ссылки */ } -table{ - width: auto; -} tr:hover{ background: #234; /* Цвет фона под ссылкой */ color: #ffe; /* Цвет ссылки */ @@ -80,13 +77,13 @@ p{ text-align: center; padding:1px; z-index:100; - max-width: 480px; + max-width: 980px; width: auto; float: none; } #menu { width: auto; - max-width: 480px; + max-width: 980px; float: none; } .foot { @@ -95,18 +92,11 @@ p{ text-align: center; font: bold 20px Arial, Helvetica, sans-serif; width: auto; - max-width: 480px; + max-width: 980px; float: none; } -.round-image-50 { - background-color: white; - border: 1px solid #d9d9d9; - border-radius: 50px; - -moz-border-radius: 50px; - -webkit-border-radius: 50px; - height: 100px; - width: 100px; - overflow: hidden; - text-align: center; - img { width: 100% } +.container-fluid .container{ + width: 980px; + max-width: 980px; } + diff --git a/app/assets/stylesheets/untheme/application.css b/app/assets/stylesheets/untheme/application.css deleted file mode 100644 index ad20e1fc..00000000 --- a/app/assets/stylesheets/untheme/application.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - *= require_self - *= require mousetrap - *= require jquery-ui/accordion - *= require jquery-ui/autocomplete - *= require jquery-ui/datepicker - *= require jquery-ui/selectmenu - *= require jquery-ui/dark-hive - *= require jquery-ui/slider - *= require_tree . - */ diff --git a/app/assets/stylesheets/untheme/login.css b/app/assets/stylesheets/untheme/login.css deleted file mode 100644 index b6a5f6de..00000000 --- a/app/assets/stylesheets/untheme/login.css +++ /dev/null @@ -1,171 +0,0 @@ -.new_user { - position: relative; - margin-top: 100px; - margin-bottom: auto; - margin-right: 40%; - margin-left: auto; - width: 600px; - padding-right: 32px; - font-weight: 300; - color: #a8a7a8; - text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8); -} -.new_user p { - margin: 0 0 10px; -} - -input, button, label { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 15px; - font-weight: 400; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 100; -} - -input[type=text], input[type=password], input[type=email], input[type=number] { - padding: 0 10px; - width: 200px; - height: 40px; - color: #bbb; - text-shadow: 1px 1px 1px black; - background: #555; - border: 1; - border-radius: 10px; - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); - z-index:100; -} -input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { - color: white; - background: rgba(0, 0, 0, 0.1); - outline: 0; -} - -label { - float: left; - width: 400px; - line-height: 40px; - padding-right: 10px; - font-weight: 100; - text-align: right; - letter-spacing: 1px; - z-index: 100; -} - -.forgot-password { - padding-left: 100px; - float: right; - font-size: 13px; - font-weight: 100; - letter-spacing: 1px; -} - -.login-submit { - position: absolute; - top: 12px; - right: 0; - width: 48px; - height: 48px; - padding: 8px; - border-radius: 32px; - -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.35); -} -.login-submit:before, .login-submit:after { - content: ''; - z-index: 1; - position: absolute; -} -.login-submit:before { - top: 28px; - left: -4px; - width: 4px; - height: 10px; - -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); - box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); -} -.login-submit:after { - top: -4px; - bottom: -4px; - right: -4px; - width: 36px; -} - -.login-button { - position: relative; - z-index: 2; - width: 48px; - height: 48px; - padding: 0 0 48px; - /* Fix wrong positioning in Firefox 9 & older (bug 450418) */ - text-indent: 120%; - white-space: nowrap; - overflow: hidden; - background: none; - border: 0; - border-radius: 24px; - cursor: pointer; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); - /* Must use another pseudo element for the gradient background because Webkit */ - /* clips the background incorrectly inside elements with a border-radius. */ -} -.login-button:before { - content: ''; - position: absolute; - top: 5px; - bottom: 5px; - left: 5px; - right: 5px; - background: #00a2d3; - border-radius: 24px; - background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796); - background-image: -moz-linear-gradient(top, #00a2d3, #0d7796); - background-image: -o-linear-gradient(top, #00a2d3, #0d7796); - background-image: linear-gradient(to bottom, #00a2d3, #0d7796); - -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); - box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16); -} -.login-button:active:before { - background: #0591ba; - background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3); - background-image: -moz-linear-gradient(top, #0591ba, #00a2d3); - background-image: -o-linear-gradient(top, #0591ba, #00a2d3); - background-image: linear-gradient(to bottom, #0591ba, #00a2d3); -} -.login-button:after { - content: ''; - position: absolute; - top: 15px; - left: 12px; - width: 25px; - height: 19px; - background: url("/images/login/arrow.png") 0 0 no-repeat; -} - -::-moz-focus-inner { - border: 0; - padding: 0; -} - -.lt-ie9 input[type=text], .lt-ie9 input[type=password] { - line-height: 40px; - background: #282828; -} -.lt-ie9 .login-submit { - position: absolute; - top: 12px; - right: -28px; - padding: 4px; -} -.lt-ie9 .login-submit:before, .lt-ie9 .login-submit:after { - display: none; -} -.lt-ie9 .login-button { - line-height: 48px; -} -.lt-ie9 .about { - background: #313131; -} diff --git a/app/assets/stylesheets/untheme/styles.css b/app/assets/stylesheets/untheme/styles.css deleted file mode 100644 index 46eec1dc..00000000 --- a/app/assets/stylesheets/untheme/styles.css +++ /dev/null @@ -1,310 +0,0 @@ -@charset "utf-8"; -*{ - margin: 0; - padding: 0; -} -html { - height: 100%; -} - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -#all { - min-width: 1200px; - max-width: 1800px; - margin: 0 auto; - min-height: 100%; - height: auto !important; - height: 100%; -} - - -/* Header ------------------------------------------------------------------------------*/ -.header { - height: 270px; - margin: 0 auto; - text-align: center; - padding:1px; - z-index:100; -} - - -/* Middle ------------------------------------------------------------------------------*/ -.middle { - width: 100%; - padding: 0 0 100px; - position: relative; -} -.middle:after { - display: table; - clear: both; - content: ''; -} -.container { - width: 100%; - float: left; - overflow: hidden; -} -.content { - padding: 0 0 0 320px; -} - - -/* Left Sidebar ------------------------------------------------------------------------------*/ -.left-sidebar { - float: left; - width: 300px; - margin-left: -100%; - position: relative; -} - - -/* Footer ------------------------------------------------------------------------------*/ -.footer { - margin: -100px auto 0; - min-width: 1200px; - max-width: 1800px; - height: 150px; - position: relative; - text-align: center; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -.login-submit, .login-submit:before, .login-submit:after { - background: #000001; -} - -body, .x-body { - font: 18px/30px 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: #B0D8F7; - background: #090D0E; - height: 100%; - line-height: 1.5; -} - -a { - color: #2D7B9C; - text-decoration: none; - padding: 2px; -} -a:hover, a:focus { - text-decoration: underline; - color: #fff; -} -h1,h2,h3,h4,h5,h6{ - text-align:center; -} -tr:hover{ - background: #010F15; - color: #fff; -} - -#tt-in{ - background: #065014; -} - -#tt-out{ - background: #061450; -} - -legend{ - color:#04ADF5; - margin-left:30px; -} -fieldset{ - border: 2px solid gray; -} - -} -.clear { - clear:both; -} - -#aprus { - margin-left: 45px; - text-align: left; - font: bold 12px Arial, Helvetica, sans-serif; -} - -#twrus{ - font: bold 30px Arial, Helvetica, sans-serif; - color:#FFFF77; -} - -#tt_time{ - vertical-align:middle; - text-align: center; -} - -#flight_info{ - vertical-align:bottom; -} -.tablo td{ - height:90px; -} - -.al_info { - width: 760px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: 5px; - zoom: 1; - *display: inline; - _height: 350px; -} -.al_info_section{ - float:left; - height:340px; - margin-left:30px; - width:350px; -} -.al_tt{ - display: block; -} -b { - font: bold 20px Arial, Helvetica, sans-serif; -} -h1 { - font: bold 36px Arial, Helvetica, sans-serif; -} -h2 { - font: bold 32px Arial, Helvetica, sans-serif; -} - -h3 { - font: bold 28px Arial, Helvetica, sans-serif; -} -h4 { - font: bold 26px Arial, Helvetica, sans-serif; -} -h5 { - font: bold 24px Arial, Helvetica, sans-serif; -} -h6 { - font: bold 22px Arial, Helvetica, sans-serif; -} -.field_with_errors { - display: inline; -} - -.field_with_errors .message { - float: center; - color: #D00; - padding-left: 5px; - font: bold 19px Arial, Helvetica, sans-serif; - text-align: right; - -webkit-animation: message .2s linear infinite; - animation: message .2s linear infinite; - z-index: 200; -} - -@-webkit-keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@keyframes message { - 0% { color: rgb(128, 0, 0); } - 50% { color: rgb(183, 65, 14); } - 100% { color: rgb(128, 0, 0); } -} -@-webkit-keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -@keyframes pulsate { - 50% { color: #fff; text-shadow: 0 -2px rgba(0,0,0,.3), 0 0 10px #ffd, 0 0 15px #fff; } -} -.tt_status { - color: #eee; - text-shadow: 0 -2px rgba(0,0,0,.1); - -webkit-animation: pulsate 0.5s linear infinite; - animation: pulsate 0.5s linear infinite; - font-size: 26px; - width: 40px; - text-align: center; - vertical-align:middle; -} - -#tt_al_info{ - margin-top:20px; - font: bold 12px Arial, Helvetica, sans-serif; - color:#63B8FF; - font-style: italic; -} - -select { - width: 200px; -} -.select_overflow { - height: 200px; -} -input[type=checkbox] { - margin-top: 2em; -} -.menu-top{ - margin-top: 50px; -} -.field-form { - width: 1400px; - display: -moz-inline-stack; - display: inline-block; - vertical-align:top; - margin: auto; - zoom: 1; - *display: inline; - _height: 900px; -} -.field-form-section{ - float:left; - height:900px; - width: 680px; -} -.field{ - margin-bottom: 15px; -} diff --git a/app/controllers/aircompanies_controller.rb b/app/controllers/aircompanies_controller.rb index 115b9fc4..9132f555 100644 --- a/app/controllers/aircompanies_controller.rb +++ b/app/controllers/aircompanies_controller.rb @@ -7,7 +7,7 @@ def admin_al end def index - @aircompanies = Aircompany.search(params[:search]).order(sort_column + " " + sort_direction).page(params[:page]).per(params[:per_page]) + @aircompanies = Aircompany.search(params[:search]).order(sort_column + " " + sort_direction).page(params[:page]).per(params[:limit]) authorize Aircompany respond_with @aircompanies end diff --git a/app/controllers/airports_controller.rb b/app/controllers/airports_controller.rb index 225fb361..17f4c8a0 100644 --- a/app/controllers/airports_controller.rb +++ b/app/controllers/airports_controller.rb @@ -1,12 +1,12 @@ # -*- encoding : utf-8 -*- class AirportsController < ApplicationController before_filter :set_airport, only: [:show, :edit, :update, :destroy, :aptt, :tablo] -layout "without_html", :only => [:tablo] +#layout "without_html", :only => [:tablo] autocomplete :airport, :name_rus, :limit => 50, :extra_data => [:city_rus, :city_eng, :iata_code], :display_value => :apdata before_filter :check_permissions, only: :autocomplete_airport_name_rus # def autocomplete_airport_name_rus -# iata_code = params[:iata_code] +# iata_code = params[iata_code] # town_id = params[:town_id] # name_rus = params[:name_rus] # airports = Airport.where('name_rus LIKE ? OR iata_code LIKE ?', brand_id, country, "%#{term}%").order(:name).all @@ -22,13 +22,13 @@ def admin_ap end def index - @airports = Airport.search(params[:search]).order(sort_column + " " + sort_direction).page(params[:page]).per(params[:ap_limit]) + @airports = Airport.search(params[:search]).order(sort_column + " " + sort_direction).order(:name_rus).order(:name_eng).page(params[:page]).per(params[:limit]) authorize Airport respond_with(@airports) end def show - @aircompanies = Aircompany.where(airport_id: params[:id]).page(params[:page]).per(params[:per_page]) + @aircompanies = @airport.aircompanies.page(params[:page]).per(params[:per_page]) authorize @airport respond_with(@airport) end @@ -125,6 +125,7 @@ def ap_dist @p1 = GeoPoint.new @ap1.latitude.to_f, @ap1.longitude.to_f @p2 = GeoPoint.new @ap2.latitude.to_f, @ap2.longitude.to_f @dist = @p1.distance_to(@p2) + @sbear = @p1.bearing_to(@p2) end authorize :airport end @@ -136,7 +137,9 @@ def sort_column def tbody_tablo_out @timetableap_subs = Array.new - @timetableaps = Timetableap.where(way_start: params[:id]).where("s#{@wday} = ?",1) + @timetableaps = Timetableap.where(way_start: @airport.id).where("s#{@wday} = ?",1) + @airlines = Aircompany.where(:id => @timetableaps.select(:aircompany_id).group(:aircompany_id)) + @timetableaps = @timetableaps.search(params[:id],params[:end_ap],params[:search_al]) @timetableaps.each do |tt| @timetableap_subs0 = TimetableapSub.where(timetableap_id: tt.id) if tt.TimeStart.hour < 24 - (DateTime.current.in_time_zone(@airport_time_zone).utc_offset / 3600) @@ -144,8 +147,15 @@ def tbody_tablo_out else tt.timeIN = tt.TimeStart.change(:year=>(Time.zone.now - 1.day).year, :month=>(Time.zone.now - 1.day).month, :day=>(Time.zone.now - 1.day).day) end - tt.aprus = tt.apkey.airport.name_rus - tt.twrus = tt.apkey.airport.town.city_rus + tt.s_ap = tt.airport + tt.f_ap = tt.apkey.airport + tt.f_aprus = tt.apkey.airport.name_rus + tt.f_twrus = tt.apkey.airport.city_rus + tt.s_aprus = tt.airport.name_rus + tt.s_twrus = tt.airport.city_rus + tt.aprus = tt.f_aprus + tt.twrus = tt.f_twrus + tt.ap = tt.f_ap tt.airline = tt.aircompany.airline_name_rus tt.al_plane = tt.aircompany.airline_name_rus tt.plane_al = tt.aircompany @@ -159,18 +169,24 @@ def tbody_tablo_out tt.fstatus = "Посадка" tt.bgcolor = "#F7110D" elsif tt.timeIN < Time.zone.now.utc+4.hour and tt.timeIN > Time.zone.now.utc+60.minute - tt.fstatus = "Идёт регистрация" + tt.fstatus = "регистрация" tt.bgcolor = "#A67C27" else tt.fstatus = "Ожидается вылет" tt.bgcolor = "#1C86EE" end @timetableap_subs0.each do |tt0| - tt0.ap2 = tt0.timetableap.apkey + tt0.f_ap = tt.f_ap + tt0.s_ap = tt.s_ap + tt0.ap = tt.ap tt0.timeIN = tt.timeIN + tt0.f_aprus = tt.f_aprus + tt0.f_twrus = tt.f_twrus + tt0.s_aprus = tt.s_aprus + tt0.s_twrus = tt.s_twrus tt0.aprus = tt0.timetableap.apkey.airport.name_rus tt0.apkey = tt0.timetableap.apkey - tt0.twrus = tt0.timetableap.apkey.airport.town.city_rus + tt0.twrus = tt0.timetableap.apkey.airport.city_rus tt0.fstatus = tt.fstatus tt0.bgcolor = tt.bgcolor tt0.airline = tt0.aircompany.airline_name_rus @@ -184,6 +200,8 @@ def tbody_tablo_out def tbody_tablo_in @timetableap_subs = Array.new @timetableaps = Timetableap.where(way_end: params[:id]).where("e#{@wday} = ?",1) + @airlines = Aircompany.where(:id => @timetableaps.select(:aircompany_id).group(:aircompany_id)) + @timetableaps = @timetableaps.search(params[:start_ap],params[:id],params[:search_al]) @timetableaps.each do |tt| @timetableap_subs0 = TimetableapSub.where(timetableap_id: tt.id) if tt.TimeEnd.hour < 24 - (Time.zone.now.utc_offset / 3600) @@ -192,8 +210,15 @@ def tbody_tablo_in tt.timeIN = tt.TimeEnd.change(:year=>(Time.zone.now - 1.day).year, :month=>(Time.zone.now - 1.day).month, :day=>(Time.zone.now - 1.day).day) end # tt['timeIN'] = tt.timeEnd.in_time_zone(@airport_time_zone) - tt.aprus = tt.airport.name_rus - tt.twrus = tt.airport.town.city_rus + tt.s_ap = tt.airport + tt.f_ap = tt.apkey.airport + tt.s_aprus = tt.airport.name_rus + tt.s_twrus = tt.airport.town.city_rus + tt.f_aprus = tt.apkey.airport.name_rus + tt.f_twrus = tt.apkey.airport.city_rus + tt.aprus = tt.s_aprus + tt.twrus = tt.s_twrus + tt.ap = tt.s_ap tt.airline = tt.aircompany.airline_name_rus tt.al_plane = tt.aircompany.airline_name_rus tt.plane_al = tt.aircompany @@ -205,7 +230,12 @@ def tbody_tablo_in tt.bgcolor = "#1C86EE" end @timetableap_subs0.each do |tt0| - tt0.ap2 = tt0.timetableap.apkey + tt0.f_ap = tt.f_ap + tt0.s_ap = tt.s_ap + tt0.f_aprus = tt.f_aprus + tt0.f_twrus = tt.f_twrus + tt0.s_aprus = tt.s_aprus + tt0.s_twrus = tt.s_twrus tt0.timeIN = tt.timeIN tt0.aprus = tt0.timetableap.airport.name_rus tt0.twrus = tt0.timetableap.airport.town.city_rus diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e785d384..6f9b9254 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -4,7 +4,7 @@ class ApplicationController < ActionController::Base protect_from_forgery with: :exception, unless: -> { request.format.json? } skip_before_filter :verify_authenticity_token, if: -> { controller_name == 'sessions' && action_name == 'create' } skip_before_action :verify_authenticity_token, if: :json_request? -after_action :logging, only: [:create, :update, :destroy] +#after_action :logging, only: [:create, :update, :destroy] require 'sunriseset' require 'tzinfo' require 'tzinfo/data' @@ -27,6 +27,7 @@ class ApplicationController < ActionController::Base has_mobile_fu #before_filter :force_mobile_format before_filter :set_timezone +before_filter :set_country ActiveSupport::TimeZone::MAPPING["Ezhinsk"] = "Asia/Ezhinsk" ActiveSupport::TimeZone::MAPPING["Norok"] = "Asia/Ezhinsk" ActiveSupport::TimeZone::MAPPING["Arisha"] = "Asia/Ezhinsk" @@ -48,6 +49,11 @@ def set_timezone tz = current_user ? current_user.time_zone : nil Time.zone = tz || ActiveSupport::TimeZone["Ezhinsk"] end + +def set_country + @countr = current_user ? current_user.country : nil + @country = @countr || Country.find(508) +end def validator(object) object.valid? @@ -104,12 +110,12 @@ def after_sign_in_path_for(resource) @flash = flash[:notice] @flash_message_state_id = 100 flash_message_add - request.referrer || user_path and return + request.referrer || user_path(current_user) and return end -# def after_sign_out_path_for(resource_or_scope) -# new_user_session_path -# end + def after_sign_out_path_for(resource_or_scope) + new_user_session_path + end def set_p3p response.headers["P3P"]='CP="CAO PSA OUR"' @@ -125,8 +131,9 @@ def record_not_found end def set_mobile_format - if is_mobile_device? # this method is provided by mobile_fu - is_device?("iPhone") ? request.format = :html : super + if is_mobile_device? +# render layout: "layouts/application.mobile" +# is_device?("iPhone") ? request.format = :html : super if (devise_controller? && action_name == 'create' && request.method == ('POST')) request.format = :html else @@ -158,7 +165,7 @@ def flash_message_add @flash_message.request_method = request.request_method request.referrer.nil? ? @flash_message.request_referrer = request.original_url : @flash_message.request_referrer = request.referrer @flash_message.useragent = request.env['HTTP_USER_AGENT'] - @flash_message.message = @flash + @flash_message.message = @flash || "empty" @flash_message.flash_message_state_id = @flash_message_state_id @flash_message.save end diff --git a/app/controllers/countries_controller.rb b/app/controllers/countries_controller.rb index f87be9cf..92289c9d 100644 --- a/app/controllers/countries_controller.rb +++ b/app/controllers/countries_controller.rb @@ -1,18 +1,31 @@ class CountriesController < ApplicationController - before_filter :set_country, only: [:show, :ap_show, :al_show, :tw_show, :edit, :update, :destroy] - before_filter :set_airports, only: [:ap_show, :show] + before_filter :set_country, only: [:show, :ap_show, :ap_show_ajax, :al_show, :tw_show, :edit, :update, :destroy] + before_filter :set_airports, only: [:ap_show, :ap_show_ajax, :show] before_filter :set_towns, only: [:tw_show, :show] before_filter :set_airlines, only: [:al_show, :show] def index - @countries = Country.search(params[:search]).order(sort_column + " " + sort_direction).page(params[:page]) + @countries = Country.search(params[:search]).order(sort_column + " " + sort_direction).page(params[:page]).per(params[:limit]) authorize Country respond_with(@countries) end def ap_show + authorize @country + params[:page] = 1.to_i if params[:page].nil? + params[:page] = params[:page].to_i + 1.to_i respond_with(@country) + end + + def ap_show_ajax authorize @country + result = {} + result["airports"] = @airports + + if (params[:page].to_i + 1) * ((params[:limit]).nil? ? 30 : params[:limit]) < @airports.size + result['page'] = params[:page].to_i + 1 + end + render json: result end def tw_show @@ -83,13 +96,18 @@ def set_country end def set_airports - @airports = @country.airports.search(params[:search]).order(sort_column_a + " " + sort_direction).page(params[:page]).per(params[:ap_limit]) + @airports = @country.airports.search(params[:search]).order(sort_column_a + " " + sort_direction).order(:name_rus).order(:name_eng).page(params[:page]).per(params[:limit]) end + def set_towns - @towns = @country.towns.search(params[:search]).order(sort_column_a + " " + sort_direction).page(params[:page]).per(params[:tw_limit]) + @towns = @country.towns.search(params[:search]).order(sort_column_a + " " + sort_direction).page(params[:page]).per(params[:limit]) + params[:page] = 1.to_i if params[:page].nil? + params[:page] = params[:page].to_i + 1.to_i end def set_airlines - @aircompanies = @country.aircompanies.search(params[:search]).order(sort_column_al + " " + sort_direction).page(params[:page]).per(params[:al_limit]) + @aircompanies = @country.aircompanies.search(params[:search]).order(sort_column_al + " " + sort_direction).page(params[:page]).per(params[:limit]) + params[:page] = 1.to_i if params[:page].nil? + params[:page] = params[:page].to_i + 1.to_i end end diff --git a/app/controllers/runway_aps_controller.rb b/app/controllers/runway_aps_controller.rb index 299311ce..e6e4ac6a 100644 --- a/app/controllers/runway_aps_controller.rb +++ b/app/controllers/runway_aps_controller.rb @@ -3,33 +3,40 @@ class RunwayApsController < ApplicationController def index @runway_aps = RunwayAp.order(sort_column + " " + sort_direction).page(params[:page]).per(params[:per_page]) + authorize RunwayAp respond_with(@runway_aps) end def show + authorize @runway_ap respond_with(@runway_ap) end def new @runway_ap = RunwayAp.new + authorize @runway_ap respond_with(@runway_ap) end def edit + authorize @runway_ap end def create @runway_ap = RunwayAp.new(params[:runway_ap]) + authorize @runway_ap @runway_ap.save respond_with(@runway_ap) end def update + authorize @runway_ap @runway_ap.update_attributes(params[:runway_ap]) respond_with(@runway_ap) end def destroy + authorize @runway_ap @runway_ap.destroy respond_with(@runway_ap) end diff --git a/app/controllers/rw_stations_controller.rb b/app/controllers/rw_stations_controller.rb deleted file mode 100644 index 9655b2e0..00000000 --- a/app/controllers/rw_stations_controller.rb +++ /dev/null @@ -1,52 +0,0 @@ -# encoding: UTF-8 -class RwStationsController < ApplicationController -# GET /rw_stations -def index -@rw_stations = RwStation.paginate :page => params[:page], :order => 'rw_zone' - end - - # GET /rw_stations/1 - def show - @rw_station = RwStation.find(params[:id]) -end - -# GET /rw_stations/new -def new -@rw_station = RwStation.new -end - -# GET /rw_stations/1/edit -def edit -@rw_station = RwStation.find(params[:id]) -end - -# POST /rw_stations -def create -@rw_station = RwStation.new(params[:rw_station]) - -if @rw_station.save -redirect_to({:action => 'index'}, {:notice => 'Rw station добавлен'}) - else - render :action, '"new"' - end - end - - # PUT /rw_stations/1 - def update - @rw_station = RwStation.find(params[:id]) - -if @rw_station.update_attributes(params[:rw_station]) -redirect_to(@rw_station, :notice => 'Вы действительно хотите удалить эту запись? Будьте ОСТОРОЖНЫ!') - else - render :action, '"edit"' - end - end - - # DELETE /rw_stations/1 - def destroy - @rw_station = RwStation.find(params[:id]) -@rw_station.destroy - -redirect_to (rw_stations_url) - end -end diff --git a/app/controllers/rw_typestations_controller.rb b/app/controllers/rw_typestations_controller.rb deleted file mode 100644 index d6ede58a..00000000 --- a/app/controllers/rw_typestations_controller.rb +++ /dev/null @@ -1,52 +0,0 @@ -# encoding: UTF-8 -class RwTypestationsController < ApplicationController -# GET /rw_typestations -def index -@rw_typestations = RwTypestation.paginate :page => params[:page], :order => 'id' - end - - # GET /rw_typestations/1 - def show - @rw_typestation = RwTypestation.find(params[:id]) -end - -# GET /rw_typestations/new -def new -@rw_typestation = RwTypestation.new -end - -# GET /rw_typestations/1/edit -def edit -@rw_typestation = RwTypestation.find(params[:id]) -end - -# POST /rw_typestations -def create -@rw_typestation = RwTypestation.new(params[:rw_typestation]) - -if @rw_typestation.save -redirect_to({:action => 'index'}, {:notice => 'Rw typestation Добавлена!'}) - else - render :action, '"new"' - end - end - - # PUT /rw_typestations/1 - def update - @rw_typestation = RwTypestation.find(params[:id]) - -if @rw_typestation.update_attributes(params[:rw_typestation]) -redirect_to(@rw_typestation, :notice => 'Данные обновлены') - else - render :action, '"edit"' - end - end - - # DELETE /rw_typestations/1 - def destroy - @rw_typestation = RwTypestation.find(params[:id]) -@rw_typestation.destroy - -redirect_to (rw_typestations_url) - end -end diff --git a/app/controllers/station_types_controller.rb b/app/controllers/station_types_controller.rb new file mode 100644 index 00000000..2360c7c4 --- /dev/null +++ b/app/controllers/station_types_controller.rb @@ -0,0 +1,69 @@ +class StationTypesController < ApplicationController + before_action :set_station_type, only: [:show, :edit, :update, :destroy] + + # GET /station_types + def index + @station_types = StationType.order(sort_column + " " + sort_direction).page(params[:page]).per(params[:per_page]) + authorize StationType.all + respond_with @station_types + end + + # GET /station_types/1 + def show + authorize @station_type + respond_with @station_type + end + + # GET /station_types/new + def new + @station_type = StationType.new + authorize @station_type + respond_with @station_type + end + + # GET /station_types/1/edit + def edit + authorize @station_type + end + + # POST /station_types + def create + @station_type = StationType.new(station_type_params) + @station_type.save + flash[:notice] = 'The station_type was successfully saved!' if @station_type.save && !request.xhr? + authorize @station_type + respond_with @station_type + end + + # PATCH/PUT /station_types/1 + def update + @station_type.update(station_type_params) + flash[:notice] = 'The station_type was successfully updated!' if @station_type.update(station_type_params) && !request.xhr? + authorize @station_type + respond_with @station_type + end + + # DELETE /station_types/1 + def destroy + @station_type.destroy + authorize @station_type + redirect_to station_types_url, notice: 'Station type was successfully destroyed.' + respond_with @station_type + end + + private + # Use callbacks to share common setup or constraints between actions. + def set_station_type + @station_type = StationType.find(params[:id]) + end + + def sort_column + StationType.all.column_names.include?(params[:sort]) ? params[:sort] : "id" + end + + + # Only allow a trusted parameter "white list" through. + def station_type_params + params.require(:station_type).permit(:typename) + end +end diff --git a/app/controllers/station_zones_controller.rb b/app/controllers/station_zones_controller.rb new file mode 100644 index 00000000..fc2a51c3 --- /dev/null +++ b/app/controllers/station_zones_controller.rb @@ -0,0 +1,69 @@ +class StationZonesController < ApplicationController + before_action :set_station_zone, only: [:show, :edit, :update, :destroy] + + # GET /station_zones + def index + @station_zones = StationZone.order(sort_column + " " + sort_direction).page(params[:page]).per(params[:per_page]) + authorize StationZone.all + respond_with @station_zones + end + + # GET /station_zones/1 + def show + authorize @station_zone + respond_with @station_zone + end + + # GET /station_zones/new + def new + @station_zone = StationZone.new + authorize @station_zone + respond_with @station_zone + end + + # GET /station_zones/1/edit + def edit + authorize @station_zone + end + + # POST /station_zones + def create + @station_zone = StationZone.new(station_zone_params) + @station_zone.save + flash[:notice] = 'The station_zone was successfully saved!' if @station_zone.save && !request.xhr? + authorize @station_zone + respond_with @station_zone + end + + # PATCH/PUT /station_zones/1 + def update + @station_zone.update(station_zone_params) + flash[:notice] = 'The station_zone was successfully updated!' if @station_zone.update(station_zone_params) && !request.xhr? + authorize @station_zone + respond_with @station_zone + end + + # DELETE /station_zones/1 + def destroy + @station_zone.destroy + authorize @station_zone + redirect_to station_zones_url, notice: 'Station zone was successfully destroyed.' + respond_with @station_zone + end + + private + # Use callbacks to share common setup or constraints between actions. + def set_station_zone + @station_zone = StationZone.find(params[:id]) + end + + def sort_column + StationZone.all.column_names.include?(params[:sort]) ? params[:sort] : "id" + end + + + # Only allow a trusted parameter "white list" through. + def station_zone_params + params.require(:station_zone).permit(:zone) + end +end diff --git a/app/controllers/stations_controller.rb b/app/controllers/stations_controller.rb new file mode 100644 index 00000000..200dfe4e --- /dev/null +++ b/app/controllers/stations_controller.rb @@ -0,0 +1,69 @@ +class StationsController < ApplicationController + before_action :set_station, only: [:show, :edit, :update, :destroy] + + # GET /stations + def index + @stations = Station.all.order(sort_column + " " + sort_direction).page(params[:page]).per(params[:per_page]) + authorize Station.all + respond_with @stations + end + + # GET /stations/1 + def show + authorize @station + respond_with @station + end + + # GET /stations/new + def new + @station = Station.new + authorize @station + respond_with @station + end + + # GET /stations/1/edit + def edit + authorize @station + end + + # POST /stations + def create + @station = Station.new(station_params) + @station.save + flash[:notice] = 'The station was successfully saved!' if @station.save && !request.xhr? + authorize @station + respond_with @station + end + + # PATCH/PUT /stations/1 + def update + @station.update(station_params) + flash[:notice] = 'The station was successfully updated!' if @station.update(station_params) && !request.xhr? + authorize @station + respond_with @station + end + + # DELETE /stations/1 + def destroy + @station.destroy + authorize @station + redirect_to stations_url, notice: 'Station was successfully destroyed.' + respond_with @station + end + + private + # Use callbacks to share common setup or constraints between actions. + def set_station + @station = Station.find(params[:id]) + end + + def sort_column + Station.all.column_names.include?(params[:sort]) ? params[:sort] : "id" + end + + + # Only allow a trusted parameter "white list" through. + def station_params + params.require(:station).permit(:name_rus, :name_eng, :station_zone_id, :station_type_id, :rw_route_id) + end +end diff --git a/app/controllers/timetableap_subs_controller.rb b/app/controllers/timetableap_subs_controller.rb index de0fd5f9..a58499ca 100644 --- a/app/controllers/timetableap_subs_controller.rb +++ b/app/controllers/timetableap_subs_controller.rb @@ -29,6 +29,7 @@ def flight_state end def create + @timetableap_sub = TimetableapSub.new(params[:timetableap_sub]) @timetableap_sub.save flash[:notice] = "The flight was saved!" if @timetableap_sub.save && !request.xhr? authorize @timetableap_sub diff --git a/app/controllers/timetableaps_controller.rb b/app/controllers/timetableaps_controller.rb index 23dc12c5..20c71cc2 100644 --- a/app/controllers/timetableaps_controller.rb +++ b/app/controllers/timetableaps_controller.rb @@ -3,11 +3,23 @@ class TimetableapsController < ApplicationController before_filter :set_timetableap, only: [:show, :edit, :update, :destroy, :update_dateoffinishdate, :flight_state] def index - @timetableaps = Timetableap.search(params[:start_ap],params[:end_ap],params[:search_al]).page(params[:page]).per(params[:per_page]) + @timetableaps = Timetableap.search(params[:start_ap],params[:end_ap],params[:search_al]).page(params[:page]).per(params[:limit]) authorize @timetableaps respond_with(@timetableaps) end + def search_tt + if params[:start_ap].nil? && params[:end_ap].nil? + @timetableaps = Timetableap.page(params[:page]).per(params[:limit]) + render action: 'search_tt' + else + @timetableaps = Timetableap.where(:way_start => Airport.select(:id).where(:town_id => (params[:start_ap]))).where(:way_end => Airport.select(:id).where(:town_id => (params[:end_ap]))).page(params[:page]).per(params[:limit]) + @airports1 = Airport.where(town_id: params[:start_ap]).order(:name_rus) + @airports2 = Airport.where(town_id: params[:end_ap]).order(:name_rus) + end + authorize :timetableap + end + def validate timetableaps = Timetableaps.new(timetableaps_params) validator(timetableaps) @@ -84,13 +96,6 @@ def flight_state respond_with(@timetableap) end - def insert - @timetableaps = Timetableap.all - @timetableaps.each do |tt| - tt << Time.now - end - end - private def set_timetableap @timetableap = Timetableap.find(params[:id]) diff --git a/app/controllers/towns_controller.rb b/app/controllers/towns_controller.rb index 4426985e..be6da75c 100644 --- a/app/controllers/towns_controller.rb +++ b/app/controllers/towns_controller.rb @@ -1,7 +1,7 @@ class TownsController < ApplicationController before_filter :set_town, only: [:show, :edit, :update, :destroy] before_filter :check_permissions, only: :autocomplete_town_accent_city - before_filter :load_parent, except: :autocomplete_town_accent_city +# before_filter :load_parent autocomplete :town, :accent_city, :limit => 50, :display_value => :twdata, :extra_data => [:city, :accent_city, :country_iso, :latitude, :longitude] @@ -10,13 +10,18 @@ def admin_tw end def index - @towns = @country.towns.search(params[:search]).order(sort_column + " " + sort_direction) - @towns = @towns.page(params[:page]).per(params[:per_page]) +# if params[:country_id].nil? + @towns = Town.search(params[:search]).order(sort_column + " " + sort_direction).page(params[:page]).per(params[:limit]) +# else +# @country = Country.find(params[:country_id]) +# @towns = @country.towns.search(params[:search]).order(sort_column + " " + sort_direction).page(params[:page]).per(params[:limit]) +# end authorize Town respond_with(@towns) end def apToTw + authorize Airport @airports = Airport.all @airports.each do |airport| @apkey = Apkey.new @@ -24,7 +29,6 @@ def apToTw @apkey.airport_id = airport.id if apkey.airport_id.blank? @apkey.save end - authorize Airport end def show @@ -84,12 +88,11 @@ def sort_column end def set_town - @country = Country.find(params[:country_id]) - @town = @country.towns.find(params[:id]) + @town = Town.find(params[:id]) end def load_parent - @country = Country.find(params[:country_id]) + @country = Country.find(params[:country_id]) ? current_user.country : nil end protected diff --git a/app/controllers/users/registrations_controller.rb b/app/controllers/users/registrations_controller.rb index 2484f104..9c476af7 100644 --- a/app/controllers/users/registrations_controller.rb +++ b/app/controllers/users/registrations_controller.rb @@ -10,7 +10,7 @@ def check_permissions end def configure_permitted_parameters - devise_parameter_sanitizer.for(:sign_up).push(:username, :email, :time_zone, :town_id, :user_theme_id) + devise_parameter_sanitizer.for(:sign_up).push(:username, :email, :time_zone, :town_id, :user_theme_id, :avatar) devise_parameter_sanitizer.for(:account_update).push(:username, :email, :time_zone, :town_id, :user_theme_id, :avatar) end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 49b1bfcf..c9838018 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,4 +1,6 @@ class UsersController < ApplicationController +# force_ssl + before_filter :set_country before_filter :set_user, only: [:show, :edit, :update, :destroy] after_action :verify_authorized def index @@ -15,13 +17,10 @@ def new authorize @user end - # GET /specialists/1/edit def edit authorize @user end - # POST /specialists - # POST /specialists.json def create @user = User.new(user_params) authorize @user @@ -29,42 +28,41 @@ def create params[:user].delete(:password) params[:user].delete(:password_confirmation) end - respond_to do |format| - if @user.save - format.html { redirect_to @user, notice: 'User was successfully created.' } - format.json { render :show, status: :created, location: @user } - else - format.html { render :new } - format.json { render json: @user.errors, status: :unprocessable_entity } - end + if @user.save + redirect_to current_user, :notice => "User #{@user.username} was successfully created." + else + render :new, :notice => "User can`t creat." end end def update authorize @user if @user.update_attributes(user_params) - redirect_to users_path, :notice => "User updated." + redirect_to @user, :notice => "User #{@user.username} updated." else - redirect_to users_path, :alert => "Unable to update user." + render :edit, :notice => "Unable to update user #{@user.username}." end end - def destroy user = User.find(params[:id]) + @user_d = user.username authorize user user.destroy - redirect_to users_path, :notice => "User deleted." + redirect_to users_path, :notice => "User #{@user_d} deleted." end - # my custom fields are :name, private - # Use callbacks to share common setup or constraints between actions. def set_user @user = User.find(params[:id]) end + def set_country + @country = current_user.country + country_id = @country.id + end + def user_params - params.require(:user).permit(:email, :encrypted_password, :reset_password_token, :reset_password_sent_at, :remember_created_at, :username, :time_zone, :town_id, :user_theme_id, :role, :avatar, :aircompany_id) + params.require(:user).permit(:email, :password, :password_confirmation, :encrypted_password, :reset_password_token, :reset_password_sent_at, :remember_created_at, :username, :time_zone, :town_id, :user_theme_id, :role, :avatar, :aircompany_id, :country_id) end end diff --git a/app/controllers/zones_stations_controller.rb b/app/controllers/zones_stations_controller.rb deleted file mode 100644 index 21455a1f..00000000 --- a/app/controllers/zones_stations_controller.rb +++ /dev/null @@ -1,52 +0,0 @@ -# encoding: UTF-8 -class ZonesStationsController < ApplicationController -# GET /zones_stations -def index -@zones_stations = ZonesStation.paginate :page => params[:page], :order => 'id' - end - - # GET /zones_stations/1 - def show - @zones_station = ZonesStation.find(params[:id]) -end - -# GET /zones_stations/new -def new -@zones_station = ZonesStation.new -end - -# GET /zones_stations/1/edit -def edit -@zones_station = ZonesStation.find(params[:id]) -end - -# POST /zones_stations -def create -@zones_station = ZonesStation.new(params[:zones_station]) - -if @zones_station.save -redirect_to({:action => 'index'}, {:notice => 'Zones station добавлен'}) - else - render :action, '"new"' - end - end - - # PUT /zones_stations/1 - def update - @zones_station = ZonesStation.find(params[:id]) - -if @zones_station.update_attributes(params[:zones_station]) -redirect_to(@zones_station, :notice => 'Изменения внесены') - else - render :action, '"edit"' - end - end - - # DELETE /zones_stations/1 - def destroy - @zones_station = ZonesStation.find(params[:id]) -@zones_station.destroy - -redirect_to (zones_stations_url) - end -end \ No newline at end of file diff --git a/app/helpers/station_types_helper.rb b/app/helpers/station_types_helper.rb new file mode 100644 index 00000000..cbd90f71 --- /dev/null +++ b/app/helpers/station_types_helper.rb @@ -0,0 +1,2 @@ +module StationTypesHelper +end diff --git a/app/helpers/station_zones_helper.rb b/app/helpers/station_zones_helper.rb new file mode 100644 index 00000000..4230e423 --- /dev/null +++ b/app/helpers/station_zones_helper.rb @@ -0,0 +1,2 @@ +module StationZonesHelper +end diff --git a/app/helpers/stations_helper.rb b/app/helpers/stations_helper.rb new file mode 100644 index 00000000..79963121 --- /dev/null +++ b/app/helpers/stations_helper.rb @@ -0,0 +1,2 @@ +module StationsHelper +end diff --git a/app/models/aircompany.rb b/app/models/aircompany.rb index fc968d7c..8da1a7d5 100644 --- a/app/models/aircompany.rb +++ b/app/models/aircompany.rb @@ -1,5 +1,6 @@ class Aircompany < ActiveRecord::Base include ActiveModel::Validations +mount_uploader :avatar, AvatarUploader paginates_per 10 has_many :users belongs_to :airport @@ -8,14 +9,18 @@ class Aircompany < ActiveRecord::Base has_many :timetableap_subs, dependent: :destroy has_many :timetableap_flights, dependent: :destroy has_many :aphubs, dependent: :destroy - attr_accessible :awb_prefix, :airline_name_eng, :airline_name_rus, :airport_id, :iata_code, :icao_code, :al_start, :al_finish, :country_id - validates :iata_code, presence: true, length: { is: 2 } - validates :icao_code, presence: true, length: { is: 3 } - validates :airline_name_eng, presence: true, length: { minimum: 2 } - validates :airline_name_rus, presence: true, length: { minimum: 2 } - validates :airport_id, presence: true, numericality: { only_integer: true } - validates :country_id, presence: true, numericality: { only_integer: true } - validates :al_start, presence: true + has_many :childs, class_name: "Aircompany", + foreign_key: "manager_id" + belongs_to :manager, class_name: "Aircompany" + attr_accessible :awb_prefix, :airline_name_eng, :airline_name_rus, :airport_id, :iata_code, :icao_code, :al_start, :al_finish, :country_id, :manager_id, :avatar, :avatar_cache + + validates :iata_code, presence: true, length: { is: 2 } + validates :icao_code, presence: true, length: { is: 3 } + validates :airline_name_eng, presence: true, length: { minimum: 2 } + validates :airline_name_rus, presence: true, length: { minimum: 2 } + validates :airport_id, presence: true, numericality: { only_integer: true } + validates :country_id, presence: true, numericality: { only_integer: true } + validates :al_start, presence: true def self.search(search) if search diff --git a/app/models/airport.rb b/app/models/airport.rb index 86c39f57..1d91027d 100644 --- a/app/models/airport.rb +++ b/app/models/airport.rb @@ -1,15 +1,15 @@ class Airport < ActiveRecord::Base include ActiveModel::Validations - paginates_per 30 + paginates_per 20 has_one :apkey, dependent: :destroy has_many :aircompanies, dependent: :destroy belongs_to :town has_many :runway_aps, dependent: :destroy - has_many :timetableaps, dependent: :destroy + has_many :timetableaps, dependent: :destroy, foreign_key: "way_start" belongs_to :country has_many :aphubs attr_accessible :Dist_to_town, :Terminals, :TerminalsColl, :city_eng, :city_rus, :email, :fax, :gmt_offset, :iata_code, :icao_code, :iso_code, :latitude, :longitude, :name_eng, :name_rus, :phone, :runnway_coll, :runway_elevation, :runway_length, :website, :town_id, :aircompanies_count, :country_id, :time_zone - attr_accessor :name, :city_name + attr_accessor :name, :city_name, :ap validates :iata_code, presence: true, length: { is: 3 }, uniqueness: true validates :icao_code, presence: true, length: { is: 4 } validates :name_eng, presence: true, length: { minimum: 2 } @@ -32,6 +32,4 @@ def self.search(search) all end end - - end diff --git a/app/models/apkey.rb b/app/models/apkey.rb index b053084d..ee2ebce2 100644 --- a/app/models/apkey.rb +++ b/app/models/apkey.rb @@ -1,7 +1,7 @@ class Apkey < ActiveRecord::Base include ActiveModel::Validations belongs_to :airport - has_many :timeiableaps + has_many :timetableaps, dependent: :destroy, foreign_key: "way_end" attr_accessible :airport_id validates :airport_id, presence: true, numericality: { only_integer: true } end diff --git a/app/models/country.rb b/app/models/country.rb index c19205b2..79fc883d 100644 --- a/app/models/country.rb +++ b/app/models/country.rb @@ -2,6 +2,7 @@ class Country < ActiveRecord::Base include ActiveModel::Validations has_many :airports has_many :towns +has_many :users has_many :aircompanies attr_accessible :country_iata_code, :country_icao_code, :country_name, :country_number diff --git a/app/models/rw_station.rb b/app/models/rw_station.rb deleted file mode 100644 index 65c99379..00000000 --- a/app/models/rw_station.rb +++ /dev/null @@ -1,6 +0,0 @@ -class RwStation < ActiveRecord::Base -include ActiveModel::Validations -belongs_to :rw_typestation - attr_accessible :rw_zone, :name_eng, :name_rus, :rw_typestation_id, :rw_route_id -end - diff --git a/app/models/rw_typestation.rb b/app/models/rw_typestation.rb deleted file mode 100644 index 01f67e73..00000000 --- a/app/models/rw_typestation.rb +++ /dev/null @@ -1,6 +0,0 @@ -class RwTypestation < ActiveRecord::Base -include ActiveModel::Validations -has_many :rw_stations - attr_accessible :typestation_name -end - diff --git a/app/models/station.rb b/app/models/station.rb new file mode 100644 index 00000000..f5bb8e6d --- /dev/null +++ b/app/models/station.rb @@ -0,0 +1,5 @@ +class Station < ActiveRecord::Base +paginates_per 100 +belongs_to :station_type +belongs_to :station_zone +end diff --git a/app/models/station_type.rb b/app/models/station_type.rb new file mode 100644 index 00000000..0b375634 --- /dev/null +++ b/app/models/station_type.rb @@ -0,0 +1,3 @@ +class StationType < ActiveRecord::Base +has_many :stations +end diff --git a/app/models/station_zone.rb b/app/models/station_zone.rb new file mode 100644 index 00000000..310aae79 --- /dev/null +++ b/app/models/station_zone.rb @@ -0,0 +1,3 @@ +class StationZone < ActiveRecord::Base +has_many :stations +end diff --git a/app/models/timetableap.rb b/app/models/timetableap.rb index 85c61818..2a8f10aa 100644 --- a/app/models/timetableap.rb +++ b/app/models/timetableap.rb @@ -1,5 +1,6 @@ class Timetableap < ActiveRecord::Base include ActiveModel::Validations + paginates_per 100 has_many :timetableap_subs belongs_to :aircompany, inverse_of: :timetableaps, :counter_cache => true belongs_to :aircraft @@ -8,26 +9,31 @@ class Timetableap < ActiveRecord::Base belongs_to :apkey, foreign_key: "way_end" has_many :timetableapSub, dependent: :destroy attr_accessible :aircompany_id, :DateOfEndNav, :DateOfStartNav, :Flight_Number, :GateEnd, :GateStart, :TermEnd, :TermStart, :TimeEnd, :TimeStart, :aircraft_id, :e0, :e1, :e2, :e3, :e4, :e5, :e6, :s0, :s1, :s2, :s3, :s4, :s5, :s6, :way_end, :way_start - attr_accessor :twrus, :aprus, :timeIN, :bgcolor, :fstatus, :airline, :al_plane, :plane_al, :ap2, :timeEnd, :timeStart + attr_accessor :twrus, :aprus, :f_twrus, :f_aprus, :s_twrus, :s_aprus, :timeIN, :bgcolor, :fstatus, :airline, :al_plane, :plane_al, :ap2, :timeEnd, :timeStart, :ap, :s_ap, :f_ap validates :aircompany_id, presence: true, numericality: { only_integer: true } validates :way_start, presence: true, numericality: { only_integer: true } validates :way_end, presence: true, numericality: { only_integer: true } validates :DateOfEndNav, presence: true validates :DateOfStartNav, presence: true validates :Flight_Number, presence: true, numericality: { only_integer: true }, - length: { maximum: 9999 } -# uniqueness: { scope: :aircompany_id, message: "should happen once per year" } + length: { maximum: 9999 }, + uniqueness: { scope: :aircompany_id, message: "should happen once per year" } def self.search(start_ap,end_ap,search_al) - if start_ap + if search_al where('way_start LIKE ? and way_end LIKE ? and aircompany_id LIKE ?', "%#{start_ap}%", "%#{end_ap}%", "%#{search_al}%") else all end end - def self.ufnumber - + def self.count_out(airport_id) + end + + def self.count_in(airport_id) + end + + def self.count_all(airport_id) end def aircompany_airline_name_rus diff --git a/app/models/timetableap_sub.rb b/app/models/timetableap_sub.rb index d8cb9921..60d47ad8 100644 --- a/app/models/timetableap_sub.rb +++ b/app/models/timetableap_sub.rb @@ -5,5 +5,12 @@ class TimetableapSub < ActiveRecord::Base ## belongs_to :airport, foreign_key: "way_start", dependent: :destroy ## belongs_to :apkey, foreign_key: "way_end", dependent: :destroy attr_accessible :aircompany_id, :timetableap_id, :Flight_Number - attr_accessor :twrus, :aprus, :timeIN, :bgcolor, :fstatus, :airline, :al_plane, :plane_al, :ap2, :timeEnd, :timeStart, :apkey + attr_accessor :twrus, :aprus, :f_twrus, :f_aprus, :s_twrus, :s_aprus, :timeIN, :bgcolor, :fstatus, :airline, :al_plane, :plane_al, :ap2, :timeEnd, :timeStart, :apkey, :ap, :s_ap, :f_ap + def self.search(search_al) + if search_al + where('aircompany_id LIKE ?', "%#{search_al}%") + else + all + end + end end diff --git a/app/models/town.rb b/app/models/town.rb index ef24d37a..3e7cc27e 100644 --- a/app/models/town.rb +++ b/app/models/town.rb @@ -15,7 +15,7 @@ def twdata def self.search(search) if search - where('country LIKE ? OR city LIKE ? OR accent_city LIKE ? OR region = ?', "%#{search}%", "%#{search}%", "%#{search}%", "#{search}") + where('city LIKE ? OR accent_city LIKE ? OR region = ?', "%#{search}%", "%#{search}%", "%#{search}%") else all end diff --git a/app/models/user.rb b/app/models/user.rb index 444077bb..143f06ae 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,5 +1,6 @@ class User < ActiveRecord::Base include ActiveModel::Validations +mount_uploader :avatar, AvatarUploader enum role: [:unknown, :user, :vip, :admin, :alclient, :apclient] after_initialize :set_default_role, :if => :new_record? @@ -13,6 +14,7 @@ def set_default_role has_many :user_tracings belongs_to :user_theme belongs_to :town + belongs_to :country # Include default devise modules. Others available are: # :token_authenticatable, :confirmable, # :lockable, :timeoutable and :omniauthable @@ -37,8 +39,8 @@ def set_default_role :length => {:minimum => 3, :maximum => 70}, :uniqueness => {:case_sensitive => false }, :format => {:with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i} - has_attached_file :avatar, :styles => { :big => "600x600>", :medium_400 => "400x400>", :medium_300 => "300x300>", :small => "200x200>", :thumb => "100x100>" }, :default_url => "/images/:style/missing.png" - validates_attachment_content_type :avatar, :content_type => /\Aimage\/.*\Z/ +# has_attached_file :avatar, :styles => { :big => "600x600>", :medium_400 => "400x400>", :medium_300 => "300x300>", :small => "200x200>", :thumb => "100x100>" }, :thumb_50 => "50x50>", :default_url => "/images/:style/missing.png" +# validates_attachment_content_type :avatar, :content_type => /\Aimage\/.*\Z/ def set_default_role self.role ||= :user diff --git a/app/models/zones_station.rb b/app/models/zones_station.rb deleted file mode 100644 index 723be852..00000000 --- a/app/models/zones_station.rb +++ /dev/null @@ -1,7 +0,0 @@ -class ZonesStation < ActiveRecord::Base -include ActiveModel::Validations -cattr_reader :per_page -@@per_page = 10 - attr_accessible :code_station, :name, :region_id -end - diff --git a/app/policies/aphub_policy.rb b/app/policies/aphub_policy.rb new file mode 100644 index 00000000..f5e2d70c --- /dev/null +++ b/app/policies/aphub_policy.rb @@ -0,0 +1,3 @@ +class AphubPolicy < ApplicationPolicy + +end diff --git a/app/policies/country_policy.rb b/app/policies/country_policy.rb index 636c228c..272d2e0c 100644 --- a/app/policies/country_policy.rb +++ b/app/policies/country_policy.rb @@ -11,6 +11,10 @@ def ap_show? readers end + def ap_show_ajax? + readers + end + def tw_show? readers end diff --git a/app/policies/runway_ap_policy.rb b/app/policies/runway_ap_policy.rb new file mode 100644 index 00000000..ebda8c94 --- /dev/null +++ b/app/policies/runway_ap_policy.rb @@ -0,0 +1,3 @@ +class RunwayApPolicy < ApplicationPolicy + +end diff --git a/app/policies/station_policy.rb b/app/policies/station_policy.rb new file mode 100644 index 00000000..e1d6fc61 --- /dev/null +++ b/app/policies/station_policy.rb @@ -0,0 +1,3 @@ +class StationPolicy < ApplicationPolicy + +end diff --git a/app/policies/station_type_policy.rb b/app/policies/station_type_policy.rb new file mode 100644 index 00000000..2d00f2c9 --- /dev/null +++ b/app/policies/station_type_policy.rb @@ -0,0 +1,3 @@ +class StationTypePolicy < ApplicationPolicy + +end diff --git a/app/policies/station_zone_policy.rb b/app/policies/station_zone_policy.rb new file mode 100644 index 00000000..51b4e853 --- /dev/null +++ b/app/policies/station_zone_policy.rb @@ -0,0 +1,3 @@ +class StationZonePolicy < ApplicationPolicy + +end diff --git a/app/policies/timetableap_policy.rb b/app/policies/timetableap_policy.rb index 894ee7dd..eba29aae 100644 --- a/app/policies/timetableap_policy.rb +++ b/app/policies/timetableap_policy.rb @@ -3,6 +3,10 @@ def ttair_admin? admin end + def search_tt? + readers + end + def flight_state? readers end diff --git a/app/services/create_admin_service.rb b/app/services/create_admin_service.rb index 7861fcc2..74d0411b 100644 --- a/app/services/create_admin_service.rb +++ b/app/services/create_admin_service.rb @@ -1,9 +1,9 @@ class CreateAdminService def call user = User.find_or_create_by!(email: Rails.application.secrets.admin_email) do |user| - user.password = Rails.application.secrets.admin_password - user.password_confirmation = Rails.application.secrets.admin_password - user.admin! - end + user.password = Rails.application.secrets.admin_password + user.password_confirmation = Rails.application.secrets.admin_password + user.admin! + end end end diff --git a/app/uploaders/avatar_uploader.rb b/app/uploaders/avatar_uploader.rb new file mode 100644 index 00000000..a0b247ee --- /dev/null +++ b/app/uploaders/avatar_uploader.rb @@ -0,0 +1,84 @@ +# encoding: utf-8 + +class AvatarUploader < CarrierWave::Uploader::Base +include CarrierWave::MiniMagick + + # Include RMagick or MiniMagick support: + # include CarrierWave::RMagick + # include CarrierWave::MiniMagick + + # Choose what kind of storage to use for this uploader: + storage :file + # storage :fog + + # Override the directory where uploaded files will be stored. + # This is a sensible default for uploaders that are meant to be mounted: + def store_dir + "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" + end + + # Provide a default URL as a default if there hasn't been a file uploaded: + # def default_url + # # For Rails 3.1+ asset pipeline compatibility: + # # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) + # + # "/images/fallback/" + [version_name, "default.png"].compact.join('_') + # end + + # Process files as they are uploaded: + # process :scale => [200, 300] + # + # def scale(width, height) + # # do something + # end + + # Create different versions of your uploaded files: + # version :thumb do + # process :resize_to_fit => [50, 50] + # end + version :thumb_50 do + process :resize_to_fit => [50, 50] + end + + version :thumb_80 do + process :resize_to_fit => [80, 80] + end + + version :size_100 do + process :resize_to_fit => [100, 100] + end + + version :size_200 do + process :resize_to_fit => [200, 200] + end + + version :size_300 do + process :resize_to_fit => [300, 300] + end + + version :size_400 do + process :resize_to_fit => [400, 400] + end + + version :size_500 do + process :resize_to_fit => [500, 500] + end + + version :size_600 do + process :resize_to_fit => [600, 600] + end + + + # Add a white list of extensions which are allowed to be uploaded. + # For images you might use something like this: + # def extension_white_list + # %w(jpg jpeg gif png) + # end + + # Override the filename of the uploaded files: + # Avoid using model.id or version_name here, see uploader/store.rb for details. + # def filename + # "something.jpg" if original_filename + # end + +end diff --git a/app/views/aircompanies/_aircompanies.html.erb b/app/views/aircompanies/_aircompanies.html.erb deleted file mode 100644 index e86bb03f..00000000 --- a/app/views/aircompanies/_aircompanies.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<%= hidden_field_tag :direction, params[:direction]%> -<%= hidden_field_tag :sort, params[:sort]%> -<%= render "aircompanies/paginate_top"%> -<%= render "aircompanies/aircompanies_table"%> -<%= render "aircompanies/paginate_botton"%> - diff --git a/app/views/aircompanies/_aircompanies.html.haml b/app/views/aircompanies/_aircompanies.html.haml new file mode 100644 index 00000000..11725dd9 --- /dev/null +++ b/app/views/aircompanies/_aircompanies.html.haml @@ -0,0 +1,3 @@ += render "aircompanies/paginate_top" += render "aircompanies/aircompanies_table" += render "aircompanies/paginate_botton" diff --git a/app/views/aircompanies/_aircompanies.mobile.erb b/app/views/aircompanies/_aircompanies.mobile.erb deleted file mode 100644 index 0201cc6d..00000000 --- a/app/views/aircompanies/_aircompanies.mobile.erb +++ /dev/null @@ -1,4 +0,0 @@ -<%= render "aircompanies/paginate_top.mobile"%> -<%= render "aircompanies/aircompanies_table.mobile"%> -<%= render "aircompanies/paginate_botton.mobile"%> - diff --git a/app/views/aircompanies/_aircompanies.mobile.haml b/app/views/aircompanies/_aircompanies.mobile.haml new file mode 100644 index 00000000..2d86c83a --- /dev/null +++ b/app/views/aircompanies/_aircompanies.mobile.haml @@ -0,0 +1,3 @@ += render "aircompanies/paginate_top.mobile" += render "aircompanies/aircompanies_table.mobile" += render "aircompanies/paginate_botton.mobile" diff --git a/app/views/aircompanies/_aircompanies_table.html.erb b/app/views/aircompanies/_aircompanies_table.html.erb deleted file mode 100644 index 34d1d26d..00000000 --- a/app/views/aircompanies/_aircompanies_table.html.erb +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - -
    -<% @aircompanies.each do |aircompany| %> - - - - - - - - - - - - <% if policy(aircompany).edit? %> - - <%end%> - <% if policy(aircompany).destroy? %> - - <%end%> - -<% end %> -
    <%= sortable "id"%>Label<%=sortable "iata_code"%><%=sortable "icao_code"%><%=sortable "airline_name_eng"%><%=sortable "airline_name_rus"%><%=sortable "airport"%><%=sortable "timetableaps_count"%> <%=sortable "al_start"%><%=sortable "al_finish"%>
    <%= aircompany.id %><%= link_to image_tag(aircompany.image, height: '80'), aircompany%><%= aircompany.iata_code %><%= aircompany.icao_code %><%= link_to aircompany.airline_name_eng, aircompany %><%= link_to aircompany.airline_name_rus, aircompany %><%= link_to aircompany.airport.name_rus, aircompany.airport %>
    - (г.<%= link_to aircompany.airport.town.city_rus, country_town_path(aircompany.country, aircompany.airport.town_id) unless aircompany.airport.town.blank?%>)
    <%= aircompany.timetableaps_count%><%= aircompany.al_start %><%= aircompany.al_finish %><%= link_to 'Edit', edit_aircompany_path(aircompany) %><%= link_to 'Destroy', aircompany, method: :delete, data: { confirm: 'Are you sure?' } %>
    - diff --git a/app/views/aircompanies/_aircompanies_table.html.haml b/app/views/aircompanies/_aircompanies_table.html.haml new file mode 100644 index 00000000..d13f3fed --- /dev/null +++ b/app/views/aircompanies/_aircompanies_table.html.haml @@ -0,0 +1,36 @@ +%table.table.table-striped.table-hover.table-condensed + %tr + %th= sortable "id" + %th Label + %th= sortable "iata_code" + %th= sortable "icao_code" + %th= sortable "airline_name_eng" + %th= sortable "airline_name_rus" + %th= sortable "airport" + %th + = sortable "timetableaps_count" + %th= sortable "al_start" + %th= sortable "al_finish" + %th + %th + %br/ + - @aircompanies.each do |aircompany| + %tr + %td= aircompany.id + %td + = image_tag aircompany.avatar.thumb_80 if aircompany.avatar? + %td= aircompany.iata_code + %td= aircompany.icao_code + %td= link_to aircompany.airline_name_eng, aircompany + %td= link_to aircompany.airline_name_rus, aircompany + %td + = link_to aircompany.airport.name_rus, aircompany.airport + %br/ + (г.#{link_to aircompany.airport.town.city_rus, country_town_path(aircompany.country, aircompany.airport.town_id) unless aircompany.airport.town.blank?}) + %td= aircompany.timetableaps_count + %td= aircompany.al_start + %td= aircompany.al_finish + - if policy(aircompany).edit? + %td= link_to 'Edit', edit_aircompany_path(aircompany) + - if policy(aircompany).destroy? + %td= link_to 'Destroy', aircompany, method: :delete, data: { confirm: 'Are you sure?' } diff --git a/app/views/aircompanies/_aircompanies_table.mobile.erb b/app/views/aircompanies/_aircompanies_table.mobile.erb deleted file mode 100644 index a8922a2d..00000000 --- a/app/views/aircompanies/_aircompanies_table.mobile.erb +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - -
    -<% @aircompanies.each do |aircompany| %> - - - - - - - - - - - - <% if policy(aircompany).edit? %> - - <% end %> - <% if policy(aircompany).destroy? %> - - <% end %> - -<% end %> -
    <%= sortable "id"%>Label<%=sortable "iata_code"%><%=sortable "icao_code"%><%=sortable "airline_name_eng"%><%=sortable "airline_name_rus"%><%=sortable "airport_id"%><%=sortable "timetableaps_count"%><%=sortable "al_start"%><%=sortable "al_finish"%>
    <%= aircompany.id %><%= link_to image_tag(aircompany.image, height: '80'), aircompany%><%= aircompany.iata_code %><%= aircompany.icao_code %><%= link_to aircompany.airline_name_eng, aircompany %><%= link_to aircompany.airline_name_rus, aircompany %><%= link_to aircompany.airport.name_rus, aircompany.airport %> - (г.<%= link_to aircompany.airport.town.city_rus, country_town_path(aircompany.country, aircompany.airport.town_id) unless aircompany.airport.town.blank?%>)<%= aircompany.timetableaps_count%><%= aircompany.al_start %><%= aircompany.al_finish %><%= link_to 'Edit', edit_aircompany_path(aircompany) %><%= link_to 'Destroy', aircompany, method: :delete, data: { confirm: 'Are you sure?' } %>
    - diff --git a/app/views/aircompanies/_aircompanies_table.mobile.haml b/app/views/aircompanies/_aircompanies_table.mobile.haml new file mode 100644 index 00000000..0700cb2d --- /dev/null +++ b/app/views/aircompanies/_aircompanies_table.mobile.haml @@ -0,0 +1,34 @@ +%table.table + %thead + %tr + %th= sortable "id" + %th Label + %th= sortable "iata_code" + %th= sortable "icao_code" + %th= sortable "airline_name_eng" + %th= sortable "airline_name_rus" + %th= sortable "airport_id" + %th= sortable "timetableaps_count" + %th= sortable "al_start" + %th= sortable "al_finish" + %th + %th + %tbody + - @aircompanies.each do |aircompany| + %tr + %td= aircompany.id + %td= image_tag aircompany.avatar.thumb_80 if aircompany.avatar? + %td= aircompany.iata_code + %td= aircompany.icao_code + %td= link_to aircompany.airline_name_eng, aircompany + %td= link_to aircompany.airline_name_rus, aircompany + %td + = link_to aircompany.airport.name_rus, aircompany.airport + (г.#{link_to aircompany.airport.town.city_rus, country_town_path(aircompany.country, aircompany.airport.town_id) unless aircompany.airport.town.blank?}) + %td= aircompany.timetableaps_count + %td= aircompany.al_start + %td= aircompany.al_finish + - if policy(aircompany).edit? + %td= link_to 'Edit', edit_aircompany_path(aircompany) + - if policy(aircompany).destroy? + %td= link_to 'Destroy', aircompany, method: :delete, data: { confirm: 'Are you sure?' } diff --git a/app/views/aircompanies/_al_info.html.erb b/app/views/aircompanies/_al_info.html.erb deleted file mode 100644 index e06c020a..00000000 --- a/app/views/aircompanies/_al_info.html.erb +++ /dev/null @@ -1,53 +0,0 @@ -
    -

    - Iata code: - <%= @aircompany.iata_code %> -

    - -

    - Icao code: - <%= @aircompany.icao_code %> -

    - -

    - Awb prefix: - <%= @aircompany.awb_prefix %> -

    - -

    - Airline name eng: - <%= @aircompany.airline_name_eng %> -

    - -

    - Airline name rus: - <%= @aircompany.airline_name_rus %> -

    - -

    - Base airport: - <%= @aircompany.airport.name_rus %> (г.<%= @aircompany.airport.city_rus %>) -

    - -

    - Country: - <%= @aircompany.country.country_name %> -

    - -

    - hubs: - <% @aircompany.aphubs.each {|x|%> - <%= link_to x.airport.name_rus, x.airport%> - <%}%> -

    - -

    - Start: - <%= @aircompany.al_start %> -

    - -

    - Finish: - <%= @aircompany.al_finish %> -

    -
    diff --git a/app/views/aircompanies/_al_info.html.haml b/app/views/aircompanies/_al_info.html.haml new file mode 100644 index 00000000..5fbd8521 --- /dev/null +++ b/app/views/aircompanies/_al_info.html.haml @@ -0,0 +1,39 @@ +#al_info_section.al_info_section + %p + %b Iata code: + = @aircompany.iata_code + %p + %b Icao code: + = @aircompany.icao_code + %p + %b Awb prefix: + = @aircompany.awb_prefix + %p + %b Airline name eng: + = @aircompany.airline_name_eng + %p + %b Airline name rus: + = @aircompany.airline_name_rus + %p + %b Base airport: + = @aircompany.airport.name_rus + (г.#{@aircompany.airport.city_rus}) + %p + %b Country: + = @aircompany.country.country_name + %p + %b hubs: + - @aircompany.aphubs.each {|x| + = link_to x.airport.name_rus, x.airport + - } + = link_to "Add hub", new_aphub_path + %p + %b Start: + = @aircompany.al_start + %p + %b Finish: + = @aircompany.al_finish + - if @aircompany.childs != nil + %p + %b Дочерние компании: + = @aircompany.childs diff --git a/app/views/aircompanies/_al_info.mobile.erb b/app/views/aircompanies/_al_info.mobile.erb deleted file mode 100644 index c9f37f10..00000000 --- a/app/views/aircompanies/_al_info.mobile.erb +++ /dev/null @@ -1,53 +0,0 @@ -
    -

    - Iata code: - <%= @aircompany.iata_code %> -

    - -

    - Icao code: - <%= @aircompany.icao_code %> -

    - -

    - Awb prefix: - <%= @aircompany.awb_prefix %> -

    - -

    - Airline name eng: - <%= @aircompany.airline_name_eng %> -

    - -

    - Airline name rus: - <%= @aircompany.airline_name_rus %> -

    - -

    - Base airport: - <%= @aircompany.airport.name_rus %> (г.<%= @aircompany.airport.city_rus %>) -

    - -

    - Country: - <%= @aircompany.country.country_name %> -

    - -

    - hubs: - <% @aircompany.aphubs.each {|x|%> - <%= link_to x.airport.name_rus, x.airport%> - <%}%> -

    - -

    - Start: - <%= @aircompany.al_start %> -

    - -

    - Finish: - <%= @aircompany.al_finish %> -

    -
    diff --git a/app/views/aircompanies/_al_info.mobile.haml b/app/views/aircompanies/_al_info.mobile.haml new file mode 100644 index 00000000..7d323fb1 --- /dev/null +++ b/app/views/aircompanies/_al_info.mobile.haml @@ -0,0 +1,35 @@ +#al_info_section.al_info_section + %p + %b Iata code: + = @aircompany.iata_code + %p + %b Icao code: + = @aircompany.icao_code + %p + %b Awb prefix: + = @aircompany.awb_prefix + %p + %b Airline name eng: + = @aircompany.airline_name_eng + %p + %b Airline name rus: + = @aircompany.airline_name_rus + %p + %b Base airport: + = @aircompany.airport.name_rus + (г.#{@aircompany.airport.city_rus}) + %p + %b Country: + = @aircompany.country.country_name + %p + %b hubs: + - @aircompany.aphubs.each {|x| + = link_to x.airport.name_rus, x.airport + - } + = link_to "Add hub", new_aphub_path + %p + %b Start: + = @aircompany.al_start + %p + %b Finish: + = @aircompany.al_finish diff --git a/app/views/aircompanies/_al_logo.html.erb b/app/views/aircompanies/_al_logo.html.erb deleted file mode 100644 index 8d8f7e3c..00000000 --- a/app/views/aircompanies/_al_logo.html.erb +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/app/views/aircompanies/_al_logo.html.haml b/app/views/aircompanies/_al_logo.html.haml new file mode 100644 index 00000000..c3d4d341 --- /dev/null +++ b/app/views/aircompanies/_al_logo.html.haml @@ -0,0 +1,2 @@ +.al_logo.al_info_section{:id => "al_logo al_info_section"} + = image_tag @aircompany.avatar.size_300, :class => 'img-circle' if @aircompany.avatar? diff --git a/app/views/aircompanies/_al_logo.mobile.erb b/app/views/aircompanies/_al_logo.mobile.erb deleted file mode 100644 index c436bfb5..00000000 --- a/app/views/aircompanies/_al_logo.mobile.erb +++ /dev/null @@ -1,3 +0,0 @@ -
    -<%= link_to image_tag("/images/air_tm/#{@aircompany.iata_code}.png", height: '300'), @aircompany%> -
    diff --git a/app/views/aircompanies/_al_logo.mobile.haml b/app/views/aircompanies/_al_logo.mobile.haml new file mode 100644 index 00000000..13839155 --- /dev/null +++ b/app/views/aircompanies/_al_logo.mobile.haml @@ -0,0 +1,2 @@ +#al_lgtp + = image_tag @aircompany.avatar.size_300, :class => 'img-circle' if @aircompany.avatar? diff --git a/app/views/aircompanies/_form.html.erb b/app/views/aircompanies/_form.html.erb deleted file mode 100644 index 3a4a73df..00000000 --- a/app/views/aircompanies/_form.html.erb +++ /dev/null @@ -1,54 +0,0 @@ - <%= form_for @aircompany, validate: true do |f| %> - <% if @aircompany.errors.any? %> -
    -

    <%= pluralize(@aircompany.errors.count, "error") %> prohibited this aircompany from being saved:

    - -
      - <% @aircompany.errors.full_messages.each do |msg| %> -
    • <%= msg %>
    • - <% end %> -
    -
    - <% end %> - -
    - <%= f.label :iata_code %> - <%= f.text_field :iata_code, autofocus: true %> -
    -
    - <%= f.label :icao_code %> - <%= f.text_field :icao_code %> -
    -
    - <%= f.label :awb_prefix %> - <%= f.text_field :awb_prefix %> -
    -
    - <%= f.label :airline_name_eng %> - <%= f.text_field :airline_name_eng %> -
    -
    - <%= f.label :airline_name_rus %> - <%= f.text_field :airline_name_rus %> -
    -
    - <%= f.label :Base_airport %> - <%= autocomplete_field_tag 'start', '', autocomplete_airport_name_rus_airports_path, :size => 20, 'data-auto-focus' => true, :update_elements => {:id => '#aircompany_airport_id'}, :value => params[:airport_id] %> - <%= f.hidden_field :airport_id%> -
    -
    - <%= f.label :country_id %> - <%= f.select :country_id, Country.all.collect{|item| [item.country_name, item.id]} %> -
    -
    - <%= f.label :al_start %> - <%= select_year Date.today, start_year: 1950, end_year: Time.now.year, :field_name => :al_start, :prefix => :aircompany%> -
    -
    - <%= f.label :al_finish %> - <%= select_year Date.today, start_year: 1980, end_year: Time.now.year,:field_name => :al_finish, prompt: "Пустое значение", :prefix => :aircompany %> -
    -
    - <%= f.submit %> -
    -<% end %> diff --git a/app/views/aircompanies/_form.html.haml b/app/views/aircompanies/_form.html.haml new file mode 100644 index 00000000..70a77dc6 --- /dev/null +++ b/app/views/aircompanies/_form.html.haml @@ -0,0 +1,46 @@ += form_for @aircompany, validate: true do |f| + - if @aircompany.errors.any? + #error_explanation + %h2 + = pluralize(@aircompany.errors.count, "error") + prohibited this aircompany from being saved: + %ul + - @aircompany.errors.full_messages.each do |msg| + %li= msg + .field + %label My Avatar + = f.file_field :avatar + = f.hidden_field :avatar_cache + .field + = f.label :iata_code + = f.text_field :iata_code, autofocus: true + .field + = f.label :icao_code + = f.text_field :icao_code + .field + = f.label :awb_prefix + = f.text_field :awb_prefix + .field + = f.label :airline_name_eng + = f.text_field :airline_name_eng + .field + = f.label :airline_name_rus + = f.text_field :airline_name_rus + .field + = f.label :Base_airport + = autocomplete_field_tag 'start', '', autocomplete_airport_name_rus_airports_path, :size => 20, 'data-auto-focus' => true, :update_elements => {:id => '#aircompany_airport_id'}, :value => params[:airport_id] + = f.hidden_field :airport_id + .field + = f.label :country_id + = f.select :country_id, Country.order(:country_name).collect{|item| [item.country_name, item.id]} + .field + = f.label :al_start + = f.select :al_start, 1930..Time.now.year + .field + = f.label :al_finish + = f.select :al_finish, 1960..Time.now.year, :include_blank => "а/к работает" + .field + = f.label :manager_id + = f.collection_select :manager_id, Aircompany.where(al_finish: nil).order(:airline_name_rus), :id, :airline_name_rus.to_s, :include_blank => "Недочерняя компания" + .actions + = f.submit diff --git a/app/views/aircompanies/_form.mobile.erb b/app/views/aircompanies/_form.mobile.erb deleted file mode 100644 index 6c5265ff..00000000 --- a/app/views/aircompanies/_form.mobile.erb +++ /dev/null @@ -1,54 +0,0 @@ - <%= form_for(@aircompany) do |f| %> - <% if @aircompany.errors.any? %> -
    -

    <%= pluralize(@aircompany.errors.count, "error") %> prohibited this aircompany from being saved:

    - -
      - <% @aircompany.errors.full_messages.each do |msg| %> -
    • <%= msg %>
    • - <% end %> -
    -
    - <% end %> - -
    - <%= f.label :iata_code %>
    - <%= f.text_field :iata_code %> -
    -
    - <%= f.label :icao_code %>
    - <%= f.text_field :icao_code %> -
    -
    - <%= f.label :awb_prefix %>
    - <%= f.text_field :awb_prefix %> -
    -
    - <%= f.label :airline_name_eng %>
    - <%= f.text_field :airline_name_eng %> -
    -
    - <%= f.label :airline_name_rus %>
    - <%= f.text_field :airline_name_rus %> -
    -
    - - <%= f.label :Base_airport %>
    - <%= f.select :airport_id, Airport.where(iso_code: 'EZ').collect{|item| [item.name_rus, item.id]} %> -
    -
    - <%= f.label :country_id %>
    - <%= f.select :country_id, Country.all.collect{|item| [item.country_name, item.id]} %> -
    -
    - <%= f.label :al_start %>
    - <%= f.date_select :al_start, start_year: 1950, end_year: Time.now.year%> -
    -
    - <%= f.label :al_finish %>
    - <%= f.date_select :al_finish, start_year: 1980, end_year: Time.now.year, prompt: "Пустое значение" %> -
    -
    - <%= f.submit %> -
    -<% end %> diff --git a/app/views/aircompanies/_form.mobile.haml b/app/views/aircompanies/_form.mobile.haml new file mode 100644 index 00000000..4efc857a --- /dev/null +++ b/app/views/aircompanies/_form.mobile.haml @@ -0,0 +1,48 @@ += form_for(@aircompany) do |f| + - if @aircompany.errors.any? + #error_explanation + %h2 + = pluralize(@aircompany.errors.count, "error") + prohibited this aircompany from being saved: + %ul + - @aircompany.errors.full_messages.each do |msg| + %li= msg + .field + = f.label :iata_code + %br/ + = f.text_field :iata_code + .field + = f.label :icao_code + %br/ + = f.text_field :icao_code + .field + = f.label :awb_prefix + %br/ + = f.text_field :awb_prefix + .field + = f.label :airline_name_eng + %br/ + = f.text_field :airline_name_eng + .field + = f.label :airline_name_rus + %br/ + = f.text_field :airline_name_rus + .field + = f.label :Base_airport + %br/ + = f.select :airport_id, Airport.where(iso_code: 'EZ').order(:name_rus).collect{|item| [item.name_rus, item.id]} + .field + = f.label :country_id + %br/ + = f.select :country_id, Country.order(:country_name).collect{|item| [item.country_name, item.id]} + .field + = f.label :al_start + = f.select :al_start, 1930..Time.now.year + .field + = f.label :al_finish + = f.select :al_finish, 1960..Time.now.year, :include_blank => "а/к работает" + .field + = f.label :manager_id + = f.collection_select :manager_id, Aircompany.where(al_finish: nil).order(:airline_name_rus), :id, :airline_name_rus.to_s, :include_blank => "а/к независима" + .actions + = f.submit diff --git a/app/views/aircompanies/_index.html.erb b/app/views/aircompanies/_index.html.erb deleted file mode 100644 index 954e63f6..00000000 --- a/app/views/aircompanies/_index.html.erb +++ /dev/null @@ -1,11 +0,0 @@ -

    Airlines of ES

    -<%= form_tag aircompanies_path, :method => 'get', :id => "aircompanies_search" do %> -

    - <%= text_field_tag :search, params[:search], autofocus: true %> - <%= submit_tag "Search", :name => nil %> -

    -
    <%= render 'aircompanies/aircompanies' %>
    -<% end %> -<% if policy(@aircompanies).new? %> -<%= link_to 'New Aircompany', new_aircompany_path, class: "jqbutton" %> -<%end%> diff --git a/app/views/aircompanies/_index.html.haml b/app/views/aircompanies/_index.html.haml new file mode 100644 index 00000000..e8b3599a --- /dev/null +++ b/app/views/aircompanies/_index.html.haml @@ -0,0 +1,10 @@ +%h1 Airlines of ES += form_tag aircompanies_path, :method => 'get', :id => "aircompanies_search", :remote => true do + %p + = text_field_tag :search, params[:search], autofocus: true + = submit_tag "Search", :name => nil + = render "layouts/per_page" + #aircompanies= render 'aircompanies/aircompanies' +- if policy(@aircompanies).new? + = render "layouts/per_page" + = link_to 'New Aircompany', new_aircompany_path, class: "jqbutton" diff --git a/app/views/aircompanies/_index.mobile.erb b/app/views/aircompanies/_index.mobile.erb deleted file mode 100644 index 8900b32c..00000000 --- a/app/views/aircompanies/_index.mobile.erb +++ /dev/null @@ -1,12 +0,0 @@ -

    Airlines of ES

    -

    <%= @aircompanies.count%> aircompanies

    -<%= form_tag aircompanies_path, :method => 'get', :id => "aircompanies_search" do %> -

    - <%= text_field_tag :search, params[:search] %> - <%= submit_tag "Search", :name => nil %> -

    -
    <%= render 'aircompanies/aircompanies.mobile' %>
    -<% end %> -<% if policy(@aircompanies).new? %> -<%= link_to 'New Aircompany', new_aircompany_path, class: "jqbutton" %> -<%end%> diff --git a/app/views/aircompanies/_index.mobile.haml b/app/views/aircompanies/_index.mobile.haml new file mode 100644 index 00000000..90f43963 --- /dev/null +++ b/app/views/aircompanies/_index.mobile.haml @@ -0,0 +1,9 @@ +%h1 Airlines of ES += render "layouts/per_page" += form_tag aircompanies_path, :method => 'get', :id => "aircompanies_search" do + %p + = text_field_tag :search, params[:search] + = submit_tag "Search", :name => nil + #aircompanies= render 'aircompanies/aircompanies.mobile' +- if policy(@aircompanies).new? + = link_to 'New Aircompany', new_aircompany_path, class: "jqbutton" diff --git a/app/views/aircompanies/_paginate_botton.html.erb b/app/views/aircompanies/_paginate_botton.html.erb deleted file mode 100644 index b395a8ec..00000000 --- a/app/views/aircompanies/_paginate_botton.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    -
    - <%= page_entries_info @aircompanies %> -
    - <%= paginate @aircompanies%> -
    diff --git a/app/views/aircompanies/_paginate_botton.html.haml b/app/views/aircompanies/_paginate_botton.html.haml new file mode 100644 index 00000000..d03a79aa --- /dev/null +++ b/app/views/aircompanies/_paginate_botton.html.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + .page_info + = page_entries_info @aircompanies + = paginate @aircompanies, :remote => true diff --git a/app/views/aircompanies/_paginate_botton.mobile.erb b/app/views/aircompanies/_paginate_botton.mobile.erb deleted file mode 100644 index b395a8ec..00000000 --- a/app/views/aircompanies/_paginate_botton.mobile.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    -
    - <%= page_entries_info @aircompanies %> -
    - <%= paginate @aircompanies%> -
    diff --git a/app/views/aircompanies/_paginate_botton.mobile.haml b/app/views/aircompanies/_paginate_botton.mobile.haml new file mode 100644 index 00000000..cd809c97 --- /dev/null +++ b/app/views/aircompanies/_paginate_botton.mobile.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + .page_info + = page_entries_info @aircompanies + = paginate @aircompanies diff --git a/app/views/aircompanies/_paginate_top.html.erb b/app/views/aircompanies/_paginate_top.html.erb deleted file mode 100644 index b5898a34..00000000 --- a/app/views/aircompanies/_paginate_top.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    - <%= paginate @aircompanies%> -
    - <%= page_entries_info @aircompanies %> -
    -
    diff --git a/app/views/aircompanies/_paginate_top.html.haml b/app/views/aircompanies/_paginate_top.html.haml new file mode 100644 index 00000000..8b6d9476 --- /dev/null +++ b/app/views/aircompanies/_paginate_top.html.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + = paginate @aircompanies, :remote => true + .page_info + = page_entries_info @aircompanies diff --git a/app/views/aircompanies/_paginate_top.mobile.erb b/app/views/aircompanies/_paginate_top.mobile.erb deleted file mode 100644 index b5898a34..00000000 --- a/app/views/aircompanies/_paginate_top.mobile.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    - <%= paginate @aircompanies%> -
    - <%= page_entries_info @aircompanies %> -
    -
    diff --git a/app/views/aircompanies/_paginate_top.mobile.haml b/app/views/aircompanies/_paginate_top.mobile.haml new file mode 100644 index 00000000..1f374460 --- /dev/null +++ b/app/views/aircompanies/_paginate_top.mobile.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + = paginate @aircompanies + .page_info + = page_entries_info @aircompanies diff --git a/app/views/aircompanies/admin_al.html.erb b/app/views/aircompanies/admin_al.html.erb deleted file mode 100644 index a173662b..00000000 --- a/app/views/aircompanies/admin_al.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

    Авиакомпании

    -<%= netzke :aircompanies, - :border => true, - :header => false -# :view_config => { -# :force_fit => true # force the columns to occupy all the available width -# } -%> - diff --git a/app/views/aircompanies/admin_al.html.haml b/app/views/aircompanies/admin_al.html.haml new file mode 100644 index 00000000..f211d3db --- /dev/null +++ b/app/views/aircompanies/admin_al.html.haml @@ -0,0 +1,7 @@ +%h1 Авиакомпании += netzke :aircompanies, | + :border => true, | + :header => false | + # :view_config => { | + # :force_fit => true # force the columns to occupy all the available width | + # } | diff --git a/app/views/aircompanies/admin_al.mobile.erb b/app/views/aircompanies/admin_al.mobile.erb deleted file mode 100644 index a173662b..00000000 --- a/app/views/aircompanies/admin_al.mobile.erb +++ /dev/null @@ -1,9 +0,0 @@ -

    Авиакомпании

    -<%= netzke :aircompanies, - :border => true, - :header => false -# :view_config => { -# :force_fit => true # force the columns to occupy all the available width -# } -%> - diff --git a/app/views/aircompanies/admin_al.mobile.haml b/app/views/aircompanies/admin_al.mobile.haml new file mode 100644 index 00000000..f211d3db --- /dev/null +++ b/app/views/aircompanies/admin_al.mobile.haml @@ -0,0 +1,7 @@ +%h1 Авиакомпании += netzke :aircompanies, | + :border => true, | + :header => false | + # :view_config => { | + # :force_fit => true # force the columns to occupy all the available width | + # } | diff --git a/app/views/aircompanies/edit.html.erb b/app/views/aircompanies/edit.html.erb deleted file mode 100644 index 378a77ec..00000000 --- a/app/views/aircompanies/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -

    Editing aircompany

    - -<%= render 'form' %> - -<%= link_to 'Show', @aircompany %> | -<%= link_to 'Back', aircompanies_path %> diff --git a/app/views/aircompanies/edit.html.haml b/app/views/aircompanies/edit.html.haml new file mode 100644 index 00000000..9f34dc52 --- /dev/null +++ b/app/views/aircompanies/edit.html.haml @@ -0,0 +1,5 @@ +%h1 Editing aircompany += render 'form' += link_to 'Show', @aircompany +| += link_to 'Back', aircompanies_path diff --git a/app/views/aircompanies/edit.mobile.erb b/app/views/aircompanies/edit.mobile.erb deleted file mode 100644 index 378a77ec..00000000 --- a/app/views/aircompanies/edit.mobile.erb +++ /dev/null @@ -1,6 +0,0 @@ -

    Editing aircompany

    - -<%= render 'form' %> - -<%= link_to 'Show', @aircompany %> | -<%= link_to 'Back', aircompanies_path %> diff --git a/app/views/aircompanies/edit.mobile.haml b/app/views/aircompanies/edit.mobile.haml new file mode 100644 index 00000000..9f34dc52 --- /dev/null +++ b/app/views/aircompanies/edit.mobile.haml @@ -0,0 +1,5 @@ +%h1 Editing aircompany += render 'form' += link_to 'Show', @aircompany +| += link_to 'Back', aircompanies_path diff --git a/app/views/aircompanies/index.html.haml b/app/views/aircompanies/index.html.haml index db86d835..4176c8ae 100644 --- a/app/views/aircompanies/index.html.haml +++ b/app/views/aircompanies/index.html.haml @@ -1 +1,2 @@ -= render "aircompanies/index" +.table-responsive + = render "aircompanies/index" diff --git a/app/views/aircompanies/index.mobile.haml b/app/views/aircompanies/index.mobile.haml index f0cf5541..3a5d9941 100644 --- a/app/views/aircompanies/index.mobile.haml +++ b/app/views/aircompanies/index.mobile.haml @@ -1,2 +1,3 @@ -= render "aircompanies/index.mobile" +.table-responsive + = render "aircompanies/index.mobile" diff --git a/app/views/aircompanies/new.html.erb b/app/views/aircompanies/new.html.erb deleted file mode 100644 index be2a5ffb..00000000 --- a/app/views/aircompanies/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

    New aircompany

    - -<%= render 'form' %> - -<%= link_to 'Back', aircompanies_path %> diff --git a/app/views/aircompanies/new.html.haml b/app/views/aircompanies/new.html.haml new file mode 100644 index 00000000..0960b752 --- /dev/null +++ b/app/views/aircompanies/new.html.haml @@ -0,0 +1,3 @@ +%h1 New aircompany += render 'form' += link_to 'Back', aircompanies_path diff --git a/app/views/aircompanies/new.mobile.erb b/app/views/aircompanies/new.mobile.erb deleted file mode 100644 index be2a5ffb..00000000 --- a/app/views/aircompanies/new.mobile.erb +++ /dev/null @@ -1,5 +0,0 @@ -

    New aircompany

    - -<%= render 'form' %> - -<%= link_to 'Back', aircompanies_path %> diff --git a/app/views/aircompanies/new.mobile.haml b/app/views/aircompanies/new.mobile.haml new file mode 100644 index 00000000..0960b752 --- /dev/null +++ b/app/views/aircompanies/new.mobile.haml @@ -0,0 +1,3 @@ +%h1 New aircompany += render 'form' += link_to 'Back', aircompanies_path diff --git a/app/views/aircompanies/show.html.erb b/app/views/aircompanies/show.html.erb deleted file mode 100644 index b47dbeb8..00000000 --- a/app/views/aircompanies/show.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -

    <%= notice %>

    -
    - <%=render "aircompanies/al_logo"%> - <%=render "aircompanies/al_info"%> -
    -
    -
    -

    Рейсы <%= @aircompany.airline_name_rus %> (<%= @aircompany.airline_name_eng%>), выполняемые на собственных самолётах.

    -
    -
    <%= render "timetableaps/timetableaps"%>
    - - - -

    Рейсы <%= @aircompany.airline_name_rus %> (<%= @aircompany.airline_name_eng%>), выполняемые на самолётах других авиакомпаний.

    -
    <%= render "timetableap_subs/index"%>
    -
    -
    -<% if policy(@aircompany).edit? %> - <%= link_to 'Edit', edit_aircompany_path(@aircompany), class: "jqbutton" %> -<%end%> -
    diff --git a/app/views/aircompanies/show.html.haml b/app/views/aircompanies/show.html.haml new file mode 100644 index 00000000..fba915e3 --- /dev/null +++ b/app/views/aircompanies/show.html.haml @@ -0,0 +1,22 @@ +%h1 + Авиакомпания #{@aircompany.airline_name_rus} +- if @aircompany.manager_id != nil + %h3 + (является дочерней авиакомпанией #{link_to @aircompany.manager.airline_name_rus, @aircompany.manager}.) +#al_info.al_info + = render "aircompanies/al_logo" + = render "aircompanies/al_info" +#al_tt.al_tt + %fieldset + %legend + %h2 + Рейсы #{@aircompany.airline_name_rus} (#{@aircompany.airline_name_eng}), выполняемые на собственных самолётах. + #timetableaps= render "timetableaps/timetableaps" + %fielset + %legend + %h2 + Рейсы #{@aircompany.airline_name_rus} (#{@aircompany.airline_name_eng}), выполняемые на самолётах других авиакомпаний. + #timetableap_subs= render "timetableap_subs/index" + %br/ + - if policy(@aircompany).edit? + = link_to 'Edit', edit_aircompany_path(@aircompany), class: "jqbutton" diff --git a/app/views/aircompanies/show.js.haml b/app/views/aircompanies/show.js.haml new file mode 100644 index 00000000..a1b25bbc --- /dev/null +++ b/app/views/aircompanies/show.js.haml @@ -0,0 +1,5 @@ +$("#timetableaps").html("#{escape_javascript(render("timetableaps/timetableaps"))}"); +$('.pagination').html('#{escape_javascript(paginate(@timetableaps, :remote => true).to_s)}'); + +\//$("#timetableap_subs").html("#{escape_javascript(render("timetableap_subs/index"))}"); +\//$('.pagination').html('#{escape_javascript(paginate(@timetableap_subs, :remote => true).to_s)}'); diff --git a/app/views/aircompanies/show.mobile.erb b/app/views/aircompanies/show.mobile.erb deleted file mode 100644 index 46857ea4..00000000 --- a/app/views/aircompanies/show.mobile.erb +++ /dev/null @@ -1,16 +0,0 @@ -

    <%= notice %>

    - -<%=render "aircompanies/al_logo"%> -<%=render "aircompanies/al_info"%> -
    -

    Рейсы <%= @aircompany.airline_name_rus %> (<%= @aircompany.airline_name_eng%>), выполняемые на собственных самолётах.

    -
    -
    <%= render "timetableaps/timetableaps.mobile"%>
    - - - -

    Рейсы <%= @aircompany.airline_name_rus %> (<%= @aircompany.airline_name_eng%>), выполняемые на самолётах других авиакомпаний.

    -
    <%= render "timetableap_subs/index.mobile"%>
    -
    -
    -<%= link_to 'Edit', edit_aircompany_path(@aircompany) %> diff --git a/app/views/aircompanies/show.mobile.haml b/app/views/aircompanies/show.mobile.haml new file mode 100644 index 00000000..5d8a3cdf --- /dev/null +++ b/app/views/aircompanies/show.mobile.haml @@ -0,0 +1,19 @@ +%h1 + Авиакомпания #{@aircompany.airline_name_rus} +- if @aircompany.manager_id != nil + %h3 + (является дочерней авиакомпанией #{link_to @aircompany.manager.airline_name_rus, @aircompany.manager}.) += render "aircompanies/al_logo" += render "aircompanies/al_info" +%fieldset + %legend + %h2 + Рейсы #{@aircompany.airline_name_rus} (#{@aircompany.airline_name_eng}), выполняемые на собственных самолётах. + #timetableaps= render "timetableaps/timetableaps.mobile" + %fielset + %legend + %h2 + Рейсы #{@aircompany.airline_name_rus} (#{@aircompany.airline_name_eng}), выполняемые на самолётах других авиакомпаний. + #timetableap_subs= render "timetableap_subs/index.mobile" + %br/ + = link_to 'Edit', edit_aircompany_path(@aircompany) diff --git a/app/views/aircraft_companies/index.html.haml b/app/views/aircraft_companies/index.html.haml index 2d3a89aa..0f2253c9 100644 --- a/app/views/aircraft_companies/index.html.haml +++ b/app/views/aircraft_companies/index.html.haml @@ -1,6 +1,6 @@ %h1 Listing aircraft_companies -%table +%table.table-striped.table-hover.table-condensed %tr %th Aircraft company %th diff --git a/app/views/aircraft_companies/index.mobile.haml b/app/views/aircraft_companies/index.mobile.haml index 2d3a89aa..0f2253c9 100644 --- a/app/views/aircraft_companies/index.mobile.haml +++ b/app/views/aircraft_companies/index.mobile.haml @@ -1,6 +1,6 @@ %h1 Listing aircraft_companies -%table +%table.table-striped.table-hover.table-condensed %tr %th Aircraft company %th diff --git a/app/views/aircrafts/index.html.haml b/app/views/aircrafts/index.html.haml index 5d05df9d..82ecfda9 100644 --- a/app/views/aircrafts/index.html.haml +++ b/app/views/aircrafts/index.html.haml @@ -1,6 +1,6 @@ %h2 Listing aircrafts -%table +%table.table-striped.table-hover.table-condensed %tr %th Aircraft model %th aircraft company diff --git a/app/views/aircrafts/index.mobile.haml b/app/views/aircrafts/index.mobile.haml index 5d05df9d..82ecfda9 100644 --- a/app/views/aircrafts/index.mobile.haml +++ b/app/views/aircrafts/index.mobile.haml @@ -1,6 +1,6 @@ %h2 Listing aircrafts -%table +%table.table-striped.table-hover.table-condensed %tr %th Aircraft model %th aircraft company diff --git a/app/views/airports/_airports.html.erb b/app/views/airports/_airports.html.erb deleted file mode 100644 index a5d84e9d..00000000 --- a/app/views/airports/_airports.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<%#= hidden_field_tag :direction, params[:direction]%> -<%#= hidden_field_tag :sort, params[:sort]%> -<%= render "airports/airports_paginate_top"%> -<%= render "airports/airports_table"%> -<%= render "airports/airports_paginate_bottom"%> - diff --git a/app/views/airports/_airports.html.haml b/app/views/airports/_airports.html.haml new file mode 100644 index 00000000..f8b2b798 --- /dev/null +++ b/app/views/airports/_airports.html.haml @@ -0,0 +1,4 @@ += render "airports/airports_paginate_top" +.table-responsive + = render "airports/airports_table" += render "airports/airports_paginate_bottom" diff --git a/app/views/airports/_airports.mobile.erb b/app/views/airports/_airports.mobile.erb deleted file mode 100644 index d5b2678f..00000000 --- a/app/views/airports/_airports.mobile.erb +++ /dev/null @@ -1,9 +0,0 @@ -<%#= hidden_field_tag :direction, params[:direction]%> -<%#= hidden_field_tag :sort, params[:sort]%> - -<%#= render "layouts/per_page.mobile"%> -<%= render "airports/airports_paginate_top.mobile"%> -<%= render "airports/airports_table.mobile"%> -<%= render "airports/airports_paginate_bottom.mobile"%> -<%#= render "layouts/per_page.mobile"%> - diff --git a/app/views/airports/_airports.mobile.haml b/app/views/airports/_airports.mobile.haml new file mode 100644 index 00000000..464895a4 --- /dev/null +++ b/app/views/airports/_airports.mobile.haml @@ -0,0 +1,3 @@ += render "airports/airports_paginate_top.mobile" += render "airports/airports_table.mobile" += render "airports/airports_paginate_bottom.mobile" diff --git a/app/views/airports/_airports_paginate_bottom.html.erb b/app/views/airports/_airports_paginate_bottom.html.erb deleted file mode 100644 index d0397442..00000000 --- a/app/views/airports/_airports_paginate_bottom.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    -
    - <%= page_entries_info @airports %> -
    - <%= paginate @airports, :remote => true%> -
    diff --git a/app/views/airports/_airports_paginate_bottom.html.haml b/app/views/airports/_airports_paginate_bottom.html.haml new file mode 100644 index 00000000..834486cd --- /dev/null +++ b/app/views/airports/_airports_paginate_bottom.html.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + .page_info + = page_entries_info @airports + = paginate @airports, :remote => false diff --git a/app/views/airports/_airports_paginate_bottom.mobile.erb b/app/views/airports/_airports_paginate_bottom.mobile.erb deleted file mode 100644 index bd3f31cb..00000000 --- a/app/views/airports/_airports_paginate_bottom.mobile.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    -
    - <%= page_entries_info @airports %> -
    - <%= paginate @airports%> -
    diff --git a/app/views/airports/_airports_paginate_bottom.mobile.haml b/app/views/airports/_airports_paginate_bottom.mobile.haml new file mode 100644 index 00000000..955e3009 --- /dev/null +++ b/app/views/airports/_airports_paginate_bottom.mobile.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + .page_info + = page_entries_info @airports + = paginate @airports diff --git a/app/views/airports/_airports_paginate_top.html.erb b/app/views/airports/_airports_paginate_top.html.erb deleted file mode 100644 index 84b5288e..00000000 --- a/app/views/airports/_airports_paginate_top.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    - <%= paginate @airports, :remote => true%> -
    - <%= page_entries_info @airports %> -
    -
    diff --git a/app/views/airports/_airports_paginate_top.html.haml b/app/views/airports/_airports_paginate_top.html.haml new file mode 100644 index 00000000..1b7bce94 --- /dev/null +++ b/app/views/airports/_airports_paginate_top.html.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + = paginate @airports, :remote => true + .page_info + = page_entries_info @airports diff --git a/app/views/airports/_airports_paginate_top.mobile.erb b/app/views/airports/_airports_paginate_top.mobile.erb deleted file mode 100644 index b47183ad..00000000 --- a/app/views/airports/_airports_paginate_top.mobile.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    - <%= paginate @airports%> -
    - <%= page_entries_info @airports %> -
    -
    diff --git a/app/views/airports/_airports_paginate_top.mobile.haml b/app/views/airports/_airports_paginate_top.mobile.haml new file mode 100644 index 00000000..e48789ca --- /dev/null +++ b/app/views/airports/_airports_paginate_top.mobile.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + = paginate @airports + .page_info + = page_entries_info @airports diff --git a/app/views/airports/_airports_table.html.erb b/app/views/airports/_airports_table.html.erb deleted file mode 100644 index a5c82d0f..00000000 --- a/app/views/airports/_airports_table.html.erb +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - -<% @airports.each do |airport| %> - - - - <% if airport.name_rus.blank? - airport.name = airport.name_eng - else - airport.name = airport.name_rus - end%> - <% if airport.city_rus.blank? - airport.city_name = airport.city_eng - else - airport.city_name = airport.city_rus - end%> - <% if airport.town.blank? - city = airport.city_name - else - if airport.town.city_rus.blank? - city = airport.town.accent_city - else - city = airport.town.city_rus - end - end%> - - - - - <%end%> - <% if policy(airport).destroy? %> - - <%end%> - -<% end %> -
    <%= sortable "iata_code"%><%= sortable "icao_code"%><%= sortable "name_rus"%><%= sortable "city_rus"%><%= sortable "iso_code"%>Расписание и табло.
    <%= airport.iata_code %><%= airport.icao_code %><%= link_to airport.name, airport%><%= link_to city, country_town_path(airport.country, airport.town_id) unless airport.town.blank?%><%= airport.country.country_iata_code %>вылет/прилёт - <% if policy(airport).edit? %> - <%= link_to 'Edit', edit_airport_path(airport) %><%= link_to 'Destroy', airport, method: :delete, data: { confirm: "Вы уверены, что хотите удалить аэропорт "+airport.name_rus+" в городе "+ airport.city_rus} %>
    - diff --git a/app/views/airports/_airports_table.html.haml b/app/views/airports/_airports_table.html.haml new file mode 100644 index 00000000..b01fa701 --- /dev/null +++ b/app/views/airports/_airports_table.html.haml @@ -0,0 +1,56 @@ +%table.table.table-striped.table-hover.table-condensed + %tr + %th= sortable "iata_code" + %th= sortable "icao_code" + %th= sortable "name_rus" + %th= sortable "city_rus" + %th= sortable "latitude" + %th= sortable "longitude" + %th= sortable "iso_code" + %th Runway + %th Расписание и табло. + %th Кол-во рейсов всего||отправлено/принято + %th + %th + %th + - @airports.each do |airport| + %tr + - if airport.name_rus.blank? + - airport.name = airport.name_eng + - else + - airport.name = airport.name_rus + - if airport.city_rus.blank? + - airport.city_name = airport.city_eng + - else + - airport.city_name = airport.city_rus + - if airport.town.blank? + - city = airport.city_name + - else + - if airport.town.city_rus.blank? + - city = airport.town.accent_city + - else + - city = airport.town.city_rus + %td= airport.iata_code + %td= airport.icao_code + %td= link_to airport.name, airport + %td= link_to city, country_town_path(airport.country, airport.town_id) unless airport.town.blank? + %td= airport.latitude + %td= airport.longitude + %td= airport.country.country_iata_code + %td= airport.runway_aps.count + %td + %a{:href => "/airports/#{airport.id}/tablo/out"} вылет + %a{:href => "/airports/#{airport.id}/tablo/in"} прилёт + %a{:href => "/airports/#{airport.id}/tablo"} Общее + %td + - Time.zone = airport.time_zone + - @wday = Time.zone.now.strftime'%w'.to_s + - @aptt_in = airport.apkey.timetableaps.where(way_end: airport.id).where("e#{@wday} = ?",1).count + - @aptt_out = airport.timetableaps.where(way_start: airport.id).where("e#{@wday} = ?",1).count + - @aptt_all = @aptt_in + @aptt_out or 0 + = @aptt_all + ||#{@aptt_out}/#{@aptt_in} + - if policy(airport).edit? + %td= link_to 'Edit', edit_airport_path(airport) + - if policy(airport).destroy? + %td= link_to 'Destroy', airport, method: :delete, data: { confirm: "Вы уверены, что хотите удалить аэропорт "+airport.name_rus+" в городе "+ airport.city_rus} diff --git a/app/views/airports/_airports_table.mobile.erb b/app/views/airports/_airports_table.mobile.erb deleted file mode 100644 index b38f079f..00000000 --- a/app/views/airports/_airports_table.mobile.erb +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - -<% @airports.each do |airport| %> - - - - <% if airport.name_rus.blank? - airport.name = airport.name_eng - else - airport.name = airport.name_rus - end%> - <% if airport.city_rus.blank? - airport.city_name = airport.city_eng - else - airport.city_name = airport.city_rus - end%> - <% if airport.town.blank? - city = airport.city_name - else - if airport.town.city_rus.blank? - city = airport.town.accent_city - else - city = airport.town.city_rus - end - end%> - - - - - - <%end%> - <% if policy(airport).destroy? %> - - <%end%> - -<% end %> -
    <%= sortable "iata_code"%><%= sortable "icao_code"%><%= sortable "name_rus"%>city_rus"<%= sortable "iso_code"%>Расписание и табло.
    <%= airport.iata_code %><%= airport.icao_code %><%= link_to airport.name_rus, airport, :class => "demo1", :id => airport.id.to_s%><%= link_to city, country_town_path(airport.country, airport.town_id) unless airport.town.blank?%><%= airport.iso_code %>вылет/прилёт - <% if policy(airport).edit? %> - <%= link_to 'Edit', edit_airport_path(airport) %><%= link_to 'Destroy', airport, method: :delete, data: { confirm: "Вы уверены, что хотите удалить аэропорт "+airport.name_rus+" в городе "+ airport.city_rus} %>
    - diff --git a/app/views/airports/_airports_table.mobile.haml b/app/views/airports/_airports_table.mobile.haml new file mode 100644 index 00000000..59146381 --- /dev/null +++ b/app/views/airports/_airports_table.mobile.haml @@ -0,0 +1,55 @@ +%table.table + %thead + %tr + %th + = sortable "iata_code" + %br + = sortable "icao_code" + %th + = sortable "name_rus" + %br + (city_rus) + %th runway + %th= sortable "timetableap_count" + %th кол рейсов + %th + %tbody + - @airports.each do |airport| + - if airport.name_rus.blank? + - airport.name = airport.name_eng + - else + - airport.name = airport.name_rus + - if airport.city_rus.blank? + - airport.city_name = airport.city_eng + - else + - airport.city_name = airport.city_rus + - if airport.town.blank? + - city = airport.city_name + - else + - if airport.town.city_rus.blank? + - city = airport.town.accent_city + - else + - city = airport.town.city_rus + %tr + %td + = airport.iata_code + %br + = airport.icao_code + %td + = link_to airport.name, airport + %br + #{link_to city, country_town_path(airport.country, airport.town_id) unless airport.town.blank?} + %td= airport.runway_aps.count + %td + %a{:href => "/airports/#{airport.id}/tablo/out"} вылет + %a{:href => "/airports/#{airport.id}/tablo/in"} прилёт + %a{:href => "/airports/#{airport.id}/tablo"} Общее + %td + - Time.zone = airport.time_zone + - @wday = Time.zone.now.strftime'%w'.to_s + - @aptt_in = airport.apkey.timetableaps.where(way_end: airport.id).where("e#{@wday} = ?",1).count + - @aptt_out = airport.timetableaps.where(way_start: airport.id).where("e#{@wday} = ?",1).count + - @aptt_all = @aptt_in + @aptt_out + = @aptt_all + - if policy(airport).edit? + %td= link_to 'Edit', edit_airport_path(airport) diff --git a/app/views/airports/_ap_dist_result.html.haml b/app/views/airports/_ap_dist_result.html.haml index 3824f31c..60dda4d3 100644 --- a/app/views/airports/_ap_dist_result.html.haml +++ b/app/views/airports/_ap_dist_result.html.haml @@ -1,4 +1,6 @@ distance #{@dist} km +%BR +Initial bearing (direction) #{@sbear} %BR -if params[:start_ap] != nil and params[:end_ap] != nil %p diff --git a/app/views/airports/_ap_dist_result.mobile.haml b/app/views/airports/_ap_dist_result.mobile.haml index d21872b1..c1da3c65 100644 --- a/app/views/airports/_ap_dist_result.mobile.haml +++ b/app/views/airports/_ap_dist_result.mobile.haml @@ -1,5 +1,7 @@ distance #{@dist} km %BR +Initial bearing (direction) #{@sbear} +%BR -if params[:start_ap] != nil and params[:end_ap] != nil %p #{@ap1.name_rus} - #{@p1} diff --git a/app/views/airports/_form.html.erb b/app/views/airports/_form.html.erb deleted file mode 100644 index 5c631fda..00000000 --- a/app/views/airports/_form.html.erb +++ /dev/null @@ -1,113 +0,0 @@ -<%= form_for @airport, validate: true do |f| %> - <% if @airport.errors.any? %> -
    -

    <%= pluralize(@airport.errors.count, "error") %> prohibited this airport from being saved:

    - -
      - <% @airport.errors.full_messages.each do |msg| %> -
    • <%= msg %>
    • - <% end %> -
    -
    - <% end %> -
    -
    -
    - <%= f.label :iata_code %> - <%= f.text_field :iata_code %> -
    -
    - <%= f.label :icao_code %> - <%= f.text_field :icao_code %> -
    -
    - <%= f.label :name_rus %> - <%= f.text_field :name_rus %> -
    -
    - <%= f.label :name_eng %> - <%= f.text_field :name_eng %> -
    -
    - <%= f.label :city_rus %> - <%= f.text_field :city_rus %> -
    -
    - <%= f.label :city_eng %> - <%= f.text_field :city_eng %> -
    -
    - <%= f.label :town_id%> - <%= autocomplete_field_tag 'town', '', autocomplete_town_accent_city_towns_path, :size => 30, 'data-auto-focus' => true, :update_elements => {:id => '#airport_town_id'}, :value => params[:town] %> - <%= f.hidden_field :town_id%> -
    -
    - <%= f.label :gmt_offset%> - <%= f.text_field :gmt_offset%> -
    -
    - <%= f.label :time_zone %> - <%#= f.time_zone_select :time_zone %> - <%= time_zone_select "airport", "time_zone", ActiveSupport::TimeZone.all%> -
    -
    - <%= f.label :iso_code %> - <%= f.text_field :iso_code%> -
    - -
    - <%= f.label :country_id %> - <%= f.select :country_id, Country.all.collect{|item| [item.country_name, item.id]} %> -
    -
    -
    -
    - <%= f.label :latitude %> - <%= f.text_field :latitude %> -
    -
    - <%= f.label :longitude %> - <%= f.text_field :longitude %> -
    -
    - <%= f.label :runway_length %> - <%= f.text_field :runway_length %> -
    -
    - <%= f.label :runway_elevation %> - <%= f.text_field :runway_elevation %> -
    -
    - <%= f.label :runnway_coll %> - <%= f.text_field :runnway_coll %> -
    -
    - <%= f.label :phone %> - <%= f.text_field :phone %> -
    -
    - <%= f.label :fax %> - <%= f.text_field :fax %> -
    -
    - <%= f.label :email %> - <%= f.text_field :email %> -
    -
    - <%= f.label :website %> - <%= f.text_field :website %> -
    -
    - <%= f.label :TerminalsColl %> - <%= f.text_field :TerminalsColl %> -
    -
    - <%= f.label :Terminals %> - <%= f.text_field :Terminals %> -
    -
    - <%= f.submit %> -
    -
    -
    -<% end %> diff --git a/app/views/airports/_form.html.haml b/app/views/airports/_form.html.haml new file mode 100644 index 00000000..0d648634 --- /dev/null +++ b/app/views/airports/_form.html.haml @@ -0,0 +1,81 @@ += form_for @airport, validate: true do |f| + - if @airport.errors.any? + #error_explanation + %h2 + = pluralize(@airport.errors.count, "error") + prohibited this airport from being saved: + %ul + - @airport.errors.full_messages.each do |msg| + %li= msg + .field-form + .field-form-section + .field + = f.label :iata_code + = f.text_field :iata_code + .field + = f.label :icao_code + = f.text_field :icao_code + .field + = f.label :name_rus + = f.text_field :name_rus + .field + = f.label :name_eng + = f.text_field :name_eng + .field + = f.label :city_rus + = f.text_field :city_rus + .field + = f.label :city_eng + = f.text_field :city_eng + .field + = f.label :town_id + = autocomplete_field_tag 'town', '', autocomplete_town_accent_city_towns_path, :size => 30, 'data-auto-focus' => true, :update_elements => {:id => '#airport_town_id'}, :value => params[:town] + = f.hidden_field :town_id + .field + = f.label :gmt_offset + = f.text_field :gmt_offset + .field + = f.label :time_zone + = time_zone_select "airport", "time_zone", ActiveSupport::TimeZone.all + .field + = f.label :iso_code + = f.text_field :iso_code + .field + = f.label :country_id + = f.select :country_id, Country.order(:country_name).collect{|item| [item.country_name, item.id]} + .field-form-section + .field + = f.label :latitude + = f.text_field :latitude + .field + = f.label :longitude + = f.text_field :longitude + .field + = f.label :runway_length + = f.text_field :runway_length + .field + = f.label :runway_elevation + = f.text_field :runway_elevation + .field + = f.label :runnway_coll + = f.text_field :runnway_coll + .field + = f.label :phone + = f.text_field :phone + .field + = f.label :fax + = f.text_field :fax + .field + = f.label :email + = f.text_field :email + .field + = f.label :website + = f.text_field :website + .field + = f.label :TerminalsColl + = f.text_field :TerminalsColl + .field + = f.label :Terminals + = f.text_field :Terminals + .actions + = f.submit diff --git a/app/views/airports/_form.mobile.erb b/app/views/airports/_form.mobile.erb deleted file mode 100644 index 6c695fe0..00000000 --- a/app/views/airports/_form.mobile.erb +++ /dev/null @@ -1,105 +0,0 @@ -<%= form_for @airport do |f| %> - <% if @airport.errors.any? %> -
    -

    <%= pluralize(@airport.errors.count, "error") %> prohibited this airport from being saved:

    - -
      - <% @airport.errors.full_messages.each do |msg| %> -
    • <%= msg %>
    • - <% end %> -
    -
    - <% end %> - -
    - <%= f.label :iata_code %>
    - <%= f.text_field :iata_code %> -
    -
    - <%= f.label :icao_code %>
    - <%= f.text_field :icao_code %> -
    -
    - <%= f.label :name_rus %>
    - <%= f.text_field :name_rus %> -
    -
    - <%= f.label :name_eng %>
    - <%= f.text_field :name_eng %> -
    -
    - <%= f.label :city_rus %>
    - <%= f.text_field :city_rus %> -
    -
    - <%= f.label :city_eng %>
    - <%= f.text_field :city_eng %> -
    -
    - <%= f.label :gmt_offset%>
    - <%= f.text_field :gmt_offset%> -
    -
    - <%= f.label :time_zone %> - <%= f.time_zone_select :time_zone %> -
    -
    - <%= f.label :iso_code %>
    - <%= f.text_field :iso_code%> -
    -
    - <%= f.label :country_id %>
    - <%= f.select :country_id, Country.all.collect{|item| [item.country_name, item.id]} %> -
    -
    - <%= f.label :latitude %>
    - <%= f.text_field :latitude %> -
    -
    - <%= f.label :longitude %>
    - <%= f.text_field :longitude %> -
    -
    - <%= f.label :runway_length %>
    - <%= f.text_field :runway_length %> -
    -
    - <%= f.label :runway_elevation %>
    - <%= f.text_field :runway_elevation %> -
    -
    - <%= f.label :runnway_coll %>
    - <%= f.text_field :runnway_coll %> -
    -
    - <%= f.label :phone %>
    - <%= f.text_field :phone %> -
    -
    - <%= f.label :fax %>
    - <%= f.text_field :fax %> -
    -
    - <%= f.label :email %>
    - <%= f.text_field :email %> -
    -
    - <%= f.label :website %>
    - <%= f.text_field :website %> -
    -
    - <%= f.label :TerminalsColl %>
    - <%= f.text_field :TerminalsColl %> -
    -
    - <%= f.label :Terminals %>
    - <%= f.text_field :Terminals %> -
    -
    - <%= f.label :Dist_to_town %>
    - <%= f.text_field :Dist_to_town %> -
    -
    - <%= f.submit %> -
    -<% end %> diff --git a/app/views/airports/_form.mobile.haml b/app/views/airports/_form.mobile.haml new file mode 100644 index 00000000..33fa25d6 --- /dev/null +++ b/app/views/airports/_form.mobile.haml @@ -0,0 +1,98 @@ += form_for @airport do |f| + - if @airport.errors.any? + #error_explanation + %h2 + = pluralize(@airport.errors.count, "error") + prohibited this airport from being saved: + %ul + - @airport.errors.full_messages.each do |msg| + %li= msg + .field + = f.label :iata_code + %br/ + = f.text_field :iata_code + .field + = f.label :icao_code + %br/ + = f.text_field :icao_code + .field + = f.label :name_rus + %br/ + = f.text_field :name_rus + .field + = f.label :name_eng + %br/ + = f.text_field :name_eng + .field + = f.label :city_rus + %br/ + = f.text_field :city_rus + .field + = f.label :city_eng + %br/ + = f.text_field :city_eng + .field + = f.label :gmt_offset + %br/ + = f.text_field :gmt_offset + %div + = f.label :time_zone + = f.time_zone_select :time_zone + .field + = f.label :iso_code + %br/ + = f.text_field :iso_code + .field + = f.label :country_id + %br/ + = f.select :country_id, Country.order(:country_name).collect{|item| [item.country_name, item.id]} + .field + = f.label :latitude + %br/ + = f.text_field :latitude + .field + = f.label :longitude + %br/ + = f.text_field :longitude + .field + = f.label :runway_length + %br/ + = f.text_field :runway_length + .field + = f.label :runway_elevation + %br/ + = f.text_field :runway_elevation + .field + = f.label :runnway_coll + %br/ + = f.text_field :runnway_coll + .field + = f.label :phone + %br/ + = f.text_field :phone + .field + = f.label :fax + %br/ + = f.text_field :fax + .field + = f.label :email + %br/ + = f.text_field :email + .field + = f.label :website + %br/ + = f.text_field :website + .field + = f.label :TerminalsColl + %br/ + = f.text_field :TerminalsColl + .field + = f.label :Terminals + %br/ + = f.text_field :Terminals + .field + = f.label :Dist_to_town + %br/ + = f.text_field :Dist_to_town + .actions + = f.submit diff --git a/app/views/airports/_index.html.erb b/app/views/airports/_index.html.erb deleted file mode 100644 index 257b17a3..00000000 --- a/app/views/airports/_index.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

    Airports.

    -<%= render "airports/per_page"%> -<% if @country.blank? - search_str = '/airports' - else search_str = "/countries/#{@country.id}/ap_show" - end -%> -<%= form_tag search_str, :remote => true, :method => 'get', :id => "airports_search" do %> -

    - <%= text_field_tag :search, params[:search], autofocus: true %> - <%= submit_tag "Search", :name => nil %> -

    -
    <%= render "airports/airports" %>
    -<% end %> -<%= render "airports/per_page"%> -<% if policy(@airports).new? %> -<%= link_to 'New Airport', new_airport_path, class: "jqbutton" %> -<%end%> diff --git a/app/views/airports/_index.html.haml b/app/views/airports/_index.html.haml new file mode 100644 index 00000000..3735fba9 --- /dev/null +++ b/app/views/airports/_index.html.haml @@ -0,0 +1,9 @@ +%h1 Airports. += form_tag "#", :remote => true, :method => 'get', :id => "airports_search" do + %div + = text_field_tag :search, params[:search], autofocus: true + = submit_tag "Search", :name => nil + = render "layouts/per_page" + #airports= render "airports/airports" +- if policy(@airports).new? + = link_to 'New Airport', new_airport_path, class: "jqbutton" diff --git a/app/views/airports/_index.mobile.erb b/app/views/airports/_index.mobile.erb deleted file mode 100644 index 47f86878..00000000 --- a/app/views/airports/_index.mobile.erb +++ /dev/null @@ -1,17 +0,0 @@ -

    Airports.

    -<% if @country.blank? - search_str = '/airports' - else search_str = "/countries/#{@country.id}/ap_show" - end -%> -<%= form_tag search_str, :method => 'get', :id => "airports_search" do %> -

    - <%= text_field_tag :search, params[:search] %> - <%= submit_tag "Search", :name => nil %> -

    -
    <%= render "airports/airports.mobile" %>
    -<% end %> -<% if policy(@airports).new? %> -<%= link_to 'New Airport', new_airport_path, class: "jqbutton" %> -<%end%> - diff --git a/app/views/airports/_index.mobile.haml b/app/views/airports/_index.mobile.haml new file mode 100644 index 00000000..5c3a2da0 --- /dev/null +++ b/app/views/airports/_index.mobile.haml @@ -0,0 +1,9 @@ +%h1 Airports. += render "layouts/per_page" += form_tag "#", :method => 'get', :id => "airports_search" do + %p + = text_field_tag :search, params[:search] + = submit_tag "Search", :name => nil + #airports= render "airports/airports.mobile" +- if policy(@airports).new? + = link_to 'New Airport', new_airport_path, class: "jqbutton" diff --git a/app/views/airports/_info.html.haml b/app/views/airports/_info.html.haml new file mode 100644 index 00000000..a9ee020a --- /dev/null +++ b/app/views/airports/_info.html.haml @@ -0,0 +1,27 @@ +%p + %b Местное время: + = DateTime.current.in_time_zone(@airport.time_zone) +%p + %b Восход: + = sr = SunRiseSet.new(DateTime.current.in_time_zone(@airport.time_zone), @airport.latitude.to_f, @airport.longitude.to_f).sunrise.in_time_zone(@airport.time_zone).to_s(:time) +%p + %b Закат: + = ss = SunRiseSet.new(DateTime.current.in_time_zone(@airport.time_zone), @airport.latitude.to_f, @airport.longitude.to_f).sunset.in_time_zone(@airport.time_zone).to_s(:time) +%p + %b Астрономический полдень: + = SunRiseSet.new(DateTime.current.in_time_zone(@airport.time_zone), @airport.latitude.to_f, @airport.longitude.to_f).solNoon.in_time_zone(@airport.time_zone).to_s(:time) +%p + %b Долгота дня: + = Time.diff(Time.parse(sr.to_s), Time.parse(ss.to_s), '%H %N')[:diff] +%p + %b Расстояние до Ежинска а/п Ежово-1: + - @ap1 = Airport.find(25832) + - @p1 = GeoPoint.new @ap1.latitude.to_f, @ap1.longitude.to_f + - @p2 = GeoPoint.new @airport.latitude.to_f, @airport.longitude.to_f + - @dist = @p1.distance_to(@p2) + - @fbear = @p2.bearing_to(@p1) + = @dist + km +%b Азимут Ежинска а/п Ежово-1: +%p + = @fbear diff --git a/app/views/airports/_info.mobile.haml b/app/views/airports/_info.mobile.haml new file mode 100644 index 00000000..99a39370 --- /dev/null +++ b/app/views/airports/_info.mobile.haml @@ -0,0 +1,28 @@ +%p + %b Местное время: + = DateTime.current.in_time_zone(@airport.time_zone) +%p + %b Восход: + = sr = SunRiseSet.new(DateTime.current.in_time_zone(@airport.time_zone), @airport.latitude.to_f, @airport.longitude.to_f).sunrise.in_time_zone(@airport.time_zone).to_s(:time) +%p + %b Закат: + = ss = SunRiseSet.new(DateTime.current.in_time_zone(@airport.time_zone), @airport.latitude.to_f, @airport.longitude.to_f).sunset.in_time_zone(@airport.time_zone).to_s(:time) +%p + %b Астрономический полдень: + = SunRiseSet.new(DateTime.current.in_time_zone(@airport.time_zone), @airport.latitude.to_f, @airport.longitude.to_f).solNoon.in_time_zone(@airport.time_zone).to_s(:time) +%p + %b Долгота дня: + = Time.diff(Time.parse(sr.to_s), Time.parse(ss.to_s), '%H %N')[:diff] +%p + %b Расстояние до Ежинска а/п Ежово-1: + - @ap1 = Airport.find(25832) + - @ap2 = Airport.find(params[:id]) + - @p1 = GeoPoint.new @ap1.latitude.to_f, @ap1.longitude.to_f + - @p2 = GeoPoint.new @ap2.latitude.to_f, @ap2.longitude.to_f + - @dist = @p1.distance_to(@p2) + - @fbear = @p2.bearing_to(@p1) + = @dist + km +%b Азимут Ежинска а/п Ежово-1: +%p + = @fbear diff --git a/app/views/airports/_per_page.html.erb b/app/views/airports/_per_page.html.erb deleted file mode 100644 index 0d67de30..00000000 --- a/app/views/airports/_per_page.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<%= form_tag '#',:method => :get, id: 'ap_per_page', remote: true do %> - <%= select_tag :ap_limit, options_for_select([10, 15, 20, 30, 40, 50, 75, 100, 150, 200, 500, 1000], selected: params[:ap_limit] || 30)%> - <%= submit_tag "Set per_pages", :name => nil %> -<%end%> diff --git a/app/views/airports/_show.html.haml b/app/views/airports/_show.html.haml new file mode 100644 index 00000000..c4e649c7 --- /dev/null +++ b/app/views/airports/_show.html.haml @@ -0,0 +1,3 @@ +%p + = link_to 'Вылет/прилёт', "/airports/#{@airport.id}/aptt" + diff --git a/app/views/airports/_show.mobile.haml b/app/views/airports/_show.mobile.haml new file mode 100644 index 00000000..759b9b61 --- /dev/null +++ b/app/views/airports/_show.mobile.haml @@ -0,0 +1,2 @@ +%p + = link_to 'Вылет/прилёт', "/airports/#{@airport.id}/aptt" diff --git a/app/views/airports/_tablo.html.erb b/app/views/airports/_tablo.html.erb deleted file mode 100644 index c2e959fe..00000000 --- a/app/views/airports/_tablo.html.erb +++ /dev/null @@ -1,22 +0,0 @@ - <%@timetableaps.each do |timetableap|%> - - -

    <%= link_to image_tag("/images/air_tm/#{timetableap.aircompany.iata_code}.png", width: '80'), timetableap.aircompany%>

    - <%= link_to timetableap.aircompany.iata_code, timetableap.aircompany, :title => timetableap.aircompany.airline_name_rus %> - <%if timetableap.id < 1000000%> - <%= link_to timetableap.Flight_Number, flight_state_timetableap_path(timetableap), data: { no_turbolink: true }, :onclick => "return hs.htmlExpand(this, {objectType: 'ajax'})"%> - <%else%> - <%= link_to timetableap.Flight_Number, flight_state_timetableap_sub_path(timetableap), data: { no_turbolink: true }, onclick: "return hs.htmlExpand(this, { outlineType: 'rounded-white', wrapperClassName: 'draggable-header', objectType: 'ajax' } )", class: "highslide"%> - <%end%>

    - - -
    <%= timetableap.twrus %>
    -
    (аэропорт: <%= link_to timetableap.aprus, timetableap.apkey.airport %>)

    - Перевозчик:          <%= link_to timetableap.airline, timetableap.aircompany %>

    -

    - Выполняется самолётом:   <%= link_to timetableap.al_plane, timetableap.plane_al%>

    -
    -

    <%= timetableap.timeIN.in_time_zone(@airport.time_zone).to_s(:time)%>

    (<%= timetableap.timeIN.in_time_zone("Ezhinsk").to_s(:time)%>) - <%= timetableap.fstatus%> - -<% end %> diff --git a/app/views/airports/_tablo.html.haml b/app/views/airports/_tablo.html.haml new file mode 100644 index 00000000..f58ed1af --- /dev/null +++ b/app/views/airports/_tablo.html.haml @@ -0,0 +1,22 @@ +- @timetableaps.each do |timetableap| + %tr.tablo + %td + %p#twrus + = link_to timetableap.aircompany.iata_code, timetableap.aircompany, :title => timetableap.aircompany.airline_name_rus + - if timetableap.id < 1000000 + = link_to timetableap.Flight_Number, flight_state_timetableap_path(timetableap), data: { no_turbolink: true }, :onclick => "return hs.htmlExpand(this, {objectType: 'ajax'})" + - else + = link_to timetableap.Flight_Number, flight_state_timetableap_sub_path(timetableap), data: { no_turbolink: true }, onclick: "return hs.htmlExpand(this, { outlineType: 'rounded-white', wrapperClassName: 'draggable-header', objectType: 'ajax' } )", class: "highslide" + #{timetableap.s_twrus} - #{timetableap.f_twrus} + #aprus (#{link_to timetableap.s_aprus, timetableap.s_ap}) - (#{link_to timetableap.f_aprus, timetableap.f_ap}) + #tt_al_info + Перевозчик: + %strong= link_to timetableap.airline, timetableap.aircompany + %br + Выполняется самолётом: + %strong= link_to timetableap.al_plane, timetableap.plane_al + %td#tt_time + = timetableap.timeIN.in_time_zone(@airport.time_zone).to_s(:time) + %br + %em (#{timetableap.timeIN.in_time_zone("Ezhinsk").to_s(:time)}) + %td.tt_status{:bgcolor => "#{timetableap.bgcolor}"}= timetableap.fstatus diff --git a/app/views/airports/_tablo.mobile.erb b/app/views/airports/_tablo.mobile.erb deleted file mode 100644 index 75282a1c..00000000 --- a/app/views/airports/_tablo.mobile.erb +++ /dev/null @@ -1,16 +0,0 @@ - <%@timetableaps.each do |timetableap|%> - - - <%= link_to timetableap.aircompany.iata_code, timetableap.aircompany, title => timetableap.aircompany.airline_name_rus %>
    - <%if timetableap.id < 1000000%> - <%= link_to timetableap.Flight_Number, flight_state_timetableap_path(timetableap)%> - <%else%> - <%= link_to timetableap.Flight_Number, flight_state_timetableap_sub_path(timetableap)%> - <%end%> - - - <%= timetableap.twrus %>
    (<%= link_to timetableap.aprus, timetableap.apkey.airport %>) - <%= timetableap.timeIN.in_time_zone(@airport.time_zone).to_s(:time)%> - <%= timetableap.fstatus%> - -<% end %> diff --git a/app/views/airports/_tablo.mobile.haml b/app/views/airports/_tablo.mobile.haml new file mode 100644 index 00000000..22befef6 --- /dev/null +++ b/app/views/airports/_tablo.mobile.haml @@ -0,0 +1,12 @@ +- @timetableaps.each do |timetableap| + %tr + %td + = link_to timetableap.aircompany.iata_code, timetableap.aircompany, title => timetableap.aircompany.airline_name_rus + %br + - if timetableap.id < 1000000 + = link_to timetableap.Flight_Number, flight_state_timetableap_path(timetableap) + - else + = link_to timetableap.Flight_Number, flight_state_timetableap_sub_path(timetableap) + %td= link_to timetableap.twrus, timetableap.ap + %td= timetableap.timeIN.in_time_zone(@airport.time_zone).to_s(:time) + %td{:bgcolor => "#{timetableap.bgcolor}"}= timetableap.fstatus diff --git a/app/views/airports/admin_ap.html.erb b/app/views/airports/admin_ap.html.erb deleted file mode 100644 index ef25c313..00000000 --- a/app/views/airports/admin_ap.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

    Аэропорты

    -<%= netzke :airports, -# :class_name => "Netzke::Basepack::Grid", - :border => true, - :header => false, - :view_config => { - :force_fit => true # force the columns to occupy all the available width - } -%> - diff --git a/app/views/airports/admin_ap.html.haml b/app/views/airports/admin_ap.html.haml new file mode 100644 index 00000000..7af7d3a0 --- /dev/null +++ b/app/views/airports/admin_ap.html.haml @@ -0,0 +1,8 @@ +%h1 Аэропорты += netzke :airports, | + # :class_name => "Netzke::Basepack::Grid", | + :border => true, | + :header => false, | + :view_config => { | + :force_fit => true # force the columns to occupy all the available width | + } | diff --git a/app/views/airports/admin_ap.mobile.erb b/app/views/airports/admin_ap.mobile.erb deleted file mode 100644 index ef25c313..00000000 --- a/app/views/airports/admin_ap.mobile.erb +++ /dev/null @@ -1,10 +0,0 @@ -

    Аэропорты

    -<%= netzke :airports, -# :class_name => "Netzke::Basepack::Grid", - :border => true, - :header => false, - :view_config => { - :force_fit => true # force the columns to occupy all the available width - } -%> - diff --git a/app/views/airports/admin_ap.mobile.haml b/app/views/airports/admin_ap.mobile.haml new file mode 100644 index 00000000..7af7d3a0 --- /dev/null +++ b/app/views/airports/admin_ap.mobile.haml @@ -0,0 +1,8 @@ +%h1 Аэропорты += netzke :airports, | + # :class_name => "Netzke::Basepack::Grid", | + :border => true, | + :header => false, | + :view_config => { | + :force_fit => true # force the columns to occupy all the available width | + } | diff --git a/app/views/airports/aptt.html.erb b/app/views/airports/aptt.html.erb deleted file mode 100644 index 5f6fe50b..00000000 --- a/app/views/airports/aptt.html.erb +++ /dev/null @@ -1,74 +0,0 @@ -

    Табло вылета/Прилёта аэропорта <%= @airport.name_rus %> (г.<%= @airport.town.city_rus%>)

    -

    -Местное время: <%= DateTime.current.in_time_zone(@airport.time_zone)%> -

    - -

    Нажмите на ту кнопку: информацию хотите посмотреть?

    -
    - || - || - -
    -
    - diff --git a/app/views/airports/aptt.html.haml b/app/views/airports/aptt.html.haml new file mode 100644 index 00000000..c9b32210 --- /dev/null +++ b/app/views/airports/aptt.html.haml @@ -0,0 +1,73 @@ +%h3 + Табло вылета/Прилёта аэропорта #{link_to @airport.name_rus, @airport} (г.#{@airport.town.city_rus}) +%p + Местное время: #{DateTime.current.in_time_zone(@airport.time_zone)} +%p Нажмите на ту кнопку: информацию хотите посмотреть? +%form + %input#btn1{:type => "button", :value => "Табло вылета"}/ + || + %input#btn2{:type => "button", :value => "Табло прилёта"}/ + || + %input#btn3{:type => "button", :value => "Табло и вылета, и прилёта"}/ +#content +:javascript + $(document).ready(function(){ + + $('#btn1').click(function(){ + $.ajax({ + url: "tablo/out", + cache: false, + success: function(html){ + $("#content").html(html); + // setTimeout(foo, 60000); + // foo(); + // function foo () { + // $('#tda').load("# #tt", function() { + $("#tt").tablesorter({ + widgets: ["zebra"], + sortList:[[1,0]] + }); + // });} + + } + }); + }); + + $('#btn2').click(function(){ + $.ajax({ + url: "tablo/in", + cache: false, + success: function(html){ + $("#content").html(html); + // setTimeout(foo, 60000); + // foo(); + // function foo () { + // $('#tda').load("# #tt", function() { + $("#tt").tablesorter({ + widgets: ["zebra"], + sortList:[[1,0]] + }); + // });} + } + }); + }); + + $('#btn3').click(function(){ + $.ajax({ + url: "tablo", + cache: false, + success: function(html){ + $("#content").html(html); + // setTimeout(foo, 60000); + // foo(); + // function foo () { + // $('#tda').load("# #tt", function() { + $("#tt").tablesorter({ + widgets: ["zebra"], + sortList:[[1,0]] + }); + // });} + } + }); + }); + }); diff --git a/app/views/airports/aptt.mobile.erb b/app/views/airports/aptt.mobile.erb deleted file mode 100644 index 5f6fe50b..00000000 --- a/app/views/airports/aptt.mobile.erb +++ /dev/null @@ -1,74 +0,0 @@ -

    Табло вылета/Прилёта аэропорта <%= @airport.name_rus %> (г.<%= @airport.town.city_rus%>)

    -

    -Местное время: <%= DateTime.current.in_time_zone(@airport.time_zone)%> -

    - -

    Нажмите на ту кнопку: информацию хотите посмотреть?

    -
    - || - || - -
    -
    - diff --git a/app/views/airports/aptt.mobile.haml b/app/views/airports/aptt.mobile.haml new file mode 100644 index 00000000..b88416ea --- /dev/null +++ b/app/views/airports/aptt.mobile.haml @@ -0,0 +1,73 @@ +%h3 + Табло вылета/Прилёта аэропорта #{link_to @airport.name_rus, @airport} (г.#{@airport.town.city_rus}) +%p + Местное время: #{DateTime.current.in_time_zone(@airport.time_zone)} +%p Нажмите на ту кнопку: информацию хотите посмотреть? +%form + %input#btn1{:type => "button", :value => "Табло вылета"}/ + || + %input#btn2{:type => "button", :value => "Табло прилёта"}/ + || + %input#btn3{:type => "button", :value => "Табло и вылета, и прилёта"}/ +#content +:javascript + $(document).ready(function(){ + + $('#btn1').click(function(){ + $.ajax({ + url: "tablo/out", + cache: false, + success: function(html){ + $("#content").html(html); + // setTimeout(foo, 60000); + // foo(); + // function foo () { + // $('#tda').load("# #tt", function() { + $("#tt").tablesorter({ + widgets: ["zebra"], + sortList:[[2,0]] + }); + // });} + + } + }); + }); + + $('#btn2').click(function(){ + $.ajax({ + url: "tablo/in", + cache: false, + success: function(html){ + $("#content").html(html); + // setTimeout(foo, 60000); + // foo(); + // function foo () { + // $('#tda').load("# #tt", function() { + $("#tt").tablesorter({ + widgets: ["zebra"], + sortList:[[2,0]] + }); + // });} + } + }); + }); + + $('#btn3').click(function(){ + $.ajax({ + url: "tablo", + cache: false, + success: function(html){ + $("#content").html(html); + // setTimeout(foo, 60000); + // foo(); + // function foo () { + // $('#tda').load("# #tt", function() { + $("#tt").tablesorter({ + widgets: ["zebra"], + sortList:[[2,0]] + }); + // });} + } + }); + }); + }); diff --git a/app/views/airports/city.html.erb b/app/views/airports/city.html.erb deleted file mode 100644 index a68adb90..00000000 --- a/app/views/airports/city.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

    City: <%= params[:city_eng] %>

    -<%= hidden_field_tag :direction, params[:direction]%> -<%= hidden_field_tag :sort, params[:sort]%> - - - - - - - - - - -<% @airports.each do |airport| %> - - - - - - - - -<% end %> -
    Iata codeIcao codeName rusCity rus
    <%= airport.iata_code %><%= airport.icao_code %><%= link_to airport.name_rus, airport %><%= link_to airport.city_rus, :controller=>"airports", :action => "city", :city_eng => airport.city_eng%><%= link_to 'Edit', edit_airport_path(airport) %><%= link_to 'Destroy', airport, method: :delete, data: { confirm: 'Are you sure?' } %>
    - -
    - -<%= link_to 'New Airport', new_airport_path %> -<%= link_to 'Back', airports_path %> diff --git a/app/views/airports/city.html.haml b/app/views/airports/city.html.haml new file mode 100644 index 00000000..9e090acf --- /dev/null +++ b/app/views/airports/city.html.haml @@ -0,0 +1,24 @@ +%h1 + City: #{params[:city_eng]} += hidden_field_tag :direction, params[:direction] += hidden_field_tag :sort, params[:sort] +%table + %tr + %th Iata code + %th Icao code + %th Name rus + %th City rus + %th + %th + %th + - @airports.each do |airport| + %tr + %td= airport.iata_code + %td= airport.icao_code + %td= link_to airport.name_rus, airport + %td= link_to airport.city_rus, :controller=>"airports", :action => "city", :city_eng => airport.city_eng + %td= link_to 'Edit', edit_airport_path(airport) + %td= link_to 'Destroy', airport, method: :delete, data: { confirm: 'Are you sure?' } +%br/ += link_to 'New Airport', new_airport_path += link_to 'Back', airports_path diff --git a/app/views/airports/city.mobile.erb b/app/views/airports/city.mobile.erb deleted file mode 100644 index a68adb90..00000000 --- a/app/views/airports/city.mobile.erb +++ /dev/null @@ -1,29 +0,0 @@ -

    City: <%= params[:city_eng] %>

    -<%= hidden_field_tag :direction, params[:direction]%> -<%= hidden_field_tag :sort, params[:sort]%> - - - - - - - - - - -<% @airports.each do |airport| %> - - - - - - - - -<% end %> -
    Iata codeIcao codeName rusCity rus
    <%= airport.iata_code %><%= airport.icao_code %><%= link_to airport.name_rus, airport %><%= link_to airport.city_rus, :controller=>"airports", :action => "city", :city_eng => airport.city_eng%><%= link_to 'Edit', edit_airport_path(airport) %><%= link_to 'Destroy', airport, method: :delete, data: { confirm: 'Are you sure?' } %>
    - -
    - -<%= link_to 'New Airport', new_airport_path %> -<%= link_to 'Back', airports_path %> diff --git a/app/views/airports/city.mobile.haml b/app/views/airports/city.mobile.haml new file mode 100644 index 00000000..9e090acf --- /dev/null +++ b/app/views/airports/city.mobile.haml @@ -0,0 +1,24 @@ +%h1 + City: #{params[:city_eng]} += hidden_field_tag :direction, params[:direction] += hidden_field_tag :sort, params[:sort] +%table + %tr + %th Iata code + %th Icao code + %th Name rus + %th City rus + %th + %th + %th + - @airports.each do |airport| + %tr + %td= airport.iata_code + %td= airport.icao_code + %td= link_to airport.name_rus, airport + %td= link_to airport.city_rus, :controller=>"airports", :action => "city", :city_eng => airport.city_eng + %td= link_to 'Edit', edit_airport_path(airport) + %td= link_to 'Destroy', airport, method: :delete, data: { confirm: 'Are you sure?' } +%br/ += link_to 'New Airport', new_airport_path += link_to 'Back', airports_path diff --git a/app/views/airports/edit.html.erb b/app/views/airports/edit.html.erb deleted file mode 100644 index 188d88e3..00000000 --- a/app/views/airports/edit.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

    Editing airport

    - -<%= render 'form' %> - -<%= link_to 'Show', @airport %> | diff --git a/app/views/airports/edit.html.haml b/app/views/airports/edit.html.haml new file mode 100644 index 00000000..914d8048 --- /dev/null +++ b/app/views/airports/edit.html.haml @@ -0,0 +1,4 @@ +%h1 Editing airport += render 'form' += link_to 'Show', @airport +| diff --git a/app/views/airports/edit.mobile.erb b/app/views/airports/edit.mobile.erb deleted file mode 100644 index 188d88e3..00000000 --- a/app/views/airports/edit.mobile.erb +++ /dev/null @@ -1,5 +0,0 @@ -

    Editing airport

    - -<%= render 'form' %> - -<%= link_to 'Show', @airport %> | diff --git a/app/views/airports/edit.mobile.haml b/app/views/airports/edit.mobile.haml new file mode 100644 index 00000000..914d8048 --- /dev/null +++ b/app/views/airports/edit.mobile.haml @@ -0,0 +1,4 @@ +%h1 Editing airport += render 'form' += link_to 'Show', @airport +| diff --git a/app/views/airports/index.html.erb b/app/views/airports/index.html.erb deleted file mode 100644 index 08734f13..00000000 --- a/app/views/airports/index.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render "index"%> diff --git a/app/views/airports/index.html.haml b/app/views/airports/index.html.haml new file mode 100644 index 00000000..9ed271c7 --- /dev/null +++ b/app/views/airports/index.html.haml @@ -0,0 +1 @@ += render "index" diff --git a/app/views/airports/index.mobile.erb b/app/views/airports/index.mobile.erb deleted file mode 100644 index 79c0a31a..00000000 --- a/app/views/airports/index.mobile.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render "index.mobile"%> diff --git a/app/views/airports/index.mobile.haml b/app/views/airports/index.mobile.haml new file mode 100644 index 00000000..46e38049 --- /dev/null +++ b/app/views/airports/index.mobile.haml @@ -0,0 +1 @@ += render "index.mobile" diff --git a/app/views/airports/new.html.erb b/app/views/airports/new.html.erb deleted file mode 100644 index bbccc296..00000000 --- a/app/views/airports/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

    New airport

    - -<%= render 'form' %> - -<%= link_to 'Back', airports_path %> diff --git a/app/views/airports/new.html.haml b/app/views/airports/new.html.haml new file mode 100644 index 00000000..fd0ba176 --- /dev/null +++ b/app/views/airports/new.html.haml @@ -0,0 +1,3 @@ +%h1 New airport += render 'form' += link_to 'Back', airports_path diff --git a/app/views/airports/new.mobile.erb b/app/views/airports/new.mobile.erb deleted file mode 100644 index bbccc296..00000000 --- a/app/views/airports/new.mobile.erb +++ /dev/null @@ -1,5 +0,0 @@ -

    New airport

    - -<%= render 'form' %> - -<%= link_to 'Back', airports_path %> diff --git a/app/views/airports/new.mobile.haml b/app/views/airports/new.mobile.haml new file mode 100644 index 00000000..fd0ba176 --- /dev/null +++ b/app/views/airports/new.mobile.haml @@ -0,0 +1,3 @@ +%h1 New airport += render 'form' += link_to 'Back', airports_path diff --git a/app/views/airports/search.html.erb b/app/views/airports/search.html.erb deleted file mode 100644 index e3c9c759..00000000 --- a/app/views/airports/search.html.erb +++ /dev/null @@ -1 +0,0 @@ -

    Результаты поиска рейсов.

    \ No newline at end of file diff --git a/app/views/airports/search.html.haml b/app/views/airports/search.html.haml new file mode 100644 index 00000000..cc0b3f0a --- /dev/null +++ b/app/views/airports/search.html.haml @@ -0,0 +1 @@ +%h2 Результаты поиска рейсов. diff --git a/app/views/airports/search.mobile.erb b/app/views/airports/search.mobile.erb deleted file mode 100644 index e3c9c759..00000000 --- a/app/views/airports/search.mobile.erb +++ /dev/null @@ -1 +0,0 @@ -

    Результаты поиска рейсов.

    \ No newline at end of file diff --git a/app/views/airports/search.mobile.haml b/app/views/airports/search.mobile.haml new file mode 100644 index 00000000..cc0b3f0a --- /dev/null +++ b/app/views/airports/search.mobile.haml @@ -0,0 +1 @@ +%h2 Результаты поиска рейсов. diff --git a/app/views/airports/search_airlines.html.erb b/app/views/airports/search_airlines.html.erb deleted file mode 100644 index 5067657a..00000000 --- a/app/views/airports/search_airlines.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -

    Поиск рейсов.

    - -
    -

    Внутренние рейсы.

    -<%= form_for("", :url => { :action => "search" }, :method => "get") do |f| %> - -
    - <%= f.label :"Откуда:" %>
    - <%= f.select :ap_start, Airport.where(iso_code: 'EZ').collect{|item| [item.name_rus, item.id]} %> -
    -
    - <%= f.label :"Куда:" %>
    - <%= f.select :ap_end, Airport.where(iso_code: 'EZ').collect{|item| [item.name_rus, item.id]} %> -
    - -
    - <%= f.label :"Дата вылета:" %>
    - <%= f.date_select(:thither) %> -
    -
    - <%= f.label :"Дата возврата:" %>
    - <%= f.date_select(:backward ) %> -
    -
    - <%= f.submit("Искать.") %> -
    -<% end %> -
    \ No newline at end of file diff --git a/app/views/airports/search_airlines.html.haml b/app/views/airports/search_airlines.html.haml new file mode 100644 index 00000000..d46b11d4 --- /dev/null +++ b/app/views/airports/search_airlines.html.haml @@ -0,0 +1,22 @@ +%h2 Поиск рейсов. +%div + %h4 Внутренние рейсы. + = form_for("", :url => { :action => "search" }, :method => "get") do |f| + .field + = f.label :"Откуда:" + %br/ + = f.select :ap_start, Airport.where(iso_code: 'EZ').collect{|item| [item.name_rus, item.id]} + .field + = f.label :"Куда:" + %br/ + = f.select :ap_end, Airport.where(iso_code: 'EZ').collect{|item| [item.name_rus, item.id]} + .field + = f.label :"Дата вылета:" + %br/ + = f.date_select(:thither) + .field + = f.label :"Дата возврата:" + %br/ + = f.date_select(:backward ) + .actions + = f.submit("Искать.") diff --git a/app/views/airports/search_airlines.mobile.erb b/app/views/airports/search_airlines.mobile.erb deleted file mode 100644 index 5067657a..00000000 --- a/app/views/airports/search_airlines.mobile.erb +++ /dev/null @@ -1,28 +0,0 @@ -

    Поиск рейсов.

    - -
    -

    Внутренние рейсы.

    -<%= form_for("", :url => { :action => "search" }, :method => "get") do |f| %> - -
    - <%= f.label :"Откуда:" %>
    - <%= f.select :ap_start, Airport.where(iso_code: 'EZ').collect{|item| [item.name_rus, item.id]} %> -
    -
    - <%= f.label :"Куда:" %>
    - <%= f.select :ap_end, Airport.where(iso_code: 'EZ').collect{|item| [item.name_rus, item.id]} %> -
    - -
    - <%= f.label :"Дата вылета:" %>
    - <%= f.date_select(:thither) %> -
    -
    - <%= f.label :"Дата возврата:" %>
    - <%= f.date_select(:backward ) %> -
    -
    - <%= f.submit("Искать.") %> -
    -<% end %> -
    \ No newline at end of file diff --git a/app/views/airports/search_airlines.mobile.haml b/app/views/airports/search_airlines.mobile.haml new file mode 100644 index 00000000..d46b11d4 --- /dev/null +++ b/app/views/airports/search_airlines.mobile.haml @@ -0,0 +1,22 @@ +%h2 Поиск рейсов. +%div + %h4 Внутренние рейсы. + = form_for("", :url => { :action => "search" }, :method => "get") do |f| + .field + = f.label :"Откуда:" + %br/ + = f.select :ap_start, Airport.where(iso_code: 'EZ').collect{|item| [item.name_rus, item.id]} + .field + = f.label :"Куда:" + %br/ + = f.select :ap_end, Airport.where(iso_code: 'EZ').collect{|item| [item.name_rus, item.id]} + .field + = f.label :"Дата вылета:" + %br/ + = f.date_select(:thither) + .field + = f.label :"Дата возврата:" + %br/ + = f.date_select(:backward ) + .actions + = f.submit("Искать.") diff --git a/app/views/airports/show.html.erb b/app/views/airports/show.html.erb deleted file mode 100644 index 45751ddf..00000000 --- a/app/views/airports/show.html.erb +++ /dev/null @@ -1,133 +0,0 @@ -

    <%= notice %>

    -

    - вылет/прилёт -

    - -

    - Iata code: - <%= @airport.iata_code %> -

    - -

    - Icao code: - <%= @airport.icao_code %> -

    - -

    - Name rus: - <%= @airport.name_rus %> -

    - -

    - Name eng: - <%= @airport.name_eng %> -

    - -

    - City rus: - <%= @airport.city_rus %> -

    - -

    - City eng: - <%= @airport.city_eng %> -

    - -

    - Gmt offset: - <%= @airport.gmt_offset %> -

    - -

    - time_zone: - <%= @airport.time_zone %> -

    - -

    - Iso code: - <%= @airport.iso_code %> -

    - -

    - Latitude: - <%= @airport.latitude %> -

    - -

    - Longitude: - <%= @airport.longitude %> -

    - -

    - Runway length: - <%= @airport.runway_length %> -

    - -

    - Runway elevation: - <%= @airport.runway_elevation %> -

    - -

    - Runnway coll: - <%= @airport.runnway_coll %> -

    - -

    - Phone: - <%= @airport.phone %> -

    - -

    - Fax: - <%= @airport.fax %> -

    - -

    - Email: - <%= @airport.email %> -

    - -

    - Website: - <%= link_to @airport.website, @airport.website %> ||<%= link_to "http://"+@airport.iata_code.to_s+".aero", "http://"+@airport.iata_code.to_s+".aero" %> - -

    - -

    - Terminalscoll: - <%= @airport.TerminalsColl %> -

    - -

    - Terminals: - <%= @airport.Terminals %> -

    - -

    - Dist to town: - <%= @airport.Dist_to_town %> -

    -
    -<%= link_to 'Edit', edit_airport_path(@airport) %> | - -<%if @airport.aircompanies.blank?%> -

    Базирующиеся авиакомпании отсутствуют в аэропрте <%= @airport.name_rus%>.

    -<%else%> -

    Авиакомпании, базирующиеся в аэропорту <%= @airport.name_rus%>

    - <%= render "aircompanies/aircompanies"%> -<%end%> -<%if @airport.aphubs.blank?%> -

    Авиакомпании-хабы отсутствуют в аэропрте <%= @airport.name_rus%>.

    -<%else%> -

    Авиакомпании-хабы в аэропорту <%= @airport.name_rus%>

    - <%#= @airport.aphubs%> - <% @aircompanies = @aircompanies.clear %> - <% @aircompany = Array.new %> - <% @airport.aphubs.each {|x|%> - <% @aircompanies[@aircompanies.size] = x.aircompany %> - <%}%> - <% @aircompanies = @aircompanies %> - <%= render "aircompanies/aircompanies_table"%> -<%end%> - diff --git a/app/views/airports/show.html.haml b/app/views/airports/show.html.haml new file mode 100644 index 00000000..384f30d3 --- /dev/null +++ b/app/views/airports/show.html.haml @@ -0,0 +1,25 @@ +.field-form + .field-form-section + = render "airports/show" + .field-form-section + = render "airports/info" +- if @airport.aircompanies.blank? + %h2 + Базирующиеся авиакомпании отсутствуют в аэропрте #{@airport.name_rus}. +- else + %h2 + Авиакомпании, базирующиеся в аэропорту #{@airport.name_rus} + = render "aircompanies/aircompanies" +- if @airport.aphubs.blank? + %h2 + Авиакомпании-хабы отсутствуют в аэропрте #{@airport.name_rus}. +- else + %h2 + Авиакомпании-хабы в аэропорту #{@airport.name_rus} + - @aircompanies = @aircompanies.clear + - @aircompany = Array.new + - @airport.aphubs.each {|x| + - @aircompanies[@aircompanies.size] = x.aircompany + - } + - @aircompanies = @aircompanies + = render "aircompanies/aircompanies_table" diff --git a/app/views/airports/show.mobile.erb b/app/views/airports/show.mobile.erb deleted file mode 100644 index 9d13fe40..00000000 --- a/app/views/airports/show.mobile.erb +++ /dev/null @@ -1,133 +0,0 @@ -

    <%= notice %>

    -

    - вылет/прилёт -

    - -

    - Iata code: - <%= @airport.iata_code %> -

    - -

    - Icao code: - <%= @airport.icao_code %> -

    - -

    - Name rus: - <%= @airport.name_rus %> -

    - -

    - Name eng: - <%= @airport.name_eng %> -

    - -

    - City rus: - <%= @airport.city_rus %> -

    - -

    - City eng: - <%= @airport.city_eng %> -

    - -

    - Gmt offset: - <%= @airport.gmt_offset %> -

    - -

    - time_zone: - <%= @airport.time_zone %> -

    - -

    - Iso code: - <%= @airport.iso_code %> -

    - -

    - Latitude: - <%= @airport.latitude %> -

    - -

    - Longitude: - <%= @airport.longitude %> -

    - -

    - Runway length: - <%= @airport.runway_length %> -

    - -

    - Runway elevation: - <%= @airport.runway_elevation %> -

    - -

    - Runnway coll: - <%= @airport.runnway_coll %> -

    - -

    - Phone: - <%= @airport.phone %> -

    - -

    - Fax: - <%= @airport.fax %> -

    - -

    - Email: - <%= @airport.email %> -

    - -

    - Website: - <%= link_to @airport.website, @airport.website %> ||<%= link_to "http://"+@airport.iata_code.to_s+".aero", "http://"+@airport.iata_code.to_s+".aero" %> - -

    - -

    - Terminalscoll: - <%= @airport.TerminalsColl %> -

    - -

    - Terminals: - <%= @airport.Terminals %> -

    - -

    - Dist to town: - <%= @airport.Dist_to_town %> -

    -
    -<%= link_to 'Edit', edit_airport_path(@airport) %> | - -<%if @airport.aircompanies.blank?%> -

    Базирующиеся авиакомпании отсутствуют в аэропрте <%= @airport.name_rus%>.

    -<%else%> -

    Авиакомпании, базирующиеся в аэропорту <%= @airport.name_rus%>

    - <%= render "aircompanies/aircompanies.mobile"%> -<%end%> -<%if @airport.aphubs.blank?%> -

    Авиакомпании-хабы отсутствуют в аэропрте <%= @airport.name_rus%>.

    -<%else%> -

    Авиакомпании-хабы в аэропорту <%= @airport.name_rus%>

    - <%#= @airport.aphubs%> - <% @aircompanies = @aircompanies.clear %> - <% @aircompany = Array.new %> - <% @airport.aphubs.each {|x|%> - <% @aircompanies[@aircompanies.size] = x.aircompany %> - <%}%> - <% @aircompanies = @aircompanies %> - <%= render "aircompanies/aircompanies_table.mobile"%> -<%end%> - diff --git a/app/views/airports/show.mobile.haml b/app/views/airports/show.mobile.haml new file mode 100644 index 00000000..d6c70707 --- /dev/null +++ b/app/views/airports/show.mobile.haml @@ -0,0 +1,25 @@ +.field-form + .field-form-section + = render "airports/show" + .field-form-section + = render "airports/info" +- if @airport.aircompanies.blank? + %h2 + Базирующиеся авиакомпании отсутствуют в аэропрте #{@airport.name_rus}. +- else + %h2 + Авиакомпании, базирующиеся в аэропорту #{@airport.name_rus} + = render "aircompanies/aircompanies.mobile" +- if @airport.aphubs.blank? + %h2 + Авиакомпании-хабы отсутствуют в аэропрте #{@airport.name_rus}. +- else + %h2 + Авиакомпании-хабы в аэропорту #{@airport.name_rus} + - @aircompanies = @aircompanies.clear + - @aircompany = Array.new + - @airport.aphubs.each {|x| + - @aircompanies[@aircompanies.size] = x.aircompany + - } + - @aircompanies = @aircompanies + = render "aircompanies/aircompanies_table.mobile" diff --git a/app/views/airports/tablo.html.erb b/app/views/airports/tablo.html.erb deleted file mode 100644 index d4f724d7..00000000 --- a/app/views/airports/tablo.html.erb +++ /dev/null @@ -1,55 +0,0 @@ -

    <%=@tablo %>

    - -<%= form_tag "/airports/#{@airport.id}/tablo_out/",:remote => 'true', :method => 'get', :id => "timetableaps_search" do %> -
    - <%= select_tag "start_time", options_for_select((Time.now.in_time_zone(@airport.time_zone).beginning_of_day.to_i..(Time.now.in_time_zone(@airport.time_zone).end_of_day).to_i).step(1.hour).collect {|x| [Time.at(x).to_s(:time), Time.at(x).utc] } ,params[:start_time]), :onchange => "this.form.submit();"%> - <%= select_tag "end_time", options_for_select(((Time.now.in_time_zone(@airport.time_zone).beginning_of_day+1.hour).to_i..(Time.now.in_time_zone(@airport.time_zone).beginning_of_day+1.day).to_i).step(1.hour).collect {|x| [Time.at(x).to_s(:time), Time.at(x).utc] } ,params[:end_time]), :onchange => "this.form.submit();"%> -
    -<% end %> - - - -
    - - - - - - - - - - - <%=render "airports/tablo"%> - -
    РейсНаправление

    Время местное

    (Время Ежинское)

    Статус
    -
    diff --git a/app/views/airports/tablo.html.haml b/app/views/airports/tablo.html.haml new file mode 100644 index 00000000..8563bc2e --- /dev/null +++ b/app/views/airports/tablo.html.haml @@ -0,0 +1,65 @@ +%h4= @tablo +.tablo_buttron + %a{:href => "/airports/#{@airport.id}/tablo/out", :class => 'btn btn-primary'} вылет + %a{:href => "/airports/#{@airport.id}/tablo/in", :class => 'btn btn-primary'} прилёт + %a{:href => "/airports/#{@airport.id}/tablo", :class => 'btn btn-primary'} Общее += form_tag "#",:remote => 'true', :method => 'get', :id => "timetableaps_search" do + #tablo_form.form + = label_tag :aircomapny, "Авиакомпания:" + = select_tag "search_al", options_from_collection_for_select(@airlines.order("airline_name_rus"), :id, :airline_name_rus, params[:search_al]), prompt: "All Airlines", :onchange => "this.form.submit();" + = select_tag "start_time", options_for_select((Time.now.in_time_zone(@airport.time_zone).beginning_of_day.to_i..(Time.now.in_time_zone(@airport.time_zone).end_of_day).to_i).step(1.hour).collect {|x| [Time.at(x).to_s(:time), Time.at(x).utc] } ,params[:start_time]), :onchange => "this.form.submit();" + = select_tag "end_time", options_for_select(((Time.now.in_time_zone(@airport.time_zone).beginning_of_day+1.hour).to_i..(Time.now.in_time_zone(@airport.time_zone).beginning_of_day+1.day).to_i).step(1.hour).collect {|x| [Time.at(x).to_s(:time), Time.at(x).utc] } ,params[:end_time]), :onchange => "this.form.submit();" +:javascript + $(document).ready(function(){ + var max = $('#start_time').val(); + var min = $('#end_time').val(); + var rangeSlider = $('#slider') + .slider({ + min: 1, + max: 24, + step: 1, + values: [1, 24], + value: $("#start_time").selectedIndex + 1, + range: true, + animate: true, + slide: function(e,ui) { + $('#start_time')[0].selectedIndex = ui.value - 1; + $('#end_time')[0].selectedIndex = ui.value - 1; + $(this) + .find('#start_time option:selected').val(ui.values[0]).text(); + $(this) + .find('#end_time option:selected').val(ui.values[1]).text(); + }, + stop: function(event, ui) { + $.get("#", { start_time: $("#start_time").val(), end_time: $("#end_time").val()} ); + } + }) + // .before('

    Drag the slider to filter by price:

    '); + + $('#tablo_form').after(rangeSlider); + }); +:javascript + $(document).ready(function(){ + setInterval(foo, 60000); + foo(); + function foo () { + $('#tda').load("# #tt", function() { + $("#tt").tablesorter({ + widgets: ["zebra"], + sortList:[[1,0]] + }); + });} + }); + +#tda.table-responsive + %table#tt.tablesorter.table.table-striped.table-hover.table-condensed + %thead + %tr + %th Направление + %th + %p Время местное + %p (Время Ежинское) + %th Статус + %tbody + = render "airports/tablo" + %tbody diff --git a/app/views/airports/tablo.mobile.erb b/app/views/airports/tablo.mobile.erb deleted file mode 100644 index 7424e3f2..00000000 --- a/app/views/airports/tablo.mobile.erb +++ /dev/null @@ -1,22 +0,0 @@ - - -

    <%=@tablo %>

    -
    - - - - - - - - - - - <%=render "airports/tablo.mobile"%> - -
    РейсНаправлениеВремяСтатус
    -
    diff --git a/app/views/airports/tablo.mobile.haml b/app/views/airports/tablo.mobile.haml new file mode 100644 index 00000000..de6c2af6 --- /dev/null +++ b/app/views/airports/tablo.mobile.haml @@ -0,0 +1,36 @@ + +:javascript + $(document).ready(function(){ + setInterval(foo, 60000); + foo(); + function foo () { + $('#tda').load("# #tt", function() { + $("#tt").tablesorter({ + widgets: ["zebra"], + sortList:[[1,0]] + }); + });} + }); +%h4= @tablo +.tablo_buttron + %a{:href => "/airports/#{@airport.id}/tablo/out", :class => 'btn btn-primary'} вылет + %a{:href => "/airports/#{@airport.id}/tablo/in", :class => 'btn btn-primary'} прилёт + %a{:href => "/airports/#{@airport.id}/tablo", :class => 'btn btn-primary'} Общее += form_tag "#", :remote => 'true', :method => 'get', :id => "timetableaps_search" do + #tablo_form + = label_tag :aircomapny, "Авиакомпания:" + = select_tag "search_al", options_from_collection_for_select(@airlines.order("airline_name_rus"), :id, :airline_name_rus, params[:search_al]), prompt: "All Airlines", :onchange => "this.form.submit();" + = select_tag "start_time", options_for_select((Time.now.in_time_zone(@airport.time_zone).beginning_of_day.to_i..(Time.now.in_time_zone(@airport.time_zone).end_of_day).to_i).step(1.hour).collect {|x| [Time.at(x).to_s(:time), Time.at(x).utc] } ,params[:start_time]), :onchange => "this.form.submit();" + = select_tag "end_time", options_for_select(((Time.now.in_time_zone(@airport.time_zone).beginning_of_day+1.hour).to_i..(Time.now.in_time_zone(@airport.time_zone).beginning_of_day+1.day).to_i).step(1.hour).collect {|x| [Time.at(x).to_s(:time), Time.at(x).utc] } ,params[:end_time]), :onchange => "this.form.submit();" +, params[:search_al]), prompt: "All Airlines", :onchange => "this.form.submit();" +#tda.table-responsive + %table#tt.tablesorter.table.table-striped.table-hover.table-condensed + %thead + %tr + %th Рейс + %th Направление + %th Время + %th Статус + %tbody + = render "airports/tablo.mobile" + %tbody diff --git a/app/views/aphubs/index.html.haml b/app/views/aphubs/index.html.haml index 1dcb987b..737813ee 100644 --- a/app/views/aphubs/index.html.haml +++ b/app/views/aphubs/index.html.haml @@ -10,8 +10,8 @@ - @aphubs.each do |aphub| %tr - %td= aphub.airport_id - %td= aphub.aircompany_id + %td= aphub.airport.name_rus + %td= aphub.aircompany.airline_name_rus %td= link_to 'Show', aphub %td= link_to 'Edit', edit_aphub_path(aphub) %td= link_to 'Destroy', aphub, :method => :delete, :data => { :confirm => 'Are you sure?' } diff --git a/app/views/aphubs/index.mobile.haml b/app/views/aphubs/index.mobile.haml index 1dcb987b..737813ee 100644 --- a/app/views/aphubs/index.mobile.haml +++ b/app/views/aphubs/index.mobile.haml @@ -10,8 +10,8 @@ - @aphubs.each do |aphub| %tr - %td= aphub.airport_id - %td= aphub.aircompany_id + %td= aphub.airport.name_rus + %td= aphub.aircompany.airline_name_rus %td= link_to 'Show', aphub %td= link_to 'Edit', edit_aphub_path(aphub) %td= link_to 'Destroy', aphub, :method => :delete, :data => { :confirm => 'Are you sure?' } diff --git a/app/views/aphubs/show.html.haml b/app/views/aphubs/show.html.haml index 2e6e2974..e78e7198 100644 --- a/app/views/aphubs/show.html.haml +++ b/app/views/aphubs/show.html.haml @@ -2,10 +2,10 @@ %p %b Airport: - = @aphub.airport_id + = @aphub.airport.name_rus %p %b Aircompany: - = @aphub.aircompany_id + = @aphub.aircompany.airline_name_rus = link_to 'Edit', edit_aphub_path(@aphub) \| diff --git a/app/views/aphubs/show.mobile.haml b/app/views/aphubs/show.mobile.haml index 2e6e2974..e78e7198 100644 --- a/app/views/aphubs/show.mobile.haml +++ b/app/views/aphubs/show.mobile.haml @@ -2,10 +2,10 @@ %p %b Airport: - = @aphub.airport_id + = @aphub.airport.name_rus %p %b Aircompany: - = @aphub.aircompany_id + = @aphub.aircompany.airline_name_rus = link_to 'Edit', edit_aphub_path(@aphub) \| diff --git a/app/views/countries/_countries.html.haml b/app/views/countries/_countries.html.haml index 94fe115c..59e84c0b 100644 --- a/app/views/countries/_countries.html.haml +++ b/app/views/countries/_countries.html.haml @@ -2,7 +2,7 @@ = hidden_field_tag :sort, params[:sort] = render "countries_paginate_top" -%table.pretty +%table.table-striped.table-hover.table-condensed %tr %th= sortable "country_name" %th= sortable "country_iata_code" diff --git a/app/views/countries/_countries.mobile.haml b/app/views/countries/_countries.mobile.haml index 2186f421..c7cc4cf4 100644 --- a/app/views/countries/_countries.mobile.haml +++ b/app/views/countries/_countries.mobile.haml @@ -2,7 +2,7 @@ = hidden_field_tag :sort, params[:sort] = render "countries_paginate_top.mobile" -%table.pretty +%table.table-striped.table-hover.table-condensed %tr %th= sortable "country_name" %th= sortable "country_iata_code" diff --git a/app/views/countries/_countries_paginate_bottom.html.erb b/app/views/countries/_countries_paginate_bottom.html.erb deleted file mode 100644 index c9f651dd..00000000 --- a/app/views/countries/_countries_paginate_bottom.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    -
    - <%= page_entries_info @countries %> -
    - <%= paginate @countries, :remote => true%> -
    diff --git a/app/views/countries/_countries_paginate_bottom.html.haml b/app/views/countries/_countries_paginate_bottom.html.haml new file mode 100644 index 00000000..1232b8a8 --- /dev/null +++ b/app/views/countries/_countries_paginate_bottom.html.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + .page_info + = page_entries_info @countries + = paginate @countries, :remote => true diff --git a/app/views/countries/_countries_paginate_bottom.mobile.erb b/app/views/countries/_countries_paginate_bottom.mobile.erb deleted file mode 100644 index 12dc5ebf..00000000 --- a/app/views/countries/_countries_paginate_bottom.mobile.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    -
    - <%= page_entries_info @countries %> -
    - <%= paginate @countries%> -
    diff --git a/app/views/countries/_countries_paginate_bottom.mobile.haml b/app/views/countries/_countries_paginate_bottom.mobile.haml new file mode 100644 index 00000000..994afd93 --- /dev/null +++ b/app/views/countries/_countries_paginate_bottom.mobile.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + .page_info + = page_entries_info @countries + = paginate @countries diff --git a/app/views/countries/_countries_paginate_top.html.erb b/app/views/countries/_countries_paginate_top.html.erb deleted file mode 100644 index f09d3628..00000000 --- a/app/views/countries/_countries_paginate_top.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -
    - <%= paginate @countries, remote: true%> -
    - <%= page_entries_info @countries %> -
    -
    - diff --git a/app/views/countries/_countries_paginate_top.html.haml b/app/views/countries/_countries_paginate_top.html.haml new file mode 100644 index 00000000..4dea1626 --- /dev/null +++ b/app/views/countries/_countries_paginate_top.html.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + = paginate @countries, remote: true + .page_info + = page_entries_info @countries diff --git a/app/views/countries/_countries_paginate_top.mobile.erb b/app/views/countries/_countries_paginate_top.mobile.erb deleted file mode 100644 index 8a1adad8..00000000 --- a/app/views/countries/_countries_paginate_top.mobile.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    - <%= paginate @countries%> -
    - <%= page_entries_info @countries %> -
    -
    diff --git a/app/views/countries/_countries_paginate_top.mobile.haml b/app/views/countries/_countries_paginate_top.mobile.haml new file mode 100644 index 00000000..177eaee9 --- /dev/null +++ b/app/views/countries/_countries_paginate_top.mobile.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + = paginate @countries + .page_info + = page_entries_info @countries diff --git a/app/views/countries/al_show.js.haml b/app/views/countries/al_show.js.haml new file mode 100644 index 00000000..fbe0174b --- /dev/null +++ b/app/views/countries/al_show.js.haml @@ -0,0 +1,2 @@ +$("#aircompanies").html("#{escape_javascript(render("aircompanies/aircompanies"))}"); +$('.pagination').html('#{escape_javascript(paginate(@aircompanies, :remote => true).to_s)}'); diff --git a/app/views/countries/ap_show.html.haml b/app/views/countries/ap_show.html.haml index b58eaa97..4f062cc8 100644 --- a/app/views/countries/ap_show.html.haml +++ b/app/views/countries/ap_show.html.haml @@ -1,4 +1,3 @@ -%p#notice= notice = render "airports/index" = link_to 'Edit country', edit_country_path(@country) diff --git a/app/views/countries/ap_show.mobile.haml b/app/views/countries/ap_show.mobile.haml index 14fe3964..730e7ba7 100644 --- a/app/views/countries/ap_show.mobile.haml +++ b/app/views/countries/ap_show.mobile.haml @@ -1,4 +1,3 @@ -%p#notice= notice = render "airports/index.mobile" = link_to 'Edit country', edit_country_path(@country) diff --git a/app/views/countries/index.html.haml b/app/views/countries/index.html.haml index a8988398..e49bb68b 100644 --- a/app/views/countries/index.html.haml +++ b/app/views/countries/index.html.haml @@ -1,6 +1,8 @@ %h1 Страны мира %p Выьерете страну, с которой будете работать. += render "layouts/per_page" + = form_tag countries_path, :method => 'get', :remote => "true", :id => "countries_search" do = text_field_tag :search, params[:search], autofocus: true = submit_tag "Search", :name => nil diff --git a/app/views/countries/index.mobile.haml b/app/views/countries/index.mobile.haml index 38ed6a33..04a777f9 100644 --- a/app/views/countries/index.mobile.haml +++ b/app/views/countries/index.mobile.haml @@ -1,6 +1,7 @@ %h1 Страны мира %p Выьерете страну, с которой будете работать. += render "layouts/per_page" = form_tag countries_path, :method => 'get', :remote => "true", :id => "countries_search" do = text_field_tag :search, params[:search] = submit_tag "Search", :name => nil diff --git a/app/views/countries/show.html.haml b/app/views/countries/show.html.haml index 2d2734ad..1e2e7880 100644 --- a/app/views/countries/show.html.haml +++ b/app/views/countries/show.html.haml @@ -17,7 +17,7 @@ = @country.country_number -#- = render "airports/index" -= render "towns/index" += render template: "towns/index"
    -if policy(@country).edit? diff --git a/app/views/countries/tw_show.html.haml b/app/views/countries/tw_show.html.haml index 69b0dd07..cacf6188 100644 --- a/app/views/countries/tw_show.html.haml +++ b/app/views/countries/tw_show.html.haml @@ -1,5 +1,5 @@ -%p#notice= notice -= render 'towns/index' += render template: 'towns/index' +%br = link_to 'Edit country', edit_country_path(@country) = link_to 'Back to all countries', countries_path+"?search=&utf8=✓" diff --git a/app/views/countries/tw_show.js.erb b/app/views/countries/tw_show.js.erb new file mode 100644 index 00000000..0d541205 --- /dev/null +++ b/app/views/countries/tw_show.js.erb @@ -0,0 +1,2 @@ +$("#towns").html("<%= escape_javascript(render("towns/towns")) %>"); +$('.pagination').html('<%= escape_javascript(paginate(@towns, :remote => true).to_s) %>'); diff --git a/app/views/countries/tw_show.mobile.haml b/app/views/countries/tw_show.mobile.haml index 70ef91a2..7bd26fb9 100644 --- a/app/views/countries/tw_show.mobile.haml +++ b/app/views/countries/tw_show.mobile.haml @@ -1,5 +1,3 @@ -%p#notice= notice -= render 'towns/index.mobile' - += render template: 'towns/index.mobile' = link_to 'Edit country', edit_country_path(@country) = link_to 'Back to all countries', countries_path+"?search=&utf8=✓" diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb deleted file mode 100644 index 9c27eb72..00000000 --- a/app/views/devise/confirmations/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

    Resend confirmation instructions

    - -<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> - -
    <%= f.label :email %>
    - <%= f.email_field :email, :autofocus => true %>
    - -
    <%= f.submit "Resend confirmation instructions" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/confirmations/new.html.haml b/app/views/devise/confirmations/new.html.haml new file mode 100644 index 00000000..88c63737 --- /dev/null +++ b/app/views/devise/confirmations/new.html.haml @@ -0,0 +1,9 @@ +%h2 Resend confirmation instructions += form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| + = devise_error_messages! + %div + = f.label :email + %br/ + = f.email_field :email, :autofocus => true + %div= f.submit "Resend confirmation instructions" += render "devise/shared/links" diff --git a/app/views/devise/confirmations/new.mobile.erb b/app/views/devise/confirmations/new.mobile.erb deleted file mode 100644 index 9c27eb72..00000000 --- a/app/views/devise/confirmations/new.mobile.erb +++ /dev/null @@ -1,12 +0,0 @@ -

    Resend confirmation instructions

    - -<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> - -
    <%= f.label :email %>
    - <%= f.email_field :email, :autofocus => true %>
    - -
    <%= f.submit "Resend confirmation instructions" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/confirmations/new.mobile.haml b/app/views/devise/confirmations/new.mobile.haml new file mode 100644 index 00000000..88c63737 --- /dev/null +++ b/app/views/devise/confirmations/new.mobile.haml @@ -0,0 +1,9 @@ +%h2 Resend confirmation instructions += form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| + = devise_error_messages! + %div + = f.label :email + %br/ + = f.email_field :email, :autofocus => true + %div= f.submit "Resend confirmation instructions" += render "devise/shared/links" diff --git a/app/views/devise/mailer/confirmation_instructions.html.erb b/app/views/devise/mailer/confirmation_instructions.html.erb deleted file mode 100644 index 5b04a725..00000000 --- a/app/views/devise/mailer/confirmation_instructions.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

    Welcome <%= @email %>!

    - -

    You can confirm your account email through the link below:

    - -

    <%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %>

    diff --git a/app/views/devise/mailer/confirmation_instructions.html.haml b/app/views/devise/mailer/confirmation_instructions.html.haml new file mode 100644 index 00000000..eeab62bc --- /dev/null +++ b/app/views/devise/mailer/confirmation_instructions.html.haml @@ -0,0 +1,4 @@ +%p + Welcome #{@email}! +%p You can confirm your account email through the link below: +%p= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) diff --git a/app/views/devise/mailer/confirmation_instructions.mobile.erb b/app/views/devise/mailer/confirmation_instructions.mobile.erb deleted file mode 100644 index 5b04a725..00000000 --- a/app/views/devise/mailer/confirmation_instructions.mobile.erb +++ /dev/null @@ -1,5 +0,0 @@ -

    Welcome <%= @email %>!

    - -

    You can confirm your account email through the link below:

    - -

    <%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %>

    diff --git a/app/views/devise/mailer/confirmation_instructions.mobile.haml b/app/views/devise/mailer/confirmation_instructions.mobile.haml new file mode 100644 index 00000000..eeab62bc --- /dev/null +++ b/app/views/devise/mailer/confirmation_instructions.mobile.haml @@ -0,0 +1,4 @@ +%p + Welcome #{@email}! +%p You can confirm your account email through the link below: +%p= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) diff --git a/app/views/devise/mailer/reset_password_instructions.html.erb b/app/views/devise/mailer/reset_password_instructions.html.erb deleted file mode 100644 index 27130348..00000000 --- a/app/views/devise/mailer/reset_password_instructions.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

    Hello <%= @resource.email %>!

    - -

    Someone has requested a link to change your password. You can do this through the link below.

    - -

    <%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>

    - -

    If you didn't request this, please ignore this email.

    -

    Your password won't change until you access the link above and create a new one.

    diff --git a/app/views/devise/mailer/reset_password_instructions.html.haml b/app/views/devise/mailer/reset_password_instructions.html.haml new file mode 100644 index 00000000..bc9e1964 --- /dev/null +++ b/app/views/devise/mailer/reset_password_instructions.html.haml @@ -0,0 +1,6 @@ +%p + Hello #{@resource.email}! +%p Someone has requested a link to change your password. You can do this through the link below. +%p= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) +%p If you didn't request this, please ignore this email. +%p Your password won't change until you access the link above and create a new one. diff --git a/app/views/devise/mailer/reset_password_instructions.mobile.erb b/app/views/devise/mailer/reset_password_instructions.mobile.erb deleted file mode 100644 index 27130348..00000000 --- a/app/views/devise/mailer/reset_password_instructions.mobile.erb +++ /dev/null @@ -1,8 +0,0 @@ -

    Hello <%= @resource.email %>!

    - -

    Someone has requested a link to change your password. You can do this through the link below.

    - -

    <%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>

    - -

    If you didn't request this, please ignore this email.

    -

    Your password won't change until you access the link above and create a new one.

    diff --git a/app/views/devise/mailer/reset_password_instructions.mobile.haml b/app/views/devise/mailer/reset_password_instructions.mobile.haml new file mode 100644 index 00000000..bc9e1964 --- /dev/null +++ b/app/views/devise/mailer/reset_password_instructions.mobile.haml @@ -0,0 +1,6 @@ +%p + Hello #{@resource.email}! +%p Someone has requested a link to change your password. You can do this through the link below. +%p= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) +%p If you didn't request this, please ignore this email. +%p Your password won't change until you access the link above and create a new one. diff --git a/app/views/devise/mailer/unlock_instructions.html.erb b/app/views/devise/mailer/unlock_instructions.html.erb deleted file mode 100644 index a4152e13..00000000 --- a/app/views/devise/mailer/unlock_instructions.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -

    Hello <%= @resource.email %>!

    - -

    Your account has been locked due to an excessive number of unsuccessful sign in attempts.

    - -

    Click the link below to unlock your account:

    - -

    <%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %>

    diff --git a/app/views/devise/mailer/unlock_instructions.html.haml b/app/views/devise/mailer/unlock_instructions.html.haml new file mode 100644 index 00000000..72f6a0b0 --- /dev/null +++ b/app/views/devise/mailer/unlock_instructions.html.haml @@ -0,0 +1,5 @@ +%p + Hello #{@resource.email}! +%p Your account has been locked due to an excessive number of unsuccessful sign in attempts. +%p Click the link below to unlock your account: +%p= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) diff --git a/app/views/devise/mailer/unlock_instructions.mobile.erb b/app/views/devise/mailer/unlock_instructions.mobile.erb deleted file mode 100644 index a4152e13..00000000 --- a/app/views/devise/mailer/unlock_instructions.mobile.erb +++ /dev/null @@ -1,7 +0,0 @@ -

    Hello <%= @resource.email %>!

    - -

    Your account has been locked due to an excessive number of unsuccessful sign in attempts.

    - -

    Click the link below to unlock your account:

    - -

    <%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %>

    diff --git a/app/views/devise/mailer/unlock_instructions.mobile.haml b/app/views/devise/mailer/unlock_instructions.mobile.haml new file mode 100644 index 00000000..72f6a0b0 --- /dev/null +++ b/app/views/devise/mailer/unlock_instructions.mobile.haml @@ -0,0 +1,5 @@ +%p + Hello #{@resource.email}! +%p Your account has been locked due to an excessive number of unsuccessful sign in attempts. +%p Click the link below to unlock your account: +%p= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb deleted file mode 100644 index 34a49604..00000000 --- a/app/views/devise/passwords/edit.html.erb +++ /dev/null @@ -1,16 +0,0 @@ -

    Change your password

    - -<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %> - <%= devise_error_messages! %> - <%= f.hidden_field :reset_password_token %> - -
    <%= f.label :password, "New password" %>
    - <%= f.password_field :password, :autofocus => true %>
    - -
    <%= f.label :password_confirmation, "Confirm new password" %>
    - <%= f.password_field :password_confirmation %>
    - -
    <%= f.submit "Change my password" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/passwords/edit.html.haml b/app/views/devise/passwords/edit.html.haml new file mode 100644 index 00000000..85156881 --- /dev/null +++ b/app/views/devise/passwords/edit.html.haml @@ -0,0 +1,14 @@ +%h2 Change your password += form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| + = devise_error_messages! + = f.hidden_field :reset_password_token + %div + = f.label :password, "New password" + %br/ + = f.password_field :password, :autofocus => true + %div + = f.label :password_confirmation, "Confirm new password" + %br/ + = f.password_field :password_confirmation + %div= f.submit "Change my password" += render "devise/shared/links" diff --git a/app/views/devise/passwords/edit.mobile.erb b/app/views/devise/passwords/edit.mobile.erb deleted file mode 100644 index 34a49604..00000000 --- a/app/views/devise/passwords/edit.mobile.erb +++ /dev/null @@ -1,16 +0,0 @@ -

    Change your password

    - -<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %> - <%= devise_error_messages! %> - <%= f.hidden_field :reset_password_token %> - -
    <%= f.label :password, "New password" %>
    - <%= f.password_field :password, :autofocus => true %>
    - -
    <%= f.label :password_confirmation, "Confirm new password" %>
    - <%= f.password_field :password_confirmation %>
    - -
    <%= f.submit "Change my password" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/passwords/edit.mobile.haml b/app/views/devise/passwords/edit.mobile.haml new file mode 100644 index 00000000..85156881 --- /dev/null +++ b/app/views/devise/passwords/edit.mobile.haml @@ -0,0 +1,14 @@ +%h2 Change your password += form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| + = devise_error_messages! + = f.hidden_field :reset_password_token + %div + = f.label :password, "New password" + %br/ + = f.password_field :password, :autofocus => true + %div + = f.label :password_confirmation, "Confirm new password" + %br/ + = f.password_field :password_confirmation + %div= f.submit "Change my password" += render "devise/shared/links" diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb deleted file mode 100644 index 5a400df1..00000000 --- a/app/views/devise/passwords/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

    Forgot your password?

    - -<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> - -
    <%= f.label :email %>
    - <%= f.email_field :email, :autofocus => true %>
    - -
    <%= f.submit "Send me reset password instructions" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/passwords/new.html.haml b/app/views/devise/passwords/new.html.haml new file mode 100644 index 00000000..591033be --- /dev/null +++ b/app/views/devise/passwords/new.html.haml @@ -0,0 +1,9 @@ +%h2 Forgot your password? += form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| + = devise_error_messages! + %div + = f.label :email + %br/ + = f.email_field :email, :autofocus => true + %div= f.submit "Send me reset password instructions" += render "devise/shared/links" diff --git a/app/views/devise/passwords/new.mobile.erb b/app/views/devise/passwords/new.mobile.erb deleted file mode 100644 index 5a400df1..00000000 --- a/app/views/devise/passwords/new.mobile.erb +++ /dev/null @@ -1,12 +0,0 @@ -

    Forgot your password?

    - -<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> - -
    <%= f.label :email %>
    - <%= f.email_field :email, :autofocus => true %>
    - -
    <%= f.submit "Send me reset password instructions" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/passwords/new.mobile.haml b/app/views/devise/passwords/new.mobile.haml new file mode 100644 index 00000000..591033be --- /dev/null +++ b/app/views/devise/passwords/new.mobile.haml @@ -0,0 +1,9 @@ +%h2 Forgot your password? += form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| + = devise_error_messages! + %div + = f.label :email + %br/ + = f.email_field :email, :autofocus => true + %div= f.submit "Send me reset password instructions" += render "devise/shared/links" diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb deleted file mode 100644 index 425655a4..00000000 --- a/app/views/devise/registrations/edit.html.erb +++ /dev/null @@ -1,75 +0,0 @@ -

    Изменить пользователя <%= current_user.username%>

    -
    -
    -
    - <%= image_tag @user.avatar.url(:big) %> -
    -
    -
    -<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :data => {:ajax => 'false'}}) do |f| %> - <%= devise_error_messages! %> -

    Редактирование имя и Email <%= current_user.username%>

    -
    - <%= f.label :username %> - <%= f.text_field :username, :autofocus => true %> -
    -
    - <%= f.label :email %> - <%= f.email_field :email %> -
    - -
    - <%= f.label :avatar %> -
    - <%= f.file_field :avatar %> -
    -
    - - <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> -
    - <%= f.label "Currently waiting confirmation for:"%> - <%= resource.unconfirmed_email %> -
    - <% end %> - -
    -

    Изменение пароля пользователя <%= current_user.username%>

    -
    - <%= f.label "Новый пароль:" %> - <%= f.password_field :password, :autocomplete => "off" %> -
    -
    - <%= f.label "Подтвердите новый пароль:" %> - <%= f.password_field :password_confirmation %> -
    -
    - -

    Изменение других настроек для <%= current_user.username%>

    - -
    - <%= f.label :time_zone %> - <%= f.time_zone_select :time_zone %> -
    - -
    - <%= f.label :town_id%> - <%= autocomplete_field_tag 'town', '', autocomplete_town_accent_city_towns_path, :size => 30, 'data-auto-focus' => true, :update_elements => {:id => '#user_town_id'}, :value => params[:town] %> - <%= f.hidden_field :town_id%> -
    - -
    - <%= f.label :user_theme %> - <%= f.select :user_theme_id, UserTheme.order(:theme).collect{|item| [item.theme, item.id]}%> -
    - -

    Введите текущий пароль:

    - -
    - <%= f.label :current_password %> - <%= f.password_field :current_password %> -
    - -
    <%= f.submit "Update" %>
    -<% end %> - -<%= link_to "Back", :back, class: "jqbutton" %>
    diff --git a/app/views/devise/registrations/edit.html.haml b/app/views/devise/registrations/edit.html.haml new file mode 100644 index 00000000..11b65e44 --- /dev/null +++ b/app/views/devise/registrations/edit.html.haml @@ -0,0 +1,52 @@ +%h2 + Изменить пользователя #{current_user.username} +.field-form + .field-form-section + .round-image-250 + = image_tag @user.avatar.url(:big) + .field-form-section + = form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :data => {:ajax => 'false'}}) do |f| + = devise_error_messages! + %h3 + Редактирование имя и Email #{current_user.username} + .field + = f.label :username + = f.text_field :username, :autofocus => true + .field + = f.label :email + = f.email_field :email + .field + = f.label :avatar + .avatar + = f.file_field :avatar + - if devise_mapping.confirmable? && resource.pending_reconfirmation? + .field + = f.label "Currently waiting confirmation for:" + = resource.unconfirmed_email + %div + %h3 + Изменение пароля пользователя #{current_user.username} + %div + = f.label "Новый пароль:" + = f.password_field :password, :autocomplete => "off" + %div + = f.label "Подтвердите новый пароль:" + = f.password_field :password_confirmation + %h3 + Изменение других настроек для #{current_user.username} + %div + = f.label :time_zone + = f.time_zone_select :time_zone + .field + = f.label :town_id + = autocomplete_field_tag 'town', '', autocomplete_town_accent_city_towns_path, :size => 30, 'data-auto-focus' => true, :update_elements => {:id => '#user_town_id'}, :value => params[:town] + = f.hidden_field :town_id + %div + = f.label :user_theme + = f.select :user_theme_id, UserTheme.order(:theme).collect{|item| [item.theme, item.id]} + %h3 Введите текущий пароль: + %div + = f.label :current_password + = f.password_field :current_password + %div= f.submit "Update" + = link_to "Back", :back, class: "jqbutton" diff --git a/app/views/devise/registrations/edit.mobile.erb b/app/views/devise/registrations/edit.mobile.erb deleted file mode 100644 index 7d3c3782..00000000 --- a/app/views/devise/registrations/edit.mobile.erb +++ /dev/null @@ -1,74 +0,0 @@ -

    Изменить пользователя <%= current_user.username%>

    -
    -
    - <%= image_tag @user.avatar.url(:big) %>
    -
    -
    -<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :data => {:ajax => 'false'} }) do |f| %> - <%= devise_error_messages! %> -

    Редактирование имя и Email <%= current_user.username%>

    -
    - <%= f.label :username %> - <%= f.text_field :username, :autofocus => true %> -
    -
    - <%= f.label :email %> - <%= f.email_field :email %> -
    - -
    - <%= f.label :avatar %> -
    - <%= f.file_field :avatar %> -
    -
    - - - <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> -
    - <%= f.label "Currently waiting confirmation for:"%> - <%= resource.unconfirmed_email %> -
    - <% end %> - -
    -

    Изменение пароля пользователя <%= current_user.username%>

    -
    - <%= f.label "Новый пароль:" %> - <%= f.password_field :password, :autocomplete => "off" %> -
    -
    - <%= f.label "Подтвердите новый пароль:" %> - <%= f.password_field :password_confirmation %> -
    -
    - -

    Изменение других настроек для <%= current_user.username%>

    - -
    - <%= f.label :time_zone %> - <%= f.time_zone_select :time_zone %> -
    - -
    - <%= f.label :town_id%> - <%= autocomplete_field_tag 'town', '', autocomplete_town_accent_city_towns_path, :size => 30, 'data-auto-focus' => true, :update_elements => {:id => '#user_town_id'}, :value => params[:town] %> - <%= f.hidden_field :town_id%> -
    - -
    - <%= f.label :user_theme %> - <%= f.select :user_theme_id, UserTheme.order(:theme).collect{|item| [item.theme, item.id]}%> -
    - -

    Введите текущий пароль:

    - -
    - <%= f.label :current_password %> - <%= f.password_field :current_password %> -
    - -
    <%= f.submit "Update" %>
    -<% end %> - -<%= link_to "Back", :back %>
    diff --git a/app/views/devise/registrations/edit.mobile.haml b/app/views/devise/registrations/edit.mobile.haml new file mode 100644 index 00000000..4e107d6b --- /dev/null +++ b/app/views/devise/registrations/edit.mobile.haml @@ -0,0 +1,52 @@ +%h2 + Изменить пользователя #{current_user.username} +.field-form + .field-form-section + .round-image-250 + = image_tag @user.avatar.url(:big) + .field-form-section + = form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :data => {:ajax => 'false'} }) do |f| + = devise_error_messages! + %h3 + Редактирование имя и Email #{current_user.username} + .field + = f.label :username + = f.text_field :username, :autofocus => true + .field + = f.label :email + = f.email_field :email + .field + = f.label :avatar + .avatar + = f.file_field :avatar + - if devise_mapping.confirmable? && resource.pending_reconfirmation? + .field + = f.label "Currently waiting confirmation for:" + = resource.unconfirmed_email + %div + %h3 + Изменение пароля пользователя #{current_user.username} + %div + = f.label "Новый пароль:" + = f.password_field :password, :autocomplete => "off" + %div + = f.label "Подтвердите новый пароль:" + = f.password_field :password_confirmation + %h3 + Изменение других настроек для #{current_user.username} + %div + = f.label :time_zone + = f.time_zone_select :time_zone + .field + = f.label :town_id + = autocomplete_field_tag 'town', '', autocomplete_town_accent_city_towns_path, :size => 30, 'data-auto-focus' => true, :update_elements => {:id => '#user_town_id'}, :value => params[:town] + = f.hidden_field :town_id + %div + = f.label :user_theme + = f.select :user_theme_id, UserTheme.order(:theme).collect{|item| [item.theme, item.id]} + %h3 Введите текущий пароль: + %div + = f.label :current_password + = f.password_field :current_password + %div= f.submit "Update" + = link_to "Back", :back diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb deleted file mode 100644 index aae25be6..00000000 --- a/app/views/devise/registrations/new.html.erb +++ /dev/null @@ -1,35 +0,0 @@ -

    Sign up

    - -<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:data => {:ajax => 'false'}}) do |f| %> - <%= devise_error_messages! %> - -

    <%= f.label :username %>
    - <%= f.text_field :username %>

    - -
    <%= f.label :email %>
    - <%= f.email_field :email, :autofocus => true %>
    - -
    <%= f.label :password %>
    - <%= f.password_field :password %>
    - -
    <%= f.label :password_confirmation %>
    - <%= f.password_field :password_confirmation %>
    - -
    <%= f.label :time_zone %> - <%= f.time_zone_select :time_zone%>
    - -
    - <%= f.label :town_id%> - <%= autocomplete_field_tag 'town', '', autocomplete_town_accent_city_towns_path, :size => 30, 'data-auto-focus' => true, :update_elements => {:id => '#user_town_id'}, :value => params[:town] %> - <%= f.hidden_field :town_id%> -
    - -
    - <%= f.label :user_theme %> - <%= f.select :user_theme_id, UserTheme.all.collect{|item| [item.theme, item.id]}%> -
    - -
    <%= f.submit "Sign up" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/registrations/new.html.haml b/app/views/devise/registrations/new.html.haml new file mode 100644 index 00000000..c530e717 --- /dev/null +++ b/app/views/devise/registrations/new.html.haml @@ -0,0 +1,31 @@ +%h2 Sign up += form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:data => {:ajax => 'false'}}) do |f| + = devise_error_messages! + %p + = f.label :username + %br/ + = f.text_field :username + %div + = f.label :email + %br/ + = f.email_field :email, :autofocus => true + %div + = f.label :password + %br/ + = f.password_field :password + %div + = f.label :password_confirmation + %br/ + = f.password_field :password_confirmation + %div + = f.label :time_zone + = f.time_zone_select :time_zone + .field + = f.label :town_id + = autocomplete_field_tag 'town', '', autocomplete_town_accent_city_towns_path, :size => 30, 'data-auto-focus' => true, :update_elements => {:id => '#user_town_id'}, :value => params[:town] + = f.hidden_field :town_id + %div + = f.label :user_theme + = f.select :user_theme_id, UserTheme.all.collect{|item| [item.theme, item.id]} + %div= f.submit "Sign up" += render "devise/shared/links" diff --git a/app/views/devise/registrations/new.mobile.erb b/app/views/devise/registrations/new.mobile.erb deleted file mode 100644 index 167f6276..00000000 --- a/app/views/devise/registrations/new.mobile.erb +++ /dev/null @@ -1,24 +0,0 @@ -

    Sign up

    - -<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> - <%= devise_error_messages! %> - -

    <%= f.label :username %>
    - <%= f.text_field :username %>

    - -
    <%= f.label :email %>
    - <%= f.email_field :email, :autofocus => true %>
    - -
    <%= f.label :password %>
    - <%= f.password_field :password %>
    - -
    <%= f.label :password_confirmation %>
    - <%= f.password_field :password_confirmation %>
    - -
    <%= f.label :time_zone %>
    - <%= f.time_zone_select :time_zone%>
    - -
    <%= f.submit "Sign up" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/registrations/new.mobile.haml b/app/views/devise/registrations/new.mobile.haml new file mode 100644 index 00000000..f982bf2f --- /dev/null +++ b/app/views/devise/registrations/new.mobile.haml @@ -0,0 +1,25 @@ +%h2 Sign up += form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| + = devise_error_messages! + %p + = f.label :username + %br/ + = f.text_field :username + %div + = f.label :email + %br/ + = f.email_field :email, :autofocus => true + %div + = f.label :password + %br/ + = f.password_field :password + %div + = f.label :password_confirmation + %br/ + = f.password_field :password_confirmation + %div + = f.label :time_zone + %br/ + = f.time_zone_select :time_zone + %div= f.submit "Sign up" += render "devise/shared/links" diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb deleted file mode 100644 index dd3463d3..00000000 --- a/app/views/devise/sessions/new.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -

    Sign in

    - -<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:data => {:ajax => 'false'}}) do |f| %> -

    - <%= f.label :login %> - <%= f.text_field :login, :autofocus => true %> -

    - -

    - <%= f.label :password %> - <%= f.password_field :password %> -

    - - <% if devise_mapping.rememberable? -%> -

    <%= f.label :remember %><%= f.check_box :remember_me %>

    - <% end -%> - - -

    Забыл пароль?

    - - -<% end %> diff --git a/app/views/devise/sessions/new.html.haml b/app/views/devise/sessions/new.html.haml new file mode 100644 index 00000000..8d7a2c6b --- /dev/null +++ b/app/views/devise/sessions/new.html.haml @@ -0,0 +1,19 @@ +%h1 Sign in += form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:data => {:ajax => 'false'}}) do |f| + %p + = f.label :login + = f.text_field :login, :autofocus => true + %p + = f.label :password + = f.password_field :password + - if devise_mapping.rememberable? + %p + = f.label :remember + = f.check_box :remember_me + %p.login-submit + = f.button "Sign in", class: "login-button" + %p.forgot-password + %a{:href => "index.html"} Забыл пароль? + :javascript + var elem = document.querySelector('#user_remember_me'); + var init = new Switchery(elem,{ color: '#fec200'}); diff --git a/app/views/devise/sessions/new.mobile.erb b/app/views/devise/sessions/new.mobile.erb deleted file mode 100644 index d9df179e..00000000 --- a/app/views/devise/sessions/new.mobile.erb +++ /dev/null @@ -1,15 +0,0 @@ -

    Sign in

    - -<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:data => {:ajax => 'false'}}) do |f| %> -
    <%= f.label :login %>
    - <%= f.text_field :login, :autofocus => true %>
    - -
    <%= f.label :password %>
    - <%= f.password_field :password %>
    - - <% if devise_mapping.rememberable? -%> -
    <%= f.check_box :remember_me %> <%= f.label :remember_me %>
    - <% end -%> - -
    <%= f.submit "Sign in" %>
    -<% end %> diff --git a/app/views/devise/sessions/new.mobile.haml b/app/views/devise/sessions/new.mobile.haml new file mode 100644 index 00000000..e1980dcc --- /dev/null +++ b/app/views/devise/sessions/new.mobile.haml @@ -0,0 +1,15 @@ +%h2 Sign in += form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:data => {:ajax => 'false'}}) do |f| + %div + = f.label :login + %br/ + = f.text_field :login, :autofocus => true + %div + = f.label :password + %br/ + = f.password_field :password + - if devise_mapping.rememberable? + %div + = f.check_box :remember_me + = f.label :remember_me + %div= f.submit "Sign in" diff --git a/app/views/devise/shared/_links.haml b/app/views/devise/shared/_links.haml new file mode 100644 index 00000000..35d07ece --- /dev/null +++ b/app/views/devise/shared/_links.haml @@ -0,0 +1,19 @@ +- if controller_name != 'sessions' + = link_to "Sign in", new_session_path(resource_name) + %br/ +- if devise_mapping.registerable? && controller_name != 'registrations' + = link_to "Sign up", new_registration_path(resource_name) + %br/ +- if devise_mapping.recoverable? && controller_name != 'passwords' + = link_to "Forgot your password?", new_password_path(resource_name) + %br/ +- if devise_mapping.confirmable? && controller_name != 'confirmations' + = link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) + %br/ +- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' + = link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) + %br/ +- if devise_mapping.omniauthable? + - resource_class.omniauth_providers.each do |provider| + = link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) + %br/ diff --git a/app/views/devise/shared/_links.html.erb b/app/views/devise/shared/_links.html.erb deleted file mode 100644 index cd795adb..00000000 --- a/app/views/devise/shared/_links.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -<%- if controller_name != 'sessions' %> - <%= link_to "Log in", new_session_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.registerable? && controller_name != 'registrations' %> - <%= link_to "Sign up", new_registration_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> - <%= link_to "Forgot your password?", new_password_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> - <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> - <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.omniauthable? %> - <%- resource_class.omniauth_providers.each do |provider| %> - <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %>
    - <% end -%> -<% end -%> diff --git a/app/views/devise/shared/_links.html.haml b/app/views/devise/shared/_links.html.haml new file mode 100644 index 00000000..3186efd0 --- /dev/null +++ b/app/views/devise/shared/_links.html.haml @@ -0,0 +1,19 @@ +- if controller_name != 'sessions' + = link_to "Log in", new_session_path(resource_name) + %br/ +- if devise_mapping.registerable? && controller_name != 'registrations' + = link_to "Sign up", new_registration_path(resource_name) + %br/ +- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' + = link_to "Forgot your password?", new_password_path(resource_name) + %br/ +- if devise_mapping.confirmable? && controller_name != 'confirmations' + = link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) + %br/ +- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' + = link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) + %br/ +- if devise_mapping.omniauthable? + - resource_class.omniauth_providers.each do |provider| + = link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) + %br/ diff --git a/app/views/devise/shared/_links.mobile.erb b/app/views/devise/shared/_links.mobile.erb deleted file mode 100644 index cd795adb..00000000 --- a/app/views/devise/shared/_links.mobile.erb +++ /dev/null @@ -1,25 +0,0 @@ -<%- if controller_name != 'sessions' %> - <%= link_to "Log in", new_session_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.registerable? && controller_name != 'registrations' %> - <%= link_to "Sign up", new_registration_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> - <%= link_to "Forgot your password?", new_password_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> - <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> - <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>
    -<% end -%> - -<%- if devise_mapping.omniauthable? %> - <%- resource_class.omniauth_providers.each do |provider| %> - <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %>
    - <% end -%> -<% end -%> diff --git a/app/views/devise/shared/_links.mobile.haml b/app/views/devise/shared/_links.mobile.haml new file mode 100644 index 00000000..3186efd0 --- /dev/null +++ b/app/views/devise/shared/_links.mobile.haml @@ -0,0 +1,19 @@ +- if controller_name != 'sessions' + = link_to "Log in", new_session_path(resource_name) + %br/ +- if devise_mapping.registerable? && controller_name != 'registrations' + = link_to "Sign up", new_registration_path(resource_name) + %br/ +- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' + = link_to "Forgot your password?", new_password_path(resource_name) + %br/ +- if devise_mapping.confirmable? && controller_name != 'confirmations' + = link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) + %br/ +- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' + = link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) + %br/ +- if devise_mapping.omniauthable? + - resource_class.omniauth_providers.each do |provider| + = link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) + %br/ diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb deleted file mode 100644 index 020787f8..00000000 --- a/app/views/devise/unlocks/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

    Resend unlock instructions

    - -<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> - -
    <%= f.label :email %>
    - <%= f.email_field :email, :autofocus => true %>
    - -
    <%= f.submit "Resend unlock instructions" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/unlocks/new.html.haml b/app/views/devise/unlocks/new.html.haml new file mode 100644 index 00000000..d3c87d07 --- /dev/null +++ b/app/views/devise/unlocks/new.html.haml @@ -0,0 +1,9 @@ +%h2 Resend unlock instructions += form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| + = devise_error_messages! + %div + = f.label :email + %br/ + = f.email_field :email, :autofocus => true + %div= f.submit "Resend unlock instructions" += render "devise/shared/links" diff --git a/app/views/devise/unlocks/new.mobile.erb b/app/views/devise/unlocks/new.mobile.erb deleted file mode 100644 index 020787f8..00000000 --- a/app/views/devise/unlocks/new.mobile.erb +++ /dev/null @@ -1,12 +0,0 @@ -

    Resend unlock instructions

    - -<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> - -
    <%= f.label :email %>
    - <%= f.email_field :email, :autofocus => true %>
    - -
    <%= f.submit "Resend unlock instructions" %>
    -<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/unlocks/new.mobile.haml b/app/views/devise/unlocks/new.mobile.haml new file mode 100644 index 00000000..d3c87d07 --- /dev/null +++ b/app/views/devise/unlocks/new.mobile.haml @@ -0,0 +1,9 @@ +%h2 Resend unlock instructions += form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| + = devise_error_messages! + %div + = f.label :email + %br/ + = f.email_field :email, :autofocus => true + %div= f.submit "Resend unlock instructions" += render "devise/shared/links" diff --git a/app/views/errors/error_403.html.erb b/app/views/errors/error_403.html.erb deleted file mode 100644 index 0a03b308..00000000 --- a/app/views/errors/error_403.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -

    Error 403

    -
    -

    FORBIDDEN

    -

    <%= flash[:alert]%>

    diff --git a/app/views/errors/error_403.html.haml b/app/views/errors/error_403.html.haml new file mode 100644 index 00000000..1cbfa89f --- /dev/null +++ b/app/views/errors/error_403.html.haml @@ -0,0 +1,4 @@ +%h1 Error 403 +%br/ +%h2 FORBIDDEN +%h4= flash[:alert] diff --git a/app/views/errors/error_403.mobile.erb b/app/views/errors/error_403.mobile.erb deleted file mode 100644 index 0a03b308..00000000 --- a/app/views/errors/error_403.mobile.erb +++ /dev/null @@ -1,4 +0,0 @@ -

    Error 403

    -
    -

    FORBIDDEN

    -

    <%= flash[:alert]%>

    diff --git a/app/views/errors/error_403.mobile.haml b/app/views/errors/error_403.mobile.haml new file mode 100644 index 00000000..1cbfa89f --- /dev/null +++ b/app/views/errors/error_403.mobile.haml @@ -0,0 +1,4 @@ +%h1 Error 403 +%br/ +%h2 FORBIDDEN +%h4= flash[:alert] diff --git a/app/views/errors/error_404.html.erb b/app/views/errors/error_404.html.erb deleted file mode 100644 index 9e89fdfa..00000000 --- a/app/views/errors/error_404.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -

    Errors 404

    -
    -

    Not Found

    diff --git a/app/views/errors/error_404.html.haml b/app/views/errors/error_404.html.haml new file mode 100644 index 00000000..2f983b2d --- /dev/null +++ b/app/views/errors/error_404.html.haml @@ -0,0 +1,3 @@ +%h1 Errors 404 +%br/ +%h2 Not Found diff --git a/app/views/errors/error_404.mobile.erb b/app/views/errors/error_404.mobile.erb deleted file mode 100644 index 9e89fdfa..00000000 --- a/app/views/errors/error_404.mobile.erb +++ /dev/null @@ -1,3 +0,0 @@ -

    Errors 404

    -
    -

    Not Found

    diff --git a/app/views/errors/error_404.mobile.haml b/app/views/errors/error_404.mobile.haml new file mode 100644 index 00000000..2f983b2d --- /dev/null +++ b/app/views/errors/error_404.mobile.haml @@ -0,0 +1,3 @@ +%h1 Errors 404 +%br/ +%h2 Not Found diff --git a/app/views/flash_messages/_flash_messages.html.haml b/app/views/flash_messages/_flash_messages.html.haml index ebac4272..6ee72a30 100644 --- a/app/views/flash_messages/_flash_messages.html.haml +++ b/app/views/flash_messages/_flash_messages.html.haml @@ -1,6 +1,6 @@ #flash_messages = render "flash_messages/paginate_top" - %table{:width => '80%'} + %table.table-striped.table-hover.table-condensed %thead %tr %th Time at diff --git a/app/views/flash_messages/_flash_messages.mobile.haml b/app/views/flash_messages/_flash_messages.mobile.haml index 82c97b79..fc351468 100644 --- a/app/views/flash_messages/_flash_messages.mobile.haml +++ b/app/views/flash_messages/_flash_messages.mobile.haml @@ -1,6 +1,6 @@ #flash_messages = render "flash_messages/paginate_top" - %table{:width => '80%'} + %table.table-striped.table-hover.table-condensed %thead %tr %th Time at diff --git a/app/views/flash_messages/_paginate_bottom.html.erb b/app/views/flash_messages/_paginate_bottom.html.erb deleted file mode 100644 index 77ea6d8b..00000000 --- a/app/views/flash_messages/_paginate_bottom.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    -
    - <%= page_entries_info @flash_messages%> -
    - <%= paginate @flash_messages, :remote => true %> -
    diff --git a/app/views/flash_messages/_paginate_bottom.html.haml b/app/views/flash_messages/_paginate_bottom.html.haml new file mode 100644 index 00000000..7cf79d59 --- /dev/null +++ b/app/views/flash_messages/_paginate_bottom.html.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + .page_info + = page_entries_info @flash_messages + = paginate @flash_messages, :remote => true diff --git a/app/views/flash_messages/_paginate_bottom.mobile.erb b/app/views/flash_messages/_paginate_bottom.mobile.erb deleted file mode 100644 index a564c2a6..00000000 --- a/app/views/flash_messages/_paginate_bottom.mobile.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    -
    - <%= page_entries_info @flash_messages %> -
    - <%= paginate @flash_messages%> -
    diff --git a/app/views/flash_messages/_paginate_bottom.mobile.haml b/app/views/flash_messages/_paginate_bottom.mobile.haml new file mode 100644 index 00000000..6fc24d8b --- /dev/null +++ b/app/views/flash_messages/_paginate_bottom.mobile.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + .page_info + = page_entries_info @flash_messages + = paginate @flash_messages diff --git a/app/views/flash_messages/_paginate_top.html.erb b/app/views/flash_messages/_paginate_top.html.erb deleted file mode 100644 index 7d2acd61..00000000 --- a/app/views/flash_messages/_paginate_top.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -
    - <%= paginate @flash_messages, :remote => true%> -
    - <%= page_entries_info @flash_messages %> -
    -
    - diff --git a/app/views/flash_messages/_paginate_top.html.haml b/app/views/flash_messages/_paginate_top.html.haml new file mode 100644 index 00000000..83ccefd3 --- /dev/null +++ b/app/views/flash_messages/_paginate_top.html.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + = paginate @flash_messages, :remote => true + .page_info + = page_entries_info @flash_messages diff --git a/app/views/flash_messages/_paginate_top.mobile.erb b/app/views/flash_messages/_paginate_top.mobile.erb deleted file mode 100644 index b3c4a8de..00000000 --- a/app/views/flash_messages/_paginate_top.mobile.erb +++ /dev/null @@ -1,6 +0,0 @@ -
    - <%= paginate @flash_messages%> -
    - <%= page_entries_info @flash_messages %> -
    -
    diff --git a/app/views/flash_messages/_paginate_top.mobile.haml b/app/views/flash_messages/_paginate_top.mobile.haml new file mode 100644 index 00000000..e490121d --- /dev/null +++ b/app/views/flash_messages/_paginate_top.mobile.haml @@ -0,0 +1,4 @@ +#apple_pagination.apple_pagination + = paginate @flash_messages + .page_info + = page_entries_info @flash_messages diff --git a/app/views/flash_messages/index.js.haml b/app/views/flash_messages/index.js.haml new file mode 100644 index 00000000..7fed3653 --- /dev/null +++ b/app/views/flash_messages/index.js.haml @@ -0,0 +1,2 @@ +$("#flash_messages").html("#{escape_javascript(render("flash_messages/flash_messages"))}"); +$('.pagination').html('#{escape_javascript(paginate(@flash_messages, :remote => true).to_s)}'); diff --git a/app/views/general/_usermenu.html.erb b/app/views/general/_usermenu.html.erb deleted file mode 100644 index ac64fcd6..00000000 --- a/app/views/general/_usermenu.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -
    - -
    - Меню - <% @usermenu.each do |href, value| %> -

    <%= value %><% end %>

    -
    \ No newline at end of file diff --git a/app/views/general/_usermenu.html.haml b/app/views/general/_usermenu.html.haml new file mode 100644 index 00000000..f134e9b8 --- /dev/null +++ b/app/views/general/_usermenu.html.haml @@ -0,0 +1,7 @@ +.col2 + / Column 1 start + %fieldset + %legend Меню + - @usermenu.each do |href, value| + %p + %a{:href => href}= value diff --git a/app/views/general/_usermenu.mobile.erb b/app/views/general/_usermenu.mobile.erb deleted file mode 100644 index ac64fcd6..00000000 --- a/app/views/general/_usermenu.mobile.erb +++ /dev/null @@ -1,7 +0,0 @@ -
    - -
    - Меню - <% @usermenu.each do |href, value| %> -

    <%= value %><% end %>

    -
    \ No newline at end of file diff --git a/app/views/general/_usermenu.mobile.haml b/app/views/general/_usermenu.mobile.haml new file mode 100644 index 00000000..f134e9b8 --- /dev/null +++ b/app/views/general/_usermenu.mobile.haml @@ -0,0 +1,7 @@ +.col2 + / Column 1 start + %fieldset + %legend Меню + - @usermenu.each do |href, value| + %p + %a{:href => href}= value diff --git a/app/views/general/air.html.erb b/app/views/general/air.html.erb deleted file mode 100644 index e6224e69..00000000 --- a/app/views/general/air.html.erb +++ /dev/null @@ -1,24 +0,0 @@ - - -<%= link_to "Airlines", "http://bagche.ru/aircompanies", class: "fancybox" %> - -<%= link_to "Funcy on page", "#hello", class: "fancybox" %> - - -
    -
    - Hello world! -
    -
    diff --git a/app/views/general/air.html.haml b/app/views/general/air.html.haml new file mode 100644 index 00000000..b12ad31e --- /dev/null +++ b/app/views/general/air.html.haml @@ -0,0 +1,17 @@ +:javascript + $(document).ready(function() { + $(".fancybox").fancybox(); + $(".fancybox").attr('rel', 'gallery').fancybox({ + openEffect : 'none', + closeEffect : 'none', + nextEffect : 'none', + prevEffect : 'none', + padding : 0, + margin : [20, 60, 20, 60] + }); + }); += link_to "Airlines", "http://bagche.ru/aircompanies", class: "fancybox" += link_to "Funcy on page", "#hello", class: "fancybox" +%div{:style => "display:none;"} + #hello + Hello world! diff --git a/app/views/general/air.mobile.erb b/app/views/general/air.mobile.erb deleted file mode 100644 index bb726257..00000000 --- a/app/views/general/air.mobile.erb +++ /dev/null @@ -1,17 +0,0 @@ -<% -#latitude = 54.63333333333333333333333333333333333333 -#longitude = 39.7 -#vc1 = SunRiseSet.now(latitude,longitude) -#vc2 = SunRiseSet.new(DateTime.now.in_time_zone('Etc/GMT__m__4'), latitude,longitude) -%> -<%= Time.zone.now%> -
    -<%= DateTime.now.in_time_zone%> -
    -<%#=vc1.to_s%>
    <%#=vc2.to_s%> -
    -<%#= SunRiseSet.new(DateTime.now.utc, latitude,longitude).sunrise.in_time_zone("Moscow")%> - diff --git a/app/views/general/air.mobile.haml b/app/views/general/air.mobile.haml new file mode 100644 index 00000000..468a7692 --- /dev/null +++ b/app/views/general/air.mobile.haml @@ -0,0 +1,13 @@ +- #latitude = 54.63333333333333333333333333333333333333 +- #longitude = 39.7 +- #vc1 = SunRiseSet.now(latitude,longitude) +- #vc2 = SunRiseSet.new(DateTime.now.in_time_zone('Etc/GMT__m__4'), latitude,longitude) += Time.zone.now +%br/ += DateTime.now.in_time_zone +%br/ +%br/ +%br/ +:javascript + var times = SunCalc.getTimes(new Date(), 54.6333333333333333333333333, 39.7); + alert("Время рассвета: " + times.sunrise.getHours() + ':' + times.sunrise.getMinutes()+"\n"+"Время заката: "+ times.sunset.getHours() + ':' + times.sunset.getMinutes()); diff --git a/app/views/general/chnglocale.html.erb b/app/views/general/chnglocale.html.erb deleted file mode 100644 index 29561830..00000000 --- a/app/views/general/chnglocale.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

    <%=link_to "Русский (Russian)", request.path_info+'?locale=ru'%>

    -

    <%=link_to "English (Английский)", request.path_info+'?locale=en'%>

    diff --git a/app/views/general/chnglocale.html.haml b/app/views/general/chnglocale.html.haml new file mode 100644 index 00000000..ee2e1438 --- /dev/null +++ b/app/views/general/chnglocale.html.haml @@ -0,0 +1,2 @@ +%p= link_to "Русский (Russian)", request.path_info+'?locale=ru' +%p= link_to "English (Английский)", request.path_info+'?locale=en' diff --git a/app/views/general/chnglocale.mobile.erb b/app/views/general/chnglocale.mobile.erb deleted file mode 100644 index 29561830..00000000 --- a/app/views/general/chnglocale.mobile.erb +++ /dev/null @@ -1,2 +0,0 @@ -

    <%=link_to "Русский (Russian)", request.path_info+'?locale=ru'%>

    -

    <%=link_to "English (Английский)", request.path_info+'?locale=en'%>

    diff --git a/app/views/general/chnglocale.mobile.haml b/app/views/general/chnglocale.mobile.haml new file mode 100644 index 00000000..ee2e1438 --- /dev/null +++ b/app/views/general/chnglocale.mobile.haml @@ -0,0 +1,2 @@ +%p= link_to "Русский (Russian)", request.path_info+'?locale=ru' +%p= link_to "English (Английский)", request.path_info+'?locale=en' diff --git a/app/views/general/help.html.erb b/app/views/general/help.html.erb deleted file mode 100644 index d4ce2f7b..00000000 --- a/app/views/general/help.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= Math::PI%> diff --git a/app/views/general/help.html.haml b/app/views/general/help.html.haml new file mode 100644 index 00000000..31171199 --- /dev/null +++ b/app/views/general/help.html.haml @@ -0,0 +1 @@ += Math::PI diff --git a/app/views/general/help.mobile.erb b/app/views/general/help.mobile.erb deleted file mode 100644 index 143161df..00000000 --- a/app/views/general/help.mobile.erb +++ /dev/null @@ -1,2 +0,0 @@ -

    General#help

    -

    Find me in app/views/general/help.html.erb

    diff --git a/app/views/general/help.mobile.haml b/app/views/general/help.mobile.haml new file mode 100644 index 00000000..0cbd06d9 --- /dev/null +++ b/app/views/general/help.mobile.haml @@ -0,0 +1,2 @@ +%h1 General#help +%p Find me in app/views/general/help.html.erb diff --git a/app/views/general/home.html.erb b/app/views/general/home.html.erb deleted file mode 100644 index 7a808903..00000000 --- a/app/views/general/home.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -

    General#Home

    -

    Find me in app/views/general/home.html.erb

    -<%= Math::PI%> -<%= Time.now%> diff --git a/app/views/general/home.html.haml b/app/views/general/home.html.haml new file mode 100644 index 00000000..039848b2 --- /dev/null +++ b/app/views/general/home.html.haml @@ -0,0 +1,4 @@ +%h1 General#Home +%p Find me in app/views/general/home.html.erb += Math::PI += Time.now diff --git a/app/views/general/home.mobile.erb b/app/views/general/home.mobile.erb deleted file mode 100644 index 7a808903..00000000 --- a/app/views/general/home.mobile.erb +++ /dev/null @@ -1,4 +0,0 @@ -

    General#Home

    -

    Find me in app/views/general/home.html.erb

    -<%= Math::PI%> -<%= Time.now%> diff --git a/app/views/general/home.mobile.haml b/app/views/general/home.mobile.haml new file mode 100644 index 00000000..039848b2 --- /dev/null +++ b/app/views/general/home.mobile.haml @@ -0,0 +1,4 @@ +%h1 General#Home +%p Find me in app/views/general/home.html.erb += Math::PI += Time.now diff --git a/app/views/general/rw.html.erb b/app/views/general/rw.html.erb deleted file mode 100644 index 3af41760..00000000 --- a/app/views/general/rw.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -

    General#rw

    -<%= request.fullpath%> -
    -<%= request.path_info.split('/').compact%> diff --git a/app/views/general/rw.html.haml b/app/views/general/rw.html.haml new file mode 100644 index 00000000..9d13fd8b --- /dev/null +++ b/app/views/general/rw.html.haml @@ -0,0 +1,4 @@ +%h1 General#rw += request.fullpath +%br/ += request.path_info.split('/').compact diff --git a/app/views/general/rw.mobile.erb b/app/views/general/rw.mobile.erb deleted file mode 100644 index 3af41760..00000000 --- a/app/views/general/rw.mobile.erb +++ /dev/null @@ -1,4 +0,0 @@ -

    General#rw

    -<%= request.fullpath%> -
    -<%= request.path_info.split('/').compact%> diff --git a/app/views/general/rw.mobile.haml b/app/views/general/rw.mobile.haml new file mode 100644 index 00000000..9d13fd8b --- /dev/null +++ b/app/views/general/rw.mobile.haml @@ -0,0 +1,4 @@ +%h1 General#rw += request.fullpath +%br/ += request.path_info.split('/').compact diff --git a/app/views/general/timecor.html.erb b/app/views/general/timecor.html.erb deleted file mode 100644 index 0975f4a1..00000000 --- a/app/views/general/timecor.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -OK -
    -<%# @als.each do |x| %> -<%#= x.Flight_Number%>|| -<%#= x.neew%>
    -<%#end%> diff --git a/app/views/general/timecor.html.haml b/app/views/general/timecor.html.haml new file mode 100644 index 00000000..62f11377 --- /dev/null +++ b/app/views/general/timecor.html.haml @@ -0,0 +1,4 @@ +OK +%hr/ +|| +%hr/ diff --git a/app/views/general/timecor.mobile.erb b/app/views/general/timecor.mobile.erb deleted file mode 100644 index 79d463ba..00000000 --- a/app/views/general/timecor.mobile.erb +++ /dev/null @@ -1,2 +0,0 @@ -OK! ----- diff --git a/app/views/general/timecor.mobile.haml b/app/views/general/timecor.mobile.haml new file mode 100644 index 00000000..fa75a689 --- /dev/null +++ b/app/views/general/timecor.mobile.haml @@ -0,0 +1,2 @@ +OK! +\---- diff --git a/app/views/general/timenow.html.erb b/app/views/general/timenow.html.erb deleted file mode 100644 index 29121929..00000000 --- a/app/views/general/timenow.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= @timeNOW.strftime "%H:%M:%S" %> diff --git a/app/views/general/timenow.html.haml b/app/views/general/timenow.html.haml new file mode 100644 index 00000000..5867886c --- /dev/null +++ b/app/views/general/timenow.html.haml @@ -0,0 +1 @@ += @timeNOW.strftime "%H:%M:%S" diff --git a/app/views/general/timenow.mobile.erb b/app/views/general/timenow.mobile.erb deleted file mode 100644 index 29121929..00000000 --- a/app/views/general/timenow.mobile.erb +++ /dev/null @@ -1 +0,0 @@ -<%= @timeNOW.strftime "%H:%M:%S" %> diff --git a/app/views/general/timenow.mobile.haml b/app/views/general/timenow.mobile.haml new file mode 100644 index 00000000..5867886c --- /dev/null +++ b/app/views/general/timenow.mobile.haml @@ -0,0 +1 @@ += @timeNOW.strftime "%H:%M:%S" diff --git a/app/views/kaminari/_first_page.html.haml b/app/views/kaminari/_first_page.html.haml index e38219cf..a1bbf186 100644 --- a/app/views/kaminari/_first_page.html.haml +++ b/app/views/kaminari/_first_page.html.haml @@ -1,9 +1,2 @@ --# Link to the "First" page --# available local variables --# url: url to the first page --# current_page: a page object for the currently displayed page --# total_pages: total number of pages --# per_page: number of items to fetch per page --# remote: data-remote -%span.first - = link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, :remote => remote +%li + = link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote diff --git a/app/views/kaminari/_gap.html.haml b/app/views/kaminari/_gap.html.haml index dd5789cc..606bd833 100644 --- a/app/views/kaminari/_gap.html.haml +++ b/app/views/kaminari/_gap.html.haml @@ -1,8 +1,2 @@ --# Non-link tag that stands for skipped pages... --# available local variables --# current_page: a page object for the currently displayed page --# total_pages: total number of pages --# per_page: number of items to fetch per page --# remote: data-remote -%span.page.gap - = t('views.pagination.truncate').html_safe +%li.disabled + = content_tag :a, raw(t 'views.pagination.truncate') diff --git a/app/views/kaminari/_last_page.html.haml b/app/views/kaminari/_last_page.html.haml index cdddb9e7..e70697d0 100644 --- a/app/views/kaminari/_last_page.html.haml +++ b/app/views/kaminari/_last_page.html.haml @@ -1,9 +1,2 @@ --# Link to the "Last" page --# available local variables --# url: url to the last page --# current_page: a page object for the currently displayed page --# total_pages: total number of pages --# per_page: number of items to fetch per page --# remote: data-remote -%span.last - = link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, :remote => remote +%li + = link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} diff --git a/app/views/kaminari/_next_page.html.haml b/app/views/kaminari/_next_page.html.haml index da5d856b..ea9af453 100644 --- a/app/views/kaminari/_next_page.html.haml +++ b/app/views/kaminari/_next_page.html.haml @@ -1,9 +1,2 @@ --# Link to the "Next" page --# available local variables --# url: url to the next page --# current_page: a page object for the currently displayed page --# total_pages: total number of pages --# per_page: number of items to fetch per page --# remote: data-remote -%span.next - = link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, :rel => 'next', :remote => remote, data: { keybinding: 'ctrl+right' } +%li + = link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote diff --git a/app/views/kaminari/_page.html.haml b/app/views/kaminari/_page.html.haml index a96207c2..b3a4ae2e 100644 --- a/app/views/kaminari/_page.html.haml +++ b/app/views/kaminari/_page.html.haml @@ -1,10 +1,6 @@ --# Link showing page number --# available local variables --# page: a page object for "this" page --# url: url to this page --# current_page: a page object for the currently displayed page --# total_pages: total number of pages --# per_page: number of items to fetch per page --# remote: data-remote -%span{:class => "page#{' current' if page.current?}"} - = link_to_unless page.current?, page, url, {:remote => remote, :id => "pages", :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} +- if page.current? + %li.active + = content_tag :a, page, remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil)) +- else + %li + = link_to page, url, remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil)) diff --git a/app/views/kaminari/_paginator.html.haml b/app/views/kaminari/_paginator.html.haml index 4f33e2de..07fdb1e0 100644 --- a/app/views/kaminari/_paginator.html.haml +++ b/app/views/kaminari/_paginator.html.haml @@ -1,12 +1,5 @@ --# The container tag --# available local variables --# current_page: a page object for the currently displayed page --# total_pages: total number of pages --# per_page: number of items to fetch per page --# remote: data-remote --# paginator: the paginator that renders the pagination tags inside = paginator.render do - %nav.pagination + %ul.pagination = first_page_tag unless current_page.first? = prev_page_tag unless current_page.first? - each_page do |page| diff --git a/app/views/kaminari/_prev_page.html.haml b/app/views/kaminari/_prev_page.html.haml index 1e118411..dab3b318 100644 --- a/app/views/kaminari/_prev_page.html.haml +++ b/app/views/kaminari/_prev_page.html.haml @@ -1,9 +1,2 @@ --# Link to the "Previous" page --# available local variables --# url: url to the previous page --# current_page: a page object for the currently displayed page --# total_pages: total number of pages --# per_page: number of items to fetch per page --# remote: data-remote -%span.prev - = link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, :rel => 'prev', :remote => remote, data: { keybinding: 'ctrl+left' } +%li + = link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote diff --git a/app/views/layouts/_clear.html.erb b/app/views/layouts/_clear.html.erb deleted file mode 100644 index 0ddccfc9..00000000 --- a/app/views/layouts/_clear.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -
    -
    -

    Служебная информация на сегодня.

    -
    -
    diff --git a/app/views/layouts/_clear.mobile.erb b/app/views/layouts/_clear.mobile.erb deleted file mode 100644 index 0ddccfc9..00000000 --- a/app/views/layouts/_clear.mobile.erb +++ /dev/null @@ -1,5 +0,0 @@ -
    -
    -

    Служебная информация на сегодня.

    -
    -
    diff --git a/app/views/layouts/_container.html.erb b/app/views/layouts/_container.html.erb deleted file mode 100644 index 3dcd0567..00000000 --- a/app/views/layouts/_container.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -
    -
    -

    <%= flash[:alert]%>

    -

    <%= flash[:notice]%>

    - <%= yield %> -
    -
    diff --git a/app/views/layouts/_container.mobile.erb b/app/views/layouts/_container.mobile.erb deleted file mode 100644 index ae3fc9e4..00000000 --- a/app/views/layouts/_container.mobile.erb +++ /dev/null @@ -1,8 +0,0 @@ -
    -
    -

    <%= flash[:alert]%>

    -

    <%= flash[:notice]%>

    - <%= yield %> -
    -
    - diff --git a/app/views/layouts/_flash.html.erb b/app/views/layouts/_flash.html.erb deleted file mode 100644 index 3e324e48..00000000 --- a/app/views/layouts/_flash.html.erb +++ /dev/null @@ -1,4 +0,0 @@ - - diff --git a/app/views/layouts/_flash.html.haml b/app/views/layouts/_flash.html.haml deleted file mode 100644 index b8b64848..00000000 --- a/app/views/layouts/_flash.html.haml +++ /dev/null @@ -1,4 +0,0 @@ -#flash - - flash.each do |message| - %button.close{"data-dismiss" => "alert", "aria-hidden" => "true"} ? - %p= message diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb deleted file mode 100644 index bb5fc408..00000000 --- a/app/views/layouts/_footer.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -
    -

    This a Desktop Version

    -

    <%#= link_to "Mobile Version", session[:mobile_view]%>

    -

    Страница загружена за <%= Benchmark.ms { yield } %> сек

    -

    © 2011 - <%= Date.current.year%>

    -

    Единый Информационный Центр v2.6.1 release from 15-07-2015

    -

    Напишите нам!!!

    -
    diff --git a/app/views/layouts/_footer.html.haml b/app/views/layouts/_footer.html.haml new file mode 100644 index 00000000..68492eb9 --- /dev/null +++ b/app/views/layouts/_footer.html.haml @@ -0,0 +1,15 @@ +.raw + .col-lg-4.col-md-4 + %li This a Desktop Version + %li Страница загружена за #{Benchmark.ms { yield }} сек + .col-lg-4.col-md-4 + %li © 2011 - #{Date.current.year} + %li v3.0.0 release from 07-11-2015 + .col-lg-4.col-md-4 + %li Телефон 1 + %li Телефон 2 +.raw + .col-lg-12.col-md-12 + %li + %a{:href => "mailto:glafir@bk.ru"} Напишите нам!!! + diff --git a/app/views/layouts/_footer.mobile.erb b/app/views/layouts/_footer.mobile.erb deleted file mode 100644 index e9f69659..00000000 --- a/app/views/layouts/_footer.mobile.erb +++ /dev/null @@ -1,8 +0,0 @@ -
    -

    This a Mobile Version

    -

    <%#= link_to "Desktop Version", , session[:html_view] => false%>

    -

    Страница загружена за <%= Benchmark.ms { yield } %> сек

    -

    © 2011 - <%= Date.current.year%>

    -

    Единый Информационный Центр
    v2.6.1 release from 15-07-2015

    -

    Напишите нам!!!

    -
    diff --git a/app/views/layouts/_footer.mobile.haml b/app/views/layouts/_footer.mobile.haml new file mode 100644 index 00000000..3be46342 --- /dev/null +++ b/app/views/layouts/_footer.mobile.haml @@ -0,0 +1,12 @@ +.raw + .col-lg-5.col-md-5 + %li This a Mobile Version + %li Страница загружена за #{Benchmark.ms { yield }} сек + .col-lg-5.col-md-5 + %li © 2011 - #{Date.current.year} + %li v3.0.0 release from 07-11-2015 +.raw + .col-lg-12.col-md-12 + %li + %a{:href => "mailto:glafir@bk.ru"} Напишите нам!!! + diff --git a/app/views/layouts/_foruserinfo.html.erb b/app/views/layouts/_foruserinfo.html.erb deleted file mode 100755 index c60cac56..00000000 --- a/app/views/layouts/_foruserinfo.html.erb +++ /dev/null @@ -1,56 +0,0 @@ - -
    - <%=render "layouts/usermenu"%> -

    Сегодня:

    -
    Ваше время:

    -

    Дата: <%= Time.zone.now.stamp("1 january 2000") %>

    -

    День недели: <%= Time.zone.now.to_s(:short) %>

    -
    -

    Астрономические данные (Настройки профиля)

    -
    -

    Восзод солнца:
    - <%= sr = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).sunrise.to_s(:time)%>

    -

    Восход, земные сумерки:
    - <%= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).civilTwilightStart.to_s(:time)%>

    -

    Восход, астро. сумерки:
    - <%#= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).astroTwilightStart.to_s(:time)%>

    -

    Закат Солнца:
    - <%= ss = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).sunset.to_s(:time)%>

    -

    Закат, земные сумерки:
    - <%= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).civilTwilightEnd.to_s(:time)%>

    -

    Закат, астро. сумерки:
    - <%#= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).astroTwilightEnd.to_s(:time)%>

    -

    Солнечный полдень:
    - <%= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).solNoon.to_s(:time)%>

    -

    Долгота дня:
    - <%= Time.diff(Time.parse(sr), Time.parse(ss), '%H %N')[:diff]%>

    -
    -
    - diff --git a/app/views/layouts/_foruserinfo.html.haml b/app/views/layouts/_foruserinfo.html.haml new file mode 100644 index 00000000..b6420148 --- /dev/null +++ b/app/views/layouts/_foruserinfo.html.haml @@ -0,0 +1,70 @@ +:javascript + jQuery(document).ready(function(){ + // setInterval("jQuery('#timeA').load('# span#timeB');",1000); + $("#accordion").accordion({ + autoHeight: true, + // active: 0, + collapsible: true, + animate: 1000, + icons: { "header": "ui-icon-circle-plus", "activeHeader": "ui-icon-circle-arrow-s" } + }); + }); + // function show() + // { + // $.ajax({ + // url: "/general/timenow", + // cache: false, + // success: function(html){ + // $("#dtime").html(html); + // } + // }); + // } + + // $(document).ready(function(){ + // show(); + // setInterval('show()',1000); + // }); +#accordion + = render "layouts/usermenu" + %h3 Сегодня: + %fieldset + %span#timeA + %span#timeB + Ваше время: + %p#dtime + %p + Дата: #{Time.zone.now.stamp("1 january 2000")} + %p + День недели: #{Time.zone.now.to_s(:short)} + %h3 Астрономические данные (Настройки профиля) + %fieldset + %p + Восзод солнца: + %br/ + = sr = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).sunrise.to_s(:time) + %p + Восход, земные сумерки: + %br/ + = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).civilTwilightStart.to_s(:time) + %p + Восход, астро. сумерки: + %br/ + %p + Закат Солнца: + %br/ + = ss = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).sunset.to_s(:time) + %p + Закат, земные сумерки: + %br/ + = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).civilTwilightEnd.to_s(:time) + %p + Закат, астро. сумерки: + %br/ + %p + Солнечный полдень: + %br/ + = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).solNoon.to_s(:time) + %p + Долгота дня: + %br/ + = Time.diff(Time.parse(sr), Time.parse(ss), '%H %N')[:diff] diff --git a/app/views/layouts/_foruserinfo.mobile.erb b/app/views/layouts/_foruserinfo.mobile.erb deleted file mode 100755 index 29700f5e..00000000 --- a/app/views/layouts/_foruserinfo.mobile.erb +++ /dev/null @@ -1,56 +0,0 @@ - -
    - <%=render "layouts/usermenu.mobile"%> -

    Сегодня:

    -
    Ваше время:

    -

    Дата: <%= Time.zone.now.stamp("1 january 2000") %>

    -

    День недели: <%= Time.zone.now.to_s(:short) %>

    -
    -

    Астрономические данные (Настройки профиля)

    -
    -

    Восзод солнца:
    - <%= sr = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).sunrise.to_s(:time)%>

    -

    Восход, земные сумерки:
    - <%= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).civilTwilightStart.to_s(:time)%>

    -

    Восход, астро. сумерки:
    - <%#= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).astroTwilightStart.to_s(:time)%>

    -

    Закат Солнца:
    - <%= ss = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).sunset.to_s(:time)%>

    -

    Закат, земные сумерки:
    - <%= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).civilTwilightEnd.to_s(:time)%>

    -

    Закат, астро. сумерки:
    - <%#= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).astroTwilightEnd.to_s(:time)%>

    -

    Солнечный полдень:
    - <%= SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).solNoon.to_s(:time)%>

    -

    Долгота дня:
    - <%= Time.diff(Time.parse(sr), Time.parse(ss), '%H %N')[:diff]%>

    -
    -
    - diff --git a/app/views/layouts/_foruserinfo.mobile.haml b/app/views/layouts/_foruserinfo.mobile.haml new file mode 100644 index 00000000..37d7d648 --- /dev/null +++ b/app/views/layouts/_foruserinfo.mobile.haml @@ -0,0 +1,70 @@ +:javascript + jQuery(document).ready(function(){ + // setInterval("jQuery('#timeA').load('# span#timeB');",1000); + $("#accordion").accordion({ + autoHeight: true, + // active: 0, + collapsible: true, + animate: 1000, + icons: { "header": "ui-icon-circle-plus", "activeHeader": "ui-icon-circle-arrow-s" } + }); + }); + function show() + { + $.ajax({ + url: "/general/timenow", + cache: false, + success: function(html){ + $("#dtime").html(html); + } + }); + } + + // $(document).ready(function(){ + // show(); + // setInterval('show()',1000); + // }); +#accordion + = render "layouts/usermenu.mobile" + %h3 Сегодня: + %fieldset + %span#timeA + %span#timeB + Ваше время: + %p#dtime + %p + Дата: #{Time.zone.now.stamp("1 january 2000")} + %p + День недели: #{Time.zone.now.to_s(:short)} + %h3 Астрономические данные (Настройки профиля) + %fieldset + %p + Восзод солнца: + %br/ + = sr = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).sunrise.to_s(:time) + %p + Восход, земные сумерки: + %br/ + = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).civilTwilightStart.to_s(:time) + %p + Восход, астро. сумерки: + %br/ + %p + Закат Солнца: + %br/ + = ss = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).sunset.to_s(:time) + %p + Закат, земные сумерки: + %br/ + = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).civilTwilightEnd.to_s(:time) + %p + Закат, астро. сумерки: + %br/ + %p + Солнечный полдень: + %br/ + = SunRiseSet.new(DateTime.current, current_user.town.latitude,current_user.town.longitude).solNoon.to_s(:time) + %p + Долгота дня: + %br/ + = Time.diff(Time.parse(sr), Time.parse(ss), '%H %N')[:diff] diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb deleted file mode 100644 index 24ceea1f..00000000 --- a/app/views/layouts/_head.html.erb +++ /dev/null @@ -1,20 +0,0 @@ - <%= title %> - - - <% if user_signed_in? %> - <%= stylesheet_link_tag "desktop/style/application", :media => "all" %> - <%= stylesheet_link_tag "jquery-ui/#{current_user.user_theme.theme}", :media => "all" %> - <%= stylesheet_link_tag "desktop/color/#{current_user.user_theme.theme}/styles", :media => "all" %> - <%= stylesheet_link_tag "desktop/color/#{current_user.user_theme.theme}/paginate_page", :media => "all" %> - <%= stylesheet_link_tag "desktop/color/#{current_user.user_theme.theme}/login", :media => "all" %> - <%else%> - <%= stylesheet_link_tag "untheme/application", :media => "all" %> - <%end%> - <%= javascript_include_tag "desktop/application" %> - - <%= csrf_meta_tags %> diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml new file mode 100644 index 00000000..27322392 --- /dev/null +++ b/app/views/layouts/_head.html.haml @@ -0,0 +1,14 @@ +%head + %meta(charset="utf-8") + %meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1") + %meta(name="viewport" content="width=device-width, initial-scale=1") + %meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no") + %title= content_for?(:title) ? yield(:title) : "IcApp" + = csrf_meta_tags + / Le HTML5 shim, for IE6-8 support of HTML elements + /[if lt IE 9] + = javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" + = stylesheet_link_tag "desktop/application", :media => "all" + = favicon_link_tag 'favicon.ico', :rel => 'shortcut icon' + = javascript_include_tag "desktop/application" + diff --git a/app/views/layouts/_head.mobile.erb b/app/views/layouts/_head.mobile.erb deleted file mode 100644 index 46a30046..00000000 --- a/app/views/layouts/_head.mobile.erb +++ /dev/null @@ -1,7 +0,0 @@ - <%= title %> - - - <%= stylesheet_link_tag "mobile/application", :media => "all" %> - <%= javascript_include_tag "mobile/application" %> - - <%= csrf_meta_tags %> diff --git a/app/views/layouts/_head.mobile.haml b/app/views/layouts/_head.mobile.haml new file mode 100644 index 00000000..a60d588f --- /dev/null +++ b/app/views/layouts/_head.mobile.haml @@ -0,0 +1,10 @@ +%head + %meta(charset="utf-8") + %meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1") + %meta(name="viewport" content="width=device-width, initial-scale=1") + %title= content_for?(:title) ? yield(:title) : "IcApp" + = csrf_meta_tags + = stylesheet_link_tag "mobile/application", :media => "all" + = favicon_link_tag 'favicon.ico', :rel => 'shortcut icon' + = javascript_include_tag "mobile/application" + diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb deleted file mode 100644 index 67fddf46..00000000 --- a/app/views/layouts/_header.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -
    - <%=render "layouts/wclock"%> - <%=render "layouts/menu_top"%> -
    diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml new file mode 100644 index 00000000..02c9a22e --- /dev/null +++ b/app/views/layouts/_header.html.haml @@ -0,0 +1,2 @@ +%header + = render "layouts/menu_top" diff --git a/app/views/layouts/_header.mobile.erb b/app/views/layouts/_header.mobile.erb deleted file mode 100644 index d75f4d16..00000000 --- a/app/views/layouts/_header.mobile.erb +++ /dev/null @@ -1,3 +0,0 @@ -
    - <%=render "layouts/menu_top.mobile"%> -
    diff --git a/app/views/layouts/_header.mobile.haml b/app/views/layouts/_header.mobile.haml new file mode 100644 index 00000000..f0c7d85f --- /dev/null +++ b/app/views/layouts/_header.mobile.haml @@ -0,0 +1,2 @@ +%header + = render "layouts/menu_top_secure" diff --git a/app/views/layouts/_left.html.erb b/app/views/layouts/_left.html.erb deleted file mode 100644 index f778dc8c..00000000 --- a/app/views/layouts/_left.html.erb +++ /dev/null @@ -1,4 +0,0 @@ - - diff --git a/app/views/layouts/_left.mobile.erb b/app/views/layouts/_left.mobile.erb deleted file mode 100644 index 7c5f348b..00000000 --- a/app/views/layouts/_left.mobile.erb +++ /dev/null @@ -1,4 +0,0 @@ -