compass-fluid-video 1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +0 -0
- data/README.md +4 -0
- data/lib/compass-fluid-video.rb +34 -0
- data/stylesheets/_compass-fluid-video.scss +30 -0
- data/templates/project/_compass-fluid-video-demo.scss +21 -0
- data/templates/project/manifest.rb +22 -0
- metadata +78 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: be32845d094e55f5ffdd2bf0fbff611c70767562
|
4
|
+
data.tar.gz: 15f34ca6fb1bb80cece5a40880230c40e924c7c5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dc227ada164a676eb4c8a60ee7cae1734e1f2932bc8c669c244e84cc66c056367550ab5061c8178c5acc64ce6573945720ae2601497039b731e3920d9b1c695a
|
7
|
+
data.tar.gz: 0ab774283c59c4ecaecd59a3c9e8fc61bd8000f51c342440eaf03210dbf8589978887a30a105610004e3d90cf48c63454b3149763009f857484f669faef1bbf3
|
data/CHANGELOG.md
ADDED
File without changes
|
data/README.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# All gems that are required for this extension to work should go here.
|
2
|
+
# These are the requires you would normally put in your config.rb file
|
3
|
+
# By default, you should always included Compass. Do not include your
|
4
|
+
# extension.
|
5
|
+
require 'compass'
|
6
|
+
|
7
|
+
# This tells Compass what your Compass extension is called, and where to find
|
8
|
+
# its files
|
9
|
+
# Replace 'extension' with the name of your extension. Spaces allowed.
|
10
|
+
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
11
|
+
Compass::Frameworks.register('compass-fluid-video', :path => extension_path)
|
12
|
+
|
13
|
+
# Version and date of version for your Compass extension.
|
14
|
+
# Replace Extension with the name of your extension
|
15
|
+
# Letters, numbers, and underscores only
|
16
|
+
# Version is a number. If a version contains alphas, it will be created as
|
17
|
+
# a prerelease version
|
18
|
+
# Date is in the form of YYYY-MM-DD
|
19
|
+
module Compass
|
20
|
+
module Fluid
|
21
|
+
module Video
|
22
|
+
VERSION = "1.0"
|
23
|
+
DATE = "2014-08-05"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# This is where any custom SassScript should be placed. The functions will be
|
29
|
+
# available on require of your extension without the need for users to import
|
30
|
+
# any partials. Uncomment below.
|
31
|
+
|
32
|
+
# module Sass::Script::Functions
|
33
|
+
#
|
34
|
+
# end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
.container {
|
2
|
+
position: relative;
|
3
|
+
height: 0;
|
4
|
+
overflow: hidden;
|
5
|
+
}
|
6
|
+
|
7
|
+
.video {
|
8
|
+
position: absolute;
|
9
|
+
top: 0;
|
10
|
+
left: 0;
|
11
|
+
width: 100%;
|
12
|
+
height: 100%;
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin fluid-video(
|
16
|
+
$width: null,
|
17
|
+
$height: null) {
|
18
|
+
|
19
|
+
@extend .container;
|
20
|
+
|
21
|
+
@if ($width and $height) {
|
22
|
+
padding-bottom: percentage($height / $width);
|
23
|
+
} @else {
|
24
|
+
padding-bottom: 56.25%;
|
25
|
+
}
|
26
|
+
|
27
|
+
& > iframe, object, embed, video {
|
28
|
+
@extend .video;
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@import 'compass-fluid-video';
|
2
|
+
|
3
|
+
/*
|
4
|
+
The only requirement of this extension is that your wrap your video inside a
|
5
|
+
container, for example a <div> with a class of "video-container".
|
6
|
+
Out of the box this supports 16:9 ratio videos.
|
7
|
+
*/
|
8
|
+
|
9
|
+
.video-container {
|
10
|
+
@include fluid-video;
|
11
|
+
}
|
12
|
+
|
13
|
+
/*
|
14
|
+
To use a custom ratio, simply provideo a width and height.
|
15
|
+
*/
|
16
|
+
|
17
|
+
.custom {
|
18
|
+
@include fluid-video($width: 500, $height: 214);
|
19
|
+
// shorthand syntax:
|
20
|
+
// @include fluid-video(500, 214);
|
21
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Description
|
2
|
+
description "A Compass extension for making fluid videos."
|
3
|
+
|
4
|
+
# Stylesheet Import
|
5
|
+
file '_compass-fluid-video-demo.scss', :like => :stylesheet, :media => 'screen, projection'
|
6
|
+
|
7
|
+
# Javascript Import
|
8
|
+
# file 'scripts.js', :like => :javascript, :to => 'scripts.js'
|
9
|
+
|
10
|
+
# General File Import
|
11
|
+
# file 'README.md', :to => "README.md"
|
12
|
+
|
13
|
+
# Compass Extension Help
|
14
|
+
help %Q{
|
15
|
+
Open _compass-fluid-video-demo.scss for help and examples.
|
16
|
+
}
|
17
|
+
|
18
|
+
# Compass Extension Welcome Message
|
19
|
+
# Users will see this when they create a new project using this template.
|
20
|
+
welcome_message %Q{
|
21
|
+
You have successfully installed compass-fluid-video!
|
22
|
+
}
|
metadata
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: compass-fluid-video
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Charlie Hield
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sass
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: compass
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.12.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.12.1
|
41
|
+
description: A Compass extension for making fluid videos.
|
42
|
+
email:
|
43
|
+
- charles.hield@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- README.md
|
49
|
+
- CHANGELOG.md
|
50
|
+
- lib/compass-fluid-video.rb
|
51
|
+
- stylesheets/_compass-fluid-video.scss
|
52
|
+
- templates/project/_compass-fluid-video-demo.scss
|
53
|
+
- templates/project/manifest.rb
|
54
|
+
homepage: https://github.com/stursby/compass-fluid-video
|
55
|
+
licenses: []
|
56
|
+
metadata: {}
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options: []
|
59
|
+
require_paths:
|
60
|
+
- lib
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.3.6
|
71
|
+
requirements: []
|
72
|
+
rubyforge_project: compass-fluid-video
|
73
|
+
rubygems_version: 2.0.14
|
74
|
+
signing_key:
|
75
|
+
specification_version: 4
|
76
|
+
summary: A simple way to make your videos fluid/responsive. By default compass-fluid-video
|
77
|
+
works with 16:9 ratio videos, but also accepts custom dimensions.
|
78
|
+
test_files: []
|