Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion css/sc-player-standard.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@import url("sc-player-standard/standards.css");
@import url("sc-player-standard/structure-horizontal.css"); /* switch here between 'horizontal' and 'vertical' structure */
@import url("structure.css"); /* switch here between 'horizontal' and 'vertical' structure */
@import url("sc-player-standard/colors-green.css"); /* switch here between 'blue', 'orange' and 'green' color-shemes */
2 changes: 1 addition & 1 deletion css/sc-player-standard/structure-horizontal.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.sc-player .sc-artwork-list{
width: 50%;
height: 100%;
background-color: #transparent;
background-color: transparent;
list-style-type: none;
position: relative;
}
Expand Down
2 changes: 1 addition & 1 deletion css/sc-player-standard/structure-vertical.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.sc-player .sc-artwork-list{
width: 100%;
height: 50%;
background-color: #transparent;
background-color: transparent;
list-style-type: none;
position: relative;
}
Expand Down
1 change: 1 addition & 0 deletions css/structure.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 51 additions & 49 deletions examples/sc-player-standard.html
Original file line number Diff line number Diff line change
@@ -1,51 +1,53 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>

<title>SC player example: Standard Skin</title>
<link rel="stylesheet" href="../css/sc-player-standard.css" type="text/css">

</head>

<body>

<h1>The Directory</h1>

<div class="post">

<h2>March 10</h2>

<a href="http://soundcloud.com/matas" class="sc-player">Matas tracks</a>

<h2>February 10</h2>

<div class="sc-player">
<a href="http://soundcloud.com/matas/matas-petrikas-live-at-gravity-club-30-05-2008">My live track</a>
<a href="http://soundcloud.com/matas/goldfrapp-little-bird-matas-ornitologic-remix">Goldfrapp</a>
<a href="http://soundcloud.com/matas/on-the-bridge">On the bridge</a>
</div>

<h2>January 10</h2>

<a href="http://soundcloud.com/forss/sets/soulhack" class="sc-player">Soulhack</a>

</div>

<div class="sidebar">
<h2>Contact</h2>
<p>are you want to get listed?</p>
<p>mail@thedirectory.us</p>
</div>

<div class="footer">
2010
</div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="../js/soundcloud.player.api.js"></script>
<script type="text/javascript" src="../js/sc-player.js"></script>
</body>

</html>

<head>

<title>SC player example: Standard Skin</title>
<link rel = "stylesheet" href = "../css/sc-player-standard.css" type = "text/css">

</head>

<body>

<h1>The Directory</h1>

<div class = "post">

<h2>March 10</h2>

<a href = "http://soundcloud.com/matas" class = "sc-player">Matas tracks</a>

<h2>February 10</h2>

<div class = "sc-player">
<a href = "http://soundcloud.com/matas/matas-petrikas-live-at-gravity-club-30-05-2008">My live track</a>
<a href = "http://soundcloud.com/matas/goldfrapp-little-bird-matas-ornitologic-remix">Goldfrapp</a>
<a href = "http://soundcloud.com/matas/on-the-bridge">On the bridge</a>
</div>

<h2>January 10</h2>

<a href = "http://soundcloud.com/forss/sets/soulhack" class = "sc-player">Soulhack</a>

</div>

<div class = "sidebar">
<h2>Contact</h2>

<p>are you want to get listed?</p>

<p>mail@thedirectory.us</p>
</div>

<div class = "footer">
2010
</div>

<script type = "text/javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type = "text/javascript" src = "../js/soundcloud.player.api.js"></script>
<script type = "text/javascript" src = "../js/sc-player.js"></script>
</body>

</html>
159 changes: 159 additions & 0 deletions less/base.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
/*------------------------------------------------------------------------------------------------------------------------
Author: Sean Goresht
www: http://seangoresht.com/
github: https://github.com/srsgores
twitter: http://twitter.com/S.Goresht

Licensed under the GNU Public License

=============================================================================
Filename: base
=============================================================================
Contains base styles for soundcloud player. Customizable via variables.less.
--------------------------------------------------------------------------------------------------------------------- */
@import "variables";
@import "mixins";

.sc-player {
width: @soundCloudPlayerWidth;
height: @soundCloudPlayerHeight;
position: relative;
margin: @soundCloudVerticalMargin 0;
ol, li {
margin: 0;
padding: 0;
list-style-position: inside;
}
.sc-artwork-list {
width: @soundCloudArtworkListWidth;
height: @soundCloudArtworkListHeight;
position: relative;
float: left;
li {
list-style-type: none;
display: none;
img, div {
list-style-type: none;
width: 100%;
height: 100%;
}
}
li.active {
list-style-type: none;
display: block;
}
}
.sc-controls {
position: absolute;
width: @soundCloudControlWidth;
height: @soundCloudControlHeight;
top: @soundCloudControlTopSpacing;
left: @soundCloudControlLeftSpacing;
margin-left: @soundCloudControlMarginLeft;
margin-top: @soundCloudControlMarginTop;
a {
display: block;
width: @soundCloudControlWidth;
height: @soundCloudControlHeight;
&.sc-play {
text-indent: -3000px;
}
&.sc-pause {
text-indent: -3000px;
display: none;
}
}
}
ol.sc-trackslist {
float: left;
width: @soundCloudTrackListWidth;
height: @soundCloudTrackListHeight;
left: @soundCloudTrackListLeftSpacing;
overflow: auto;
li {
float: left;
width: @soundCloudTrackListTrackWidth;
cursor: pointer;
margin: @soundCloudTrackListTrackMargin;
padding: @soundCloudTrackListTrackPadding;
list-style: none;
}
}
.sc-info {
position: absolute;
top: @soundCloudInfoPanelTopSpacing;
left: -5000px;
width: @soundCloudInfoPanelWidth;
padding: @soundCloudInfoPanelPadding;
height: @soundCloudInfoPanelHeight;
z-index: 500;
margin: @soundCloudInfoPanelMargin;
&.active {
left: 25%;
top: 5%;
}
}
.sc-info-toggle {
position: absolute;
top: @soundCloudInfoPanelToggleTopSpacing;
left: @soundCloudInfoPanelToggleLeftSpacing;
display: none;
}
.sc-info-toggle.active {
left: -5000px;
}
.sc-info-close {
position: absolute;
top: @soundCloudInfoPanelCloseTopSpacing;
right: @soundCloudInfoPanelCloseRightSpacing;
}
.hidden {
display: none;
}
}

.sc-player.playing .sc-controls a.sc-play {
display: none;
}

.sc-player.playing .sc-controls a.sc-pause {
display: block;
}

.sc-scrubber {
position: absolute;
//left: -5000px;
bottom: @soundCloudScrubberBottomSpacing;
height: @soundCloudScrubberHeight;
width: @soundCloudScrubberWidth;
.sc-buffer, .sc-played {
height: @soundCloudScrubberPlayingHeight;
position: absolute;
top: 0;
width: 0;
.transition(@soundCloudScrubberPlayingTransition);
}
.sc-time-span {
height: @soundCloudScrubberTimeSpanHeight;
margin: @soundCloudScrubberTimeSpanMargin;
position: relative;
}
.sc-time-indicators {
position: absolute;
right: @soundCloudScrubberTimeIndicatorRightSpacing;
top: @soundCloudScrubberTimeIndicatorTopSpacing;
}
}

.sc-player:hover .sc-scrubber, .sc-player.playing .sc-scrubber {
display: block;
left: @soundCloudPlayerHoverLeftSpacing;
}

.sc-player-engine-container {
width: 1px;
height: 1px;
position: fixed;
top: 2px;
left: 2px;
}
56 changes: 56 additions & 0 deletions less/mixins.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*------------------------------------------------------------------------------------------------------------------------
Author: Sean Goresht
www: http://seangoresht.com/
github: https://github.com/srsgores
twitter: http://twitter.com/S.Goresht

Licensed under the GNU Public License

=============================================================================
Filename: mixins
=============================================================================

--------------------------------------------------------------------------------------------------------------------- */

/* =============================================================================
Sitewide mixins
========================================================================== */

// Transitions
.transition(@transition) {
-webkit-transition: @transition;
-moz-transition: @transition;
-ms-transition: @transition;
-o-transition: @transition;
transition: @transition;
}

#gradient {
.horizontal(@startColor: #555, @endColor: #333) {
background-color: @endColor;
background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
background-image: -webkit-gradient(linear, 0 0, 100% 0, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(to right, @startColor, @endColor); // Standard, IE10
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@startColor), argb(@endColor))); // IE9 and down
}
.vertical(@startColor: #555, @endColor: #333) {
background-color: @endColor;
background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(to bottom, @startColor, @endColor); // Standard, IE10
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor), argb(@endColor))); // IE9 and down
}
}

.box-shadow(@arguments) {
-webkit-box-shadow: @arguments; // iOS <4.3 & Android <4.1
-moz-box-shadow: @arguments;
-khtml-box-shadow: @arguments;
box-shadow: @arguments;
}
16 changes: 16 additions & 0 deletions less/structure.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*------------------------------------------------------------------------------------------------------------------------
Author: Sean Goresht
www: http://seangoresht.com/
github: https://github.com/srsgores
twitter: http://twitter.com/S.Goresht

Licensed under the GNU Public License

=============================================================================
Filename: structure
=============================================================================
Contains structure for custom soundcloud player.
--------------------------------------------------------------------------------------------------------------------- */
@import "variables";
@import "mixins";
@import "base";
Loading