| 1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- .ck-widget.media {
- & .ck-media__wrapper {
- max-width: 640px;
- max-height: 360px;
- margin: 0 auto;
- & .ck-media__wrapper__aspect {
- position: relative;
- padding-bottom: 56.2493%;
- height: 0;
- & * {
- pointer-events: none;
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- }
- }
- /* Spotify embeds have width="300" height="380" */
- &[data-oembed-url*="open.spotify.com"] {
- max-width: 300px;
- max-height: 380px;
- & .ck-media__wrapper__aspect {
- padding-bottom: 126%;
- }
- }
- }
- }
|