@base-color: #00c5c3; @white-color: #fff; @dark-color: #333; @dark-lighten-color: #303030; .border-white { border: 1px solid @white-color; } .border-red { border: 1px solid red; } .border-dark { border: 1px solid @dark-color; } .border-blue { border: 1px solid blue; } .border-radius (@radius: 4px) { -webkit-border-radius: @radius; -moz-border-radius: @radius; border-radius: @radius; } .transition (@pro: all, @time: .5s, @timing: ease-in-out) { -webkit-transition: @arguments; -moz-transition: @arguments; -o-transition: @arguments; transition: @arguments; } .opacity (@opacity: 1) { @opacityPercentage: @opacity*100; -ms-filter: ~"progid:DXImageTransform.Microsoft.Alpha(opacity=@{opacityPercentage})"; filter: alpha(opacity=@opacityPercentage); -moz-opacity: @opacity; -khtml-opacity: @opacity; opacity: @opacity; } .gradient { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d900c3c1', endColorstr='transparent', GradientType=0); background: -moz-linear-gradient(top, rgba(0, 195, 193, 0.85) 0%, rgba(255, 255, 255, 0) 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 195, 193, 0.85)), color-stop(100%, rgba(255, 255, 255, 0))); background: -webkit-linear-gradient(top, rgba(0, 195, 193, 0.85) 0%, rgba(255, 255, 255, 0) 100%); background: -o-linear-gradient(top, rgba(0, 195, 193, 0.85) 0%, rgba(255, 255, 255, 0) 100%); background: -ms-linear-gradient(top, rgba(0, 195, 193, 0.85) 0%, rgba(255, 255, 255, 0) 100%); background: linear-gradient(to bottom, rgba(0, 195, 193, 0.85) 0%, rgba(255, 255, 255, 0) 100%); } body { background-color: @base-color; } .wrapper { width: 400px; height: auto; margin: auto; & .main { width: 100%; height: 720px; background-color: @dark-lighten-color; position: relative; } } .header { padding: 8px; & > a { width: 50%; } } .footer { color: @white-color; padding: 8px; } .info { height: 75px; position: relative; padding: 4px; z-index: 15; .gradient; } .info-user { width: 20%; & > div { color: @white-color; &:first-child { padding: 8px 8px 0; & img { border: 3px solid @white-color; .border-radius(50%); } } &:last-child { padding: 4px 0px; } } } .info-detail { width: 50%; margin-left: 8px; & > div { height: 20px; color: @white-color; overflow: hidden; -ms-text-overflow: ellipsis; -o-text-overflow: ellipsis; text-overflow: ellipsis; &:first-child { padding-bottom: 4px; font-weight: 600; } } } .info-count { position: absolute; right: 4px; bottom: 4px; & div { margin-left: 4px; & span { color: @white-color; margin-left: 2px; } } } .info-share { position: absolute; right: 4px; left: 4px; bottom: 4px; top: 4px; & button { border: 0; outline: 0; color: #00c5c3; background: #fff; width: 72px; padding: 4px; .border-radius(4px); font-weight: 600; font-size: 12px; &:hover { .opacity(0.8); } & ~ .active { left: 0; visibility: visible; .opacity(1); } } & > div { position: relative; top: 46px; width: 60%; margin: auto; left: 30px; /* transition: left .5s ease-in-out, opacity .5s ease-in-out; */ .transition; visibility: hidden; .opacity(0); & a { width: 25%; height: 46px; line-height: 46px; color: #fff; &:hover { color: @dark-lighten-color; } &.share-facebook { background-color: #3b5998; } &.share-twitter { background-color: #6cdfea; } &.share-gplus { background-color: #e34429; } &.share-email { background-color: #42c5b0; } } } } .overlay { /* border: 1px solid white; */ position: absolute; top: 0; left: 0; right: 0; bottom: 0; color: white; z-index: 10; & > div { margin-top: 310px !important; } & > .overlay-button { & button { color: @white-color; background-color: @base-color; border: 0; .border-radius; width: 65%; padding: 24px; font-size: 1.4em; .transition; &:hover { color: @base-color; background-color: @white-color; & .loader-inner { & div { background-color: @base-color; } } } } & > div { padding: 8px; } } & > .overlay-over { border: 1px solid #fff; background: #fefefe; .border-radius(8px); width: 80%; margin: auto; & h4 { color: @base-color; } & div { width: 80%; & a { width: 33.33%; padding: 16px; & img { border: 1px solid @base-color; .border-radius (50%); .transition; } &:hover { & img { -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -o-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg); } } } } } } .player { position: absolute; top: 0; left: 0; bottom: 0; right: 0; & > div { height: 100% !important; } } .main { overflow: hidden; &.playing { &:hover { & .info { top: 0; .opacity(1); /* .gradient; */ } } & .info { top: -75px; .transition (@time: .25s); .opacity(0); } } } @media (max-width: 400px) { .wrapper { width: 100%; } .detail-category { display: none; } .overlay { & button { width: 80% !important; padding: 24px 16px !important; font-size: 16px !important; } } }