Summary Files Commits Branches @commit @diff @stats
path: root / src / media.less
diff options
context:
space:
mode:
Commite78b3c34348f26d40a813612c5a3786f1c56607a (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-08-29 18:07:53 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-08-29 18:07:53 +0800
Filesf857491026c5f728fe95fe1564ec30c931a1b30a /src/media.less
Spectre-Dark-Gruvbox-e78b3c34348f26d40a813612c5a3786f1c56607a.tar
Spectre-Dark-Gruvbox-e78b3c34348f26d40a813612c5a3786f1c56607a.tar.gz
Spectre-Dark-Gruvbox-e78b3c34348f26d40a813612c5a3786f1c56607a.zip
Parent66c492fd05c2d720c81e2be8d6845560b868e7ff (diff)
Initial SASS build
1 files changed, 0 insertions, 70 deletions
-rw-r--r--src/media.less70
diff --git a/src/media.less b/src/media.less
deleted file mode 100644
index a55b8cb..0000000
--- a/src/media.less
+++ /dev/null
@@ -1,70 +0,0 @@
-// Media
-.img-responsive {
- display: block;
- height: auto;
- max-width: 100%;
-}
-
-// object-fit support is coming to Microsoft Edge
-// https://developer.microsoft.com/en-us/microsoft-edge/platform/status/objectfitandobjectposition/
-.img-fit-cover {
- object-fit: cover;
-}
-
-.img-fit-contain {
- object-fit: contain;
-}
-
-// Video responsive
-.video-responsive {
- display: block;
- overflow: hidden;
- padding: 0;
- position: relative;
- width: 100%;
-
- &::before {
- content: "";
- display: block;
- padding-bottom: 56.25%; // Default ratio 16:9, you can calculate this value by dividing 9 by 16
- }
-
- iframe,
- object,
- embed {
- border: 0;
- bottom: 0;
- height: 100%;
- left: 0;
- position: absolute;
- right: 0;
- top: 0;
- width: 100%;
- }
- video {
- height: auto;
- max-width: 100%;
- width: 100%;
- }
-}
-
-.video-responsive-4-3 {
- &::before {
- padding-bottom: 75%; // Ratio 4:3
- }
-}
-
-.video-responsive-1-1 {
- &::before {
- padding-bottom: 100%; // Ratio 1:1
- }
-}
-
-.figure {
- margin: 0 0 @layout-spacing 0;
-
- .figure-caption {
- color: @gray-color-dark;
- margin-top: @layout-spacing;
- }
-}