kilt-cms 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.rdoc +28 -0
- data/Rakefile +7 -0
- data/app/assets/images/kilt/animated-overlay.gif +0 -0
- data/app/assets/images/kilt/ui-bg_flat_0_000_40x100.png +0 -0
- data/app/assets/images/kilt/ui-bg_flat_0_fff_40x100.png +0 -0
- data/app/assets/images/kilt/ui-bg_flat_100_fff_40x100.png +0 -0
- data/app/assets/images/kilt/ui-bg_flat_100_ffffff_40x100.png +0 -0
- data/app/assets/images/kilt/ui-bg_glass_100_fff_1x400.png +0 -0
- data/app/assets/images/kilt/ui-bg_glass_100_ffffff_1x400.png +0 -0
- data/app/assets/images/kilt/ui-bg_highlight-soft_100_fff_1x100.png +0 -0
- data/app/assets/images/kilt/ui-icons_404040_256x240.png +0 -0
- data/app/assets/images/kilt/ui-icons_e74c3c_256x240.png +0 -0
- data/app/assets/javascripts/kilt/application.js +17 -0
- data/app/assets/javascripts/kilt/kilt.js +39 -0
- data/app/assets/stylesheets/kilt/application.scss +1 -0
- data/app/assets/stylesheets/kilt/config.rb +10 -0
- data/app/assets/stylesheets/kilt/sass/_base.scss +25 -0
- data/app/assets/stylesheets/kilt/sass/_buttons.scss +58 -0
- data/app/assets/stylesheets/kilt/sass/_form.scss +73 -0
- data/app/assets/stylesheets/kilt/sass/_layout.scss +85 -0
- data/app/assets/stylesheets/kilt/sass/_mixins.scss +6 -0
- data/app/assets/stylesheets/kilt/sass/_tables.scss +65 -0
- data/app/assets/stylesheets/kilt/sass/_typography.scss +79 -0
- data/app/assets/stylesheets/kilt/sass/modules/_codemirror.scss +262 -0
- data/app/assets/stylesheets/kilt/sass/modules/_jquery_ui.scss +659 -0
- data/app/assets/stylesheets/kilt/sass/screen.scss +1 -0
- data/app/assets/stylesheets/kilt/stylesheets/modules/codemirror.css +1 -0
- data/app/assets/stylesheets/kilt/stylesheets/modules/jquery-ui.css +5 -0
- data/app/assets/stylesheets/kilt/stylesheets/print.css +0 -0
- data/app/assets/stylesheets/kilt/stylesheets/screen.css +5 -0
- data/app/controllers/kilt/kilt_controller.rb +122 -0
- data/app/views/kilt/form/_default.html.erb +4 -0
- data/app/views/kilt/form/boolean.html.erb +4 -0
- data/app/views/kilt/form/datetime.html.erb +4 -0
- data/app/views/kilt/form/file.html.erb +59 -0
- data/app/views/kilt/form/html.html.erb +4 -0
- data/app/views/kilt/form/image.html.erb +72 -0
- data/app/views/kilt/form/longtext.html.erb +4 -0
- data/app/views/kilt/form/number.html.erb +23 -0
- data/app/views/kilt/form/text.html.erb +4 -0
- data/app/views/kilt/form/vimeo.html.erb +100 -0
- data/app/views/kilt/form/youtube.html.erb +98 -0
- data/app/views/kilt/kilt/_form.html.erb +30 -0
- data/app/views/kilt/kilt/edit.html.erb +2 -0
- data/app/views/kilt/kilt/index.html.erb +9 -0
- data/app/views/kilt/kilt/list.html.erb +67 -0
- data/app/views/kilt/kilt/new.html.erb +2 -0
- data/app/views/layouts/kilt/cms.html.erb +41 -0
- data/config/routes.rb +13 -0
- data/lib/generators/kilt/backend_generator.rb +19 -0
- data/lib/generators/kilt/frontend_generator.rb +33 -0
- data/lib/generators/kilt/install_generator.rb +13 -0
- data/lib/generators/kilt/object_generator.rb +23 -0
- data/lib/generators/kilt/templates/backend/config.yml.erb +16 -0
- data/lib/generators/kilt/templates/backend/creds.yml.example +8 -0
- data/lib/generators/kilt/templates/backend/kilt.rb +11 -0
- data/lib/generators/kilt/templates/frontend/application.html.erb +24 -0
- data/lib/generators/kilt/templates/frontend/assets/images/sprite/empty +0 -0
- data/lib/generators/kilt/templates/frontend/assets/images/sprite/retina/empty +0 -0
- data/lib/generators/kilt/templates/frontend/assets/javascripts/application.js +14 -0
- data/lib/generators/kilt/templates/frontend/assets/javascripts/html5shiv.js +2 -0
- data/lib/generators/kilt/templates/frontend/assets/javascripts/mediaqueries.js +1 -0
- data/lib/generators/kilt/templates/frontend/assets/stylesheets/config.rb +24 -0
- data/lib/generators/kilt/templates/frontend/assets/stylesheets/sass/modules/_mixins.scss +81 -0
- data/lib/generators/kilt/templates/frontend/assets/stylesheets/sass/modules/_reset_custom.scss +31 -0
- data/lib/generators/kilt/templates/frontend/assets/stylesheets/sass/modules/_typography.scss +35 -0
- data/lib/generators/kilt/templates/frontend/assets/stylesheets/sass/screen.scss +13 -0
- data/lib/generators/kilt/templates/frontend/assets/stylesheets/sass/views/_layout.scss +7 -0
- data/lib/generators/kilt/templates/frontend/assets/stylesheets/stylesheets/screen.css +160 -0
- data/lib/generators/kilt/templates/frontend/dummy.js.erb +11 -0
- data/lib/generators/kilt/templates/frontend/home_controller.rb.erb +4 -0
- data/lib/generators/kilt/templates/frontend/index.html.erb +5 -0
- data/lib/kilt/base.rb +12 -0
- data/lib/kilt/engine.rb +17 -0
- data/lib/kilt/exceptions.rb +10 -0
- data/lib/kilt/form.rb +28 -0
- data/lib/kilt/object.rb +66 -0
- data/lib/kilt/object_collection.rb +52 -0
- data/lib/kilt/upload.rb +54 -0
- data/lib/kilt/utils.rb +166 -0
- data/lib/kilt.rb +125 -0
- data/lib/tasks/kilt_tasks.rake +6 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/sprite/empty +0 -0
- data/test/dummy/app/assets/images/sprite/retina/empty +0 -0
- data/test/dummy/app/assets/javascripts/application.js +14 -0
- data/test/dummy/app/assets/javascripts/dummy.js +11 -0
- data/test/dummy/app/assets/javascripts/html5shiv.js +2 -0
- data/test/dummy/app/assets/javascripts/mediaqueries.js +1 -0
- data/test/dummy/app/assets/stylesheets/config.rb +24 -0
- data/test/dummy/app/assets/stylesheets/sass/modules/_mixins.scss +81 -0
- data/test/dummy/app/assets/stylesheets/sass/modules/_reset_custom.scss +31 -0
- data/test/dummy/app/assets/stylesheets/sass/modules/_typography.scss +35 -0
- data/test/dummy/app/assets/stylesheets/sass/screen.scss +13 -0
- data/test/dummy/app/assets/stylesheets/sass/views/_layout.scss +7 -0
- data/test/dummy/app/assets/stylesheets/stylesheets/screen.css +160 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/dummy_controller.rb +4 -0
- data/test/dummy/app/views/dummy/index.html.erb +5 -0
- data/test/dummy/app/views/layouts/application.html.erb +24 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +27 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +23 -0
- data/test/dummy/config/environments/test.rb +23 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/kilt.rb +14 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/kilt/config.yml +40 -0
- data/test/dummy/config/kilt/creds.yml +8 -0
- data/test/dummy/config/routes.rb +7 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/log/development.log +68163 -0
- data/test/dummy/log/test.log +36 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/uploads/file/Gemfile +3 -0
- data/test/dummy/public/uploads/file/Gemfile.lock +139 -0
- data/test/dummy/public/uploads/file/README.rdoc +28 -0
- data/test/dummy/public/uploads/file/Rakefile +6 -0
- data/test/dummy/public/uploads/file/barcelona.jpg +0 -0
- data/test/dummy/public/uploads/file/dodgerstadiumpix.jpg +0 -0
- data/test/dummy/public/uploads/file/field.jpg +0 -0
- data/test/dummy/public/uploads/file/fob-elton-john-08.jpg +0 -0
- data/test/dummy/public/uploads/file/kilt.gemspec +32 -0
- data/test/dummy/public/uploads/file/kilt.rb +100 -0
- data/test/dummy/public/uploads/image/2960116125_1158ba3c59_o.jpg +0 -0
- data/test/dummy/public/uploads/image/JT.jpg +0 -0
- data/test/dummy/public/uploads/image/barcelona.jpg +0 -0
- data/test/dummy/public/uploads/image/dodgerstadiumpix.jpg +0 -0
- data/test/dummy/public/uploads/image/field.jpg +0 -0
- data/test/dummy/spec/kilt_spec.rb +31 -0
- data/test/dummy/spec/spec_helper.rb +12 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/03cdc43618f8bef3dfc725a1886c40ed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d8e5c7178ebdb79e5b9cc4ef439eae8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13a3d23d13c1459a86283c4fe577a775 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/18837248cb3274df9b7c6b0a5dcd56a5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1c198a7e1d4ae808a6adf4c4809061eb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2e57def2c82ce30227eefea2360d5f50 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/36f9a7f6f43adb582ac6eec43b58eb30 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/36fff19076c588427464432f563a8d2d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3878e0f19bbd21176b1bcc46160a3df3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3cee919b5b764629fbb01de361ad1b99 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3d69f4783ceef2f5455635de03e6c62a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3d8ca1585ee95c5efb388645d66cf377 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3e0acde4cdc501f590a21ede6fac0b97 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/413be9c73d25c7febe933f4619da7cf8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4b5c4a1edd3823a6a6c39e06b6eb230a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4c5736bf0bd429296d1a32930364897e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/542fc810f9cd36e7bed9a3e5e9670995 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/56f1e7d57d31bf3315e1e33732d57faa +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5bea4c2d87ec725262213ed51575b485 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5eb5178b706a9b8bd0362b7ed487339a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5fa6492da1cba5232b9e9799b5e2bf8f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5fe3d26a30497da82978c9f7ee53068b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/66f697b8e4167ad9ebefbd8b5fc65b23 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6b6e86e81f5e8f80bb2b3d1e8f7ed7f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6caab0d3b759107ab41492546763aaf0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6d83c6efd2bf1080ba1dead9fcfdd0db +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/70d4b3b9e59d0e01e90eebf94dbc2c47 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8127282074e6ffd457b72c228a69f0c0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8ffacb4ba6e6ca3da12ac1100f664b30 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9dd98bca318fb820a8451cafce020588 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b259805c84c81064f20700498328f109 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7e1f059a53a1e79df01a336fb1f50f0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c0671678b70011547b80da0669d031cc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c1006115f345f87cc152b851154e9e34 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cf0d5ad037fbf541c6b982abf73b9938 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/da31523b2e8cf32dd8db9f304d5b7395 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dc676330961fd22be77c48cb77ec065f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ddc29f2c13cd99d017fd526b61dcb951 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/de45247cb814cafe20e9e46c79e470fe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e22d705d0c889ec4837f183a9beec0f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e7ba95a61b1b9381906a88610dceb6dd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ef7c8ce46dfc9e9087ce84dbdfdd0011 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f3e1a8ba304f70dccefd77356c900ebc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/data/meta_request/2ff92b3b-2e2c-438e-a687-d2900c8722e3.json +1 -0
- data/test/dummy/tmp/data/meta_request/4a2f197b-3f28-4ade-962e-0337d56878b1.json +1 -0
- data/test/dummy/tmp/data/meta_request/7eb04de5-6edf-4ea2-a4cf-994e6173b529.json +1 -0
- data/test/dummy/tmp/data/meta_request/96ec6abc-1da4-45e1-a397-79e849741501.json +1 -0
- data/test/dummy/tmp/data/meta_request/a9566f73-bde1-4346-b254-011381243ddc.json +1 -0
- data/test/dummy/tmp/data/meta_request/a9eb2875-930e-49ed-ab2f-40aba11bb132.json +1 -0
- data/test/dummy/tmp/data/meta_request/bcd27bed-9cac-4c32-8030-2699415e91a1.json +1 -0
- data/test/dummy/tmp/data/meta_request/e6152727-3e54-4858-ad8f-6e57e247a8a5.json +1 -0
- data/test/dummy/tmp/data/meta_request/e7db6149-e316-4ad1-a3a8-c014d0e7092b.json +1 -0
- data/test/dummy/tmp/data/meta_request/fc793f84-b287-4459-b902-705b1d2b1141.json +1 -0
- metadata +536 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 576d24fbd6d6a1ba056e4bf0d03688040abb80bd
|
4
|
+
data.tar.gz: 422433315017b8d22159f37a8ed16db0d0d0eb55
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2dd4825164010170fe9cbd64b2a59972afaed117d4593d18c3ed447ce8bd52cdf49088a0916d42142930f6782858a59cda057a5005649edbc3ddf5a5fa57afb9
|
7
|
+
data.tar.gz: c190d1b9e9ccacceac36f1bb7cf22813d1bc14e4c0ef2b5423fee4489ec0f7d06e6eddc6fac96b92cdda018672905ce220fc1ea6e5df5f81af822eb1183f3030
|
data/README.rdoc
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
== README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
25
|
+
|
26
|
+
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
28
|
+
<tt>rake doc:app</tt>.
|
data/Rakefile
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery.ui.core
|
15
|
+
//= require jquery.ui.datepicker
|
16
|
+
//= require jquery_ujs
|
17
|
+
//= require_tree .
|
@@ -0,0 +1,39 @@
|
|
1
|
+
var kilt = (function(){
|
2
|
+
var self;
|
3
|
+
return {
|
4
|
+
init: function(){
|
5
|
+
self = this;
|
6
|
+
|
7
|
+
self.objectEdit();
|
8
|
+
self.codemirror();
|
9
|
+
|
10
|
+
},
|
11
|
+
|
12
|
+
objectEdit: function() {
|
13
|
+
|
14
|
+
$('.datepicker').datepicker();
|
15
|
+
|
16
|
+
},
|
17
|
+
|
18
|
+
codemirror: function() {
|
19
|
+
|
20
|
+
var mixedMode = {
|
21
|
+
name: "htmlmixed",
|
22
|
+
scriptTypes: [{matches: /\/x-handlebars-template|\/x-mustache/i,
|
23
|
+
mode: null}]
|
24
|
+
};
|
25
|
+
|
26
|
+
$('textarea.html').each(function(){
|
27
|
+
CodeMirror.fromTextArea(this,
|
28
|
+
{
|
29
|
+
lineNumbers: true,
|
30
|
+
mode: mixedMode
|
31
|
+
});
|
32
|
+
});
|
33
|
+
|
34
|
+
}
|
35
|
+
};
|
36
|
+
})();
|
37
|
+
$(document).ready(function(){
|
38
|
+
kilt.init();
|
39
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "_base";
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@import "compass/reset";
|
2
|
+
@import "compass/css3";
|
3
|
+
@import "compass/utilities/sprites/base";
|
4
|
+
|
5
|
+
/* colors */
|
6
|
+
$purple : #b344f3;
|
7
|
+
$dark_grey : #404040;
|
8
|
+
$med_grey : #dbe0e2;
|
9
|
+
$light_grey : #ecf0f1;
|
10
|
+
$black : #000;
|
11
|
+
$red : #e74c3c;
|
12
|
+
$green : #1abc9c;
|
13
|
+
|
14
|
+
/* transition variables */
|
15
|
+
$speed : .1s;
|
16
|
+
$ease : ease-out;
|
17
|
+
|
18
|
+
@import "_mixins";
|
19
|
+
@import "_typography";
|
20
|
+
@import "_layout";
|
21
|
+
@import "_buttons";
|
22
|
+
@import "_tables";
|
23
|
+
@import "_form";
|
24
|
+
@import "modules/_jquery_ui";
|
25
|
+
@import "modules/_codemirror";
|
@@ -0,0 +1,58 @@
|
|
1
|
+
.button {
|
2
|
+
@include border-radius(3px);
|
3
|
+
@include transition(background $speed $ease, color $speed $ease);
|
4
|
+
background: $purple;
|
5
|
+
color: #fff;
|
6
|
+
display: inline-block;
|
7
|
+
font-weight: normal;
|
8
|
+
text-decoration: none;
|
9
|
+
margin: 0 7px 0 0;
|
10
|
+
padding: 0 10px;
|
11
|
+
|
12
|
+
&:hover {
|
13
|
+
background: #fff;
|
14
|
+
color: $purple;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.button.small {
|
19
|
+
font-size: 14px;
|
20
|
+
}
|
21
|
+
|
22
|
+
.button.edit {
|
23
|
+
background: $purple;
|
24
|
+
|
25
|
+
&:hover {
|
26
|
+
background: #fff;
|
27
|
+
color: $purple;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.button.back {
|
32
|
+
background: $med_grey;
|
33
|
+
color: $dark_grey;
|
34
|
+
|
35
|
+
&:hover {
|
36
|
+
background: #fff;
|
37
|
+
color: $purple;
|
38
|
+
};
|
39
|
+
}
|
40
|
+
|
41
|
+
.button.delete {
|
42
|
+
background: #fff;
|
43
|
+
color: $red;
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
background: $red;
|
47
|
+
color: #fff;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.nav .button {
|
52
|
+
background: rgba(255,255,255,.15);
|
53
|
+
|
54
|
+
&:hover {
|
55
|
+
background: rgba(255,255,255,.33);
|
56
|
+
color: #fff;
|
57
|
+
}
|
58
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
label {
|
2
|
+
display: block;
|
3
|
+
font-size: 13px;
|
4
|
+
margin: 0 0 10px;
|
5
|
+
}
|
6
|
+
|
7
|
+
.form-input {
|
8
|
+
background: #fff;
|
9
|
+
border: 1px solid #dddddd;
|
10
|
+
display: block;
|
11
|
+
margin: -1px 0 0;
|
12
|
+
padding: 20px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.form-input.boolean {
|
16
|
+
label {
|
17
|
+
display: inline-block;
|
18
|
+
margin: 0 20px 0 0;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.form-input.text input,
|
23
|
+
.form-input.number input,
|
24
|
+
.form-input.longtext textarea,
|
25
|
+
.form-input.datetime input,
|
26
|
+
.form-input.actions input {
|
27
|
+
@include transition(border $speed $ease);
|
28
|
+
border: 0;
|
29
|
+
display: block;
|
30
|
+
padding: 0;
|
31
|
+
font-size: 18px;
|
32
|
+
line-height: 1.5;
|
33
|
+
width: 100%;
|
34
|
+
}
|
35
|
+
|
36
|
+
.form-input.longtext textarea {
|
37
|
+
height: 170px;
|
38
|
+
resize: vertical;
|
39
|
+
max-width: 100%;
|
40
|
+
min-width: 100%;
|
41
|
+
width: 100%;
|
42
|
+
}
|
43
|
+
|
44
|
+
.form-input.actions input {
|
45
|
+
@include transition(background $speed $ease);
|
46
|
+
background: $purple;
|
47
|
+
color: #fff;
|
48
|
+
cursor: pointer;
|
49
|
+
display: inline-block;
|
50
|
+
margin: 0 20px 0 0;
|
51
|
+
padding: 10px 80px;
|
52
|
+
width: auto;
|
53
|
+
|
54
|
+
&:hover {
|
55
|
+
background: $dark_grey;
|
56
|
+
}
|
57
|
+
|
58
|
+
&.delete {
|
59
|
+
background: #fff;
|
60
|
+
color: $red;
|
61
|
+
|
62
|
+
&:hover {
|
63
|
+
background: $red;
|
64
|
+
color: #fff;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
.form-input .tip {
|
70
|
+
font-size: 11px;
|
71
|
+
line-height: 20px;
|
72
|
+
font-style: italic;
|
73
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
body {
|
2
|
+
padding-top: 36px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.wr {
|
6
|
+
padding: 0 30px;
|
7
|
+
position: relative;
|
8
|
+
margin: 0 auto;
|
9
|
+
width: 100%;
|
10
|
+
}
|
11
|
+
.hd .wr,
|
12
|
+
.nav .wr {
|
13
|
+
max-width: 100%;
|
14
|
+
}
|
15
|
+
|
16
|
+
.hd {
|
17
|
+
background: $purple;
|
18
|
+
color: #fff;
|
19
|
+
font-weight: normal;
|
20
|
+
position: fixed;
|
21
|
+
top: 0;
|
22
|
+
left: 0;
|
23
|
+
width: 100%;
|
24
|
+
z-index: 999;
|
25
|
+
|
26
|
+
h6 {
|
27
|
+
display: inline-block;
|
28
|
+
font-weight: 800;
|
29
|
+
margin: 0 10px 0 0;
|
30
|
+
|
31
|
+
a {
|
32
|
+
color: #fff;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.button.dashboard {
|
37
|
+
position: relative;
|
38
|
+
top: -3px;
|
39
|
+
}
|
40
|
+
|
41
|
+
.user {
|
42
|
+
right: 30px;
|
43
|
+
position: absolute;
|
44
|
+
top: 4px;
|
45
|
+
|
46
|
+
.greeting {
|
47
|
+
display: inline-block;
|
48
|
+
font-size: 14px;
|
49
|
+
line-height: 30px;
|
50
|
+
margin: 0 10px 0 0;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.nav {
|
56
|
+
background: $dark_grey;
|
57
|
+
font-size: 14px;
|
58
|
+
font-weight: normal;
|
59
|
+
padding: 3px 0;
|
60
|
+
}
|
61
|
+
|
62
|
+
.page-actions {
|
63
|
+
margin: 0 0 30px;
|
64
|
+
}
|
65
|
+
|
66
|
+
.object-list {
|
67
|
+
font-size: 60px;
|
68
|
+
font-weight: 400;
|
69
|
+
}
|
70
|
+
|
71
|
+
p.notice,
|
72
|
+
p.error {
|
73
|
+
@include border-radius(3px);
|
74
|
+
border: 1px solid $purple;
|
75
|
+
color: #fff;
|
76
|
+
font-weight: normal;
|
77
|
+
color: $purple;
|
78
|
+
padding: 10px 30px;
|
79
|
+
text-align: center;
|
80
|
+
}
|
81
|
+
|
82
|
+
p.error {
|
83
|
+
border-color: $red;
|
84
|
+
color: $red;
|
85
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
table {
|
2
|
+
background: #fff;
|
3
|
+
width: 100%;
|
4
|
+
}
|
5
|
+
|
6
|
+
tr:hover {
|
7
|
+
@include transition(background $speed $ease);
|
8
|
+
background: rgba(179, 68, 243, .03);
|
9
|
+
}
|
10
|
+
|
11
|
+
th,
|
12
|
+
td {
|
13
|
+
padding: 15px 30px;
|
14
|
+
}
|
15
|
+
|
16
|
+
th {
|
17
|
+
background: $med_grey;
|
18
|
+
|
19
|
+
h4 {
|
20
|
+
margin: 0;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
td {
|
25
|
+
border-bottom: 2px solid $light_grey;
|
26
|
+
}
|
27
|
+
|
28
|
+
td.actions {
|
29
|
+
text-align: right;
|
30
|
+
|
31
|
+
.button {
|
32
|
+
margin: 0 5px 0 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
.button:last-child {
|
36
|
+
margin: 0;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
td.title .edit {
|
41
|
+
color: $dark_grey;
|
42
|
+
|
43
|
+
&:hover {
|
44
|
+
color: $purple;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
th.hidden {
|
49
|
+
text-indent: -9999em;
|
50
|
+
}
|
51
|
+
|
52
|
+
@media (max-width: 1120px) {
|
53
|
+
table {
|
54
|
+
font-size: 14px;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
@media (max-width: 920px) {
|
59
|
+
th.updated,
|
60
|
+
td.updated,
|
61
|
+
th.created,
|
62
|
+
td.created {
|
63
|
+
display: none;
|
64
|
+
}
|
65
|
+
}
|