-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from hcodes/mobile_support
Mobile support for examples
- Loading branch information
Showing
16 changed files
with
438 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,147 @@ | ||
html, body { | ||
html, | ||
body | ||
{ | ||
font-family: Arial; | ||
font-size: 16px; | ||
background: black; | ||
|
||
margin: 0; | ||
padding: 0; | ||
|
||
border: 0; | ||
background: black; | ||
} | ||
|
||
.ambilight-control { | ||
.ambilight-control | ||
{ | ||
font-size: 12px; | ||
line-height: 12px; | ||
|
||
position: fixed; | ||
z-index: 100; | ||
top: 21px; | ||
left: 50%; | ||
|
||
transform: translateX(-50%); | ||
top: 21px; | ||
text-align: center; | ||
white-space: nowrap; | ||
|
||
color: #999; | ||
font-size: 12px; | ||
line-height: 12px; | ||
text-align: center; | ||
} | ||
|
||
.ambilight-control h1 { | ||
.ambilight-control h1 | ||
{ | ||
font-weight: normal; | ||
|
||
margin: 0 0 15px 0; | ||
padding: 0; | ||
|
||
color: #aaa; | ||
font-weight: normal; | ||
} | ||
|
||
.ambilight-control label { | ||
.ambilight-control label | ||
{ | ||
margin: 0; | ||
padding: 0; | ||
margin-right: 8px; | ||
padding: 0; | ||
} | ||
|
||
.ambilight-control input { | ||
margin: 0 2px 0 0; | ||
.ambilight-control input | ||
{ | ||
font-size: 12px; | ||
line-height: 12px; | ||
|
||
margin: 0 2px 0 0; | ||
|
||
vertical-align: top; | ||
} | ||
|
||
.video-container { | ||
.video-container | ||
{ | ||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
left: 50%; | ||
|
||
transform: translate(-50%, -50%); | ||
} | ||
|
||
video { | ||
display: block; | ||
video | ||
{ | ||
position: relative; | ||
border: 10px solid black; | ||
outline: 1px solid rgba(255, 255, 255, 0.1); | ||
padding: 0; | ||
z-index: 100; | ||
|
||
display: block; | ||
|
||
margin: 0; | ||
padding: 0; | ||
|
||
border: 10px solid black; | ||
outline: 1px solid rgba(255, 255, 255, .1); | ||
background: black; | ||
z-index: 100; | ||
} | ||
|
||
.video-shadow { | ||
.video-shadow | ||
{ | ||
position: absolute; | ||
} | ||
|
||
.video-shadow_left { | ||
.video-shadow_left | ||
{ | ||
left: 0; | ||
|
||
border-radius: 100% 0 0 100%; | ||
} | ||
|
||
.video-shadow_right { | ||
.video-shadow_right | ||
{ | ||
right: 0; | ||
|
||
border-radius: 0 100% 100% 0; | ||
} | ||
|
||
.video-shadow_top { | ||
.video-shadow_top | ||
{ | ||
top: 0; | ||
|
||
border-radius: 100% 100% 0 0; | ||
} | ||
|
||
.video-shadow_bottom { | ||
.video-shadow_bottom | ||
{ | ||
bottom: 0; | ||
|
||
border-radius: 0 0 100% 100%; | ||
} | ||
|
||
.copyright { | ||
.copyright | ||
{ | ||
font-family: Arial; | ||
font-size: 12px; | ||
|
||
position: fixed; | ||
left: 50%; | ||
margin-left: -5em; | ||
bottom: 5px; | ||
left: 50%; | ||
|
||
font-size: 12px; | ||
font-family: Arial; | ||
margin-left: -5em; | ||
} | ||
|
||
.hint { | ||
.hint | ||
{ | ||
font-size: 16px; | ||
|
||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
left: 50%; | ||
|
||
margin-top: 200px; | ||
margin-left: -320px; | ||
|
||
color: #aaa; | ||
font-size: 16px; | ||
} | ||
|
||
.copyright:link, | ||
.copyright:visited, | ||
.copyright:active, | ||
.copyright:hover { | ||
.copyright:hover | ||
{ | ||
color: #555; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,34 @@ | ||
html, body { | ||
html, | ||
body | ||
{ | ||
font-family: Arial; | ||
font-size: 16px; | ||
background: black; | ||
|
||
margin: 0; | ||
padding: 0; | ||
|
||
border: 0; | ||
background: black; | ||
} | ||
|
||
img { | ||
img | ||
{ | ||
width: 100%; | ||
} | ||
|
||
.item { | ||
.item | ||
{ | ||
float: left; | ||
width: 400px; | ||
padding: 70px; | ||
|
||
box-sizing: border-box; | ||
width: 500px; | ||
max-width: 100%; | ||
padding: 50px; | ||
|
||
transition: background-color .5s ease; | ||
} | ||
|
||
.item__text { | ||
.item__text | ||
{ | ||
padding: 10px; | ||
height: 3em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,51 @@ | ||
html, body { | ||
html, | ||
body | ||
{ | ||
font-family: Arial; | ||
font-size: 16px; | ||
background: black; | ||
|
||
margin: 0; | ||
padding: 0; | ||
|
||
border: 0; | ||
background: black; | ||
} | ||
|
||
.item { | ||
.item | ||
{ | ||
float: left; | ||
|
||
box-sizing: border-box; | ||
width: 400px; | ||
max-width: 100%; | ||
padding: 30px; | ||
|
||
transition: border-color .5s ease; | ||
} | ||
|
||
.item__image-container { | ||
outline: 1px solid rgba(255, 255, 255, 0.08); | ||
border: 40px solid #000; | ||
.item__image-container | ||
{ | ||
transition: all .3s ease; | ||
|
||
border: 40px solid #000; | ||
outline: 1px solid rgba(255, 255, 255, .08); | ||
} | ||
|
||
.item__image { | ||
.item__image | ||
{ | ||
display: block; | ||
|
||
width: 100%; | ||
outline: 1px solid rgba(255, 255, 255, 0.08); | ||
|
||
outline: 1px solid rgba(255, 255, 255, .08); | ||
} | ||
|
||
.item__text { | ||
.item__text | ||
{ | ||
position: relative; | ||
z-index: 10; | ||
|
||
padding: 10px; | ||
height: 3em; | ||
|
||
color: #fff; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,41 @@ | ||
html, body { | ||
html, | ||
body | ||
{ | ||
font-family: Arial; | ||
font-size: 16px; | ||
background: black; | ||
|
||
margin: 0; | ||
padding: 0; | ||
|
||
border: 0; | ||
background: black; | ||
} | ||
|
||
img { | ||
img | ||
{ | ||
width: 100%; | ||
border-radius: 50px; | ||
|
||
transition: all .3s ease; | ||
|
||
border-radius: 50px; | ||
} | ||
|
||
.item { | ||
.item | ||
{ | ||
float: left; | ||
width: 400px; | ||
|
||
box-sizing: border-box; | ||
width: 540px; | ||
max-width: 100%; | ||
padding: 70px; | ||
|
||
transition: background-color .5s ease; | ||
} | ||
|
||
.item__text { | ||
position: relative; | ||
z-index: 10; | ||
padding: 10px; | ||
height: 3em; | ||
.item__text | ||
{ | ||
position: relative; | ||
z-index: 10; | ||
|
||
padding: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,48 @@ | ||
html, body { | ||
html, | ||
body | ||
{ | ||
font-family: Arial; | ||
font-size: 16px; | ||
background: black; | ||
|
||
margin: 0; | ||
padding: 0; | ||
|
||
border: 0; | ||
background: black; | ||
} | ||
|
||
img { | ||
img | ||
{ | ||
width: 100%; | ||
border-radius: 50px; | ||
|
||
transition: all .3s ease; | ||
|
||
border-radius: 50px; | ||
} | ||
|
||
img:hover { | ||
opacity: .8; | ||
img:hover | ||
{ | ||
transform: translateY(10px); | ||
|
||
opacity: .8; | ||
} | ||
|
||
.item { | ||
.item | ||
{ | ||
float: left; | ||
width: 400px; | ||
|
||
box-sizing: border-box; | ||
width: 540px; | ||
max-width: 100%; | ||
padding: 70px; | ||
|
||
transition: background-color .5s ease; | ||
} | ||
|
||
.item__text { | ||
.item__text | ||
{ | ||
position: relative; | ||
z-index: 10; | ||
|
||
padding: 10px; | ||
height: 3em; | ||
} |
Oops, something went wrong.