annotate src/DML/MainVisBundle/Resources/assets/bem-blocks/player.less @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
rev   line source
Daniel@0 1 @import "../config.less";
Daniel@0 2
Daniel@0 3 .player {
Daniel@0 4
Daniel@0 5 @height: 90px;
Daniel@0 6 @message-top: 15px;
Daniel@0 7 @commands-top: 32px;
Daniel@0 8 @padding-h: 10px;
Daniel@0 9
Daniel@0 10 @command-size_small: 15px;
Daniel@0 11
Daniel@0 12 position: relative;
Daniel@0 13 height: @height;
Daniel@0 14
Daniel@0 15 // ----------------------------------
Daniel@0 16 &_modifier {
Daniel@0 17
Daniel@0 18 }
Daniel@0 19
Daniel@0 20 // ==================================
Daniel@0 21 &__body {
Daniel@0 22 .position_absolute_everywhere();
Daniel@0 23 }
Daniel@0 24
Daniel@0 25 // ==================================
Daniel@0 26 &__command {
Daniel@0 27 display: block;
Daniel@0 28 position: absolute;
Daniel@0 29 width: @player--command-size;
Daniel@0 30 height: @player--command-size;
Daniel@0 31 }
Daniel@0 32
Daniel@0 33 &__command:focus {
Daniel@0 34 outline: none;
Daniel@0 35 }
Daniel@0 36
Daniel@0 37 &__command i {
Daniel@0 38 display: block;
Daniel@0 39 position: absolute;
Daniel@0 40 width: @player--command-size;
Daniel@0 41 height: @player--command-size;
Daniel@0 42 background-repeat: no-repeat;
Daniel@0 43 background-position: center center;
Daniel@0 44 opacity: 0.05;
Daniel@0 45 }
Daniel@0 46
Daniel@0 47 &__command_state_enabled {
Daniel@0 48 display: block;
Daniel@0 49 .cursor_action();
Daniel@0 50 }
Daniel@0 51 &__command_state_enabled i {
Daniel@0 52 opacity: 0.35;
Daniel@0 53 }
Daniel@0 54
Daniel@0 55 &__command_state_enabled:hover i {
Daniel@0 56 opacity: 1;
Daniel@0 57 }
Daniel@0 58 &__command_flashing i,
Daniel@0 59 &__command_state_enabled:active i {
Daniel@0 60 //background: mix(@config-grid--color_collection, #fff, 20%);
Daniel@0 61 top: 1px;
Daniel@0 62 }
Daniel@0 63
Daniel@0 64 // ----------------------------------
Daniel@0 65 .jp-state-playing &__command_action_play {
Daniel@0 66 display: none;
Daniel@0 67 }
Daniel@0 68 &__command_action_pause {
Daniel@0 69 display: none;
Daniel@0 70 }
Daniel@0 71 .jp-state-playing &__command_action_pause {
Daniel@0 72 display: block;
Daniel@0 73 }
Daniel@0 74 &__command_action_play, &__command_action_pause {
Daniel@0 75 top: @commands-top;
Daniel@0 76 left: @padding-h - 4px;
Daniel@0 77 }
Daniel@0 78 &__command_action_download {
Daniel@0 79 top: @commands-top - 1;
Daniel@0 80 left: 35px;
Daniel@0 81 //right: @padding-h;
Daniel@0 82 }
Daniel@0 83
Daniel@0 84 // ----------------------------------
Daniel@0 85 &__command_action_play i {
Daniel@0 86 background-image: url("@{bem-path}/player/command/play.svg");
Daniel@0 87 }
Daniel@0 88
Daniel@0 89 // ----------------------------------
Daniel@0 90 &__command_action_pause i {
Daniel@0 91 background-image: url("@{bem-path}/player/command/pause.svg");
Daniel@0 92 }
Daniel@0 93
Daniel@0 94 // ----------------------------------
Daniel@0 95 &__command_action_download i {
Daniel@0 96 background-image: url("@{bem-path}/player/command/download_cloud.svg");
Daniel@0 97 }
Daniel@0 98
Daniel@0 99 // ----------------------------------
Daniel@0 100 &__command_action_volume-up i {
Daniel@0 101 background-size: 50%;
Daniel@0 102 background-image: url("@{bem-path}/player/command/volume-up.svg");
Daniel@0 103 }
Daniel@0 104
Daniel@0 105 // ----------------------------------
Daniel@0 106 &__command_action_volume-down i {
Daniel@0 107 background-size: 45%;
Daniel@0 108 background-image: url("@{bem-path}/player/command/volume-down.svg");
Daniel@0 109 }
Daniel@0 110
Daniel@0 111 // ----------------------------------
Daniel@0 112 &__command_action_volume-mute i {
Daniel@0 113 background-size: 35%;
Daniel@0 114 background-image: url("@{bem-path}/player/command/volume-mute.svg");
Daniel@0 115 }
Daniel@0 116
Daniel@0 117 &__command_action_volume-down, &__command_action_volume-mute, &__command_action_volume-up {
Daniel@0 118 top: @commands-top;
Daniel@0 119 }
Daniel@0 120 &__command_action_volume-down, &__command_action_volume-mute {
Daniel@0 121 left: 90px;
Daniel@0 122 }
Daniel@0 123 &__command_action_volume-up {
Daniel@0 124 right: 5px;
Daniel@0 125 }
Daniel@0 126
Daniel@0 127 // ==================================
Daniel@0 128 &__label {
Daniel@0 129 position: absolute;
Daniel@0 130 .font_small();
Daniel@0 131 left: @padding-h;
Daniel@0 132 right: @padding-h;
Daniel@0 133 white-space: nowrap;
Daniel@0 134 overflow: hidden;
Daniel@0 135 //color: @config-grid--color_panel-label;
Daniel@0 136 }
Daniel@0 137
Daniel@0 138 // ----------------------------------
Daniel@0 139 &__label_row_1 {
Daniel@0 140 top: 4px;
Daniel@0 141 }
Daniel@0 142 &__label_row_2 {
Daniel@0 143 top: 15px;
Daniel@0 144 }
Daniel@0 145 &__label-fader {
Daniel@0 146 position: absolute;
Daniel@0 147 top: 0;
Daniel@0 148 right: @padding-h;
Daniel@0 149 height: 30px;
Daniel@0 150 width: @config-grid--header-fader-width;
Daniel@0 151 .text-fader-background-gradient(#eee);
Daniel@0 152 }
Daniel@0 153
Daniel@0 154 // ==================================
Daniel@0 155 &__time {
Daniel@0 156 position: absolute;
Daniel@0 157 .font_small();
Daniel@0 158 color: @config-grid--color_panel-label;
Daniel@0 159 top: 70px;
Daniel@0 160 }
Daniel@0 161 &__time_type_before {
Daniel@0 162 left: 10px;
Daniel@0 163 }
Daniel@0 164 &__time_type_after {
Daniel@0 165 right: 10px;
Daniel@0 166 }
Daniel@0 167
Daniel@0 168 // ==================================
Daniel@0 169 &__slider-container {
Daniel@0 170 }
Daniel@0 171 &__slider-container_type_time {
Daniel@0 172 position: absolute;
Daniel@0 173 left: 10px;
Daniel@0 174 right: 10px;
Daniel@0 175 top: 60px;
Daniel@0 176 height: 15px;
Daniel@0 177 }
Daniel@0 178
Daniel@0 179 &__slider-container_type_volume {
Daniel@0 180 position: absolute;
Daniel@0 181 left: 115px;
Daniel@0 182 right: 35px;
Daniel@0 183 top: 36px;
Daniel@0 184 height: 18px;
Daniel@0 185 }
Daniel@0 186
Daniel@0 187 &__slider {
Daniel@0 188 .position_absolute_everywhere();
Daniel@0 189 border-top: 5px solid;
Daniel@0 190 border-bottom: 5px solid;
Daniel@0 191 color: #eee;
Daniel@0 192 background: rgba(0, 0, 0, 5%);
Daniel@0 193 }
Daniel@0 194
Daniel@0 195 // ==================================
Daniel@0 196 &__slider-head {
Daniel@0 197 .position_absolute_everywhere();
Daniel@0 198 right: auto;
Daniel@0 199 background: rgba(0, 0, 0, 35%);
Daniel@0 200 }
Daniel@0 201
Daniel@0 202 &__slider:hover {
Daniel@0 203 background: rgba(0, 0, 0, 15%);
Daniel@0 204 }
Daniel@0 205
Daniel@0 206 &__slider:hover &__slider-head {
Daniel@0 207 background: #000;
Daniel@0 208 }
Daniel@0 209
Daniel@0 210 // ==================================
Daniel@0 211 &__cover {
Daniel@0 212 .position_absolute_everywhere();
Daniel@0 213 }
Daniel@0 214
Daniel@0 215 // ==================================
Daniel@0 216 &__message {
Daniel@0 217 .position_absolute_everywhere;
Daniel@0 218 padding-top: @message-top;
Daniel@0 219 text-align: center;
Daniel@0 220 }
Daniel@0 221
Daniel@0 222 // ----------------------------------
Daniel@0 223 &__message_type_error {
Daniel@0 224
Daniel@0 225 }
Daniel@0 226
Daniel@0 227 // ----------------------------------
Daniel@0 228 &__message_type_loading {
Daniel@0 229
Daniel@0 230 }
Daniel@0 231 }