DmitrMakeev commited on
Commit
67f4288
·
verified ·
1 Parent(s): e05a6b5

Update js/rus/rus.js

Browse files
Files changed (1) hide show
  1. js/rus/rus.js +45 -9
js/rus/rus.js CHANGED
@@ -428,7 +428,7 @@ editor.Components.addType('video-player-settings', {
428
  model: {
429
  defaults: {
430
  // HTML-код блока настроек видеоплеера
431
- content: '<div id="player"></div>',
432
  // Скрипт для обработки блока (если нужно)
433
  script: function(props) {
434
  window.vid_list = props.vid_list;
@@ -540,15 +540,51 @@ editor.Blocks.add('video-player-settings-block', {
540
 
541
  // Создаем блок стилей плеера
542
  editor.CssComposer.addRules(`
543
- #player {
544
- width: 720px;
545
- height: 480px;
546
- border: 3px solid black;
547
- margin: 0 auto;
548
  position: relative;
549
- top: 0;
550
- display: block;
551
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
552
  `);
553
 
554
 
 
428
  model: {
429
  defaults: {
430
  // HTML-код блока настроек видеоплеера
431
+ content: '<div class="ramka-7 id="player"></div>',
432
  // Скрипт для обработки блока (если нужно)
433
  script: function(props) {
434
  window.vid_list = props.vid_list;
 
540
 
541
  // Создаем блок стилей плеера
542
  editor.CssComposer.addRules(`
543
+ .ramka-7 {
544
+ width: 200px;
545
+ height: 200px;
546
+ background-color: #FFF;
 
547
  position: relative;
548
+ margin: 60px auto;
549
+ display: flex;
550
+ align-items: center;
551
+ justify-content: center;
552
+ font-size: 24px;
553
+ font-family: 'Roboto', sans-serif;
554
+ box-shadow: inset 6px 6px 8px 0 rgba(0,0,0,0.4);
555
+ }
556
+ .ramka-7:after,
557
+ .ramka-7:before {
558
+ mix-blend-mode:multiply;
559
+ filter:none;
560
+ z-index: -1;
561
+ content:'';
562
+ width: calc(100% + 90px);
563
+ height: calc(100% + 90px);
564
+ position: absolute;
565
+ animation: anim-ramka-7 8s ease-in-out infinite;
566
+ }
567
+ @keyframes anim-ramka-7 {
568
+ 0%, 100% {
569
+ clip-path: polygon(0 0, calc(100% - (33px)) calc(0% + (33px)), 100% 100%, calc(0% + (33px)) calc(100% - (33px)));
570
+ }
571
+ 50% {
572
+ clip-path: polygon(calc(0% + (33px)) calc(0% + (33px)), 100% 0, calc(100% - (33px)) calc(100% - (33px)), 0 100%);
573
+ }
574
+ }
575
+ .ramka-7:after{
576
+ animation-delay: -5s;
577
+ background-color: #BFE2FF;
578
+ clip-path: polygon(0 0, calc(100% - (33px)) calc(0% + (33px)), 100% 100%, calc(0% + (33px)) calc(100% - (33px)));
579
+ }
580
+ .ramka-7:before {
581
+ background-color: #337AB7;
582
+ clip-path: polygon(calc(0% + (33px)) calc(0% + (33px)), 100% 0, calc(100% - (33px)) calc(100% - (33px)), 0 100%);
583
+ }
584
+ .ramka-7:hover:before,
585
+ .ramka-7:hover:after {
586
+ animation-play-state: paused;
587
+ }
588
  `);
589
 
590