Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.
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
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Official project site: https://www.chrome.com/cubelab
Demo: http://seanfrasure.github.io/cuber/cuber/index.html

*If there are any questions please feel free to make a new issue*

4 changes: 2 additions & 2 deletions cuber/build/cuber.js
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ self.console = self.console || {

if( self.cancelAnimationFrame === undefined && self['clearTimeout'] !== undefined ) {

self.cancelAnimationFrame = function ( id ) { self.clearTimeout( id ) };
self.cancelAnimationFrame = function ( id ) { self.clearTimeout( id ); };

}

Expand Down Expand Up @@ -5806,7 +5806,7 @@ THREE.PerspectiveCamera.prototype.setLens = function ( focalLength, frameHeight
this.fov = 2 * THREE.Math.radToDeg( Math.atan( frameHeight / ( focalLength * 2 ) ) );
this.updateProjectionMatrix();

}
};


/**
Expand Down
97 changes: 83 additions & 14 deletions cuber/build/styles/cube.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@
position: absolute;
width: 1em;
height: 1em;
background-color: #000;
background-color: rgba(0, 0, 0, 0.158);
text-align: center;


-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-backface-visibility: visible;
-moz-backface-visibility: visible;
-o-backface-visibility: visible;
backface-visibility: visible;


padding: 0.05em;
Expand All @@ -109,7 +109,7 @@
are momentarily visible as the cube twists.

*/
.cube /*.cubelet >*/ .face.faceIntroverted { background-color: #000; }
.cube /*.cubelet >*/ .face.faceIntroverted { background-color: rgba(3, 59, 63, 0.158); }



Expand Down Expand Up @@ -199,23 +199,76 @@

}

.playing {
box-shadow: inset 0 0 100px 100px rgba( 255, 255, 255, 0.5 );
}

.cube .sticker.red { background: #DC422F; }
.cube .sticker.white { background: #F3F3F3; }
.cube .sticker.blue { background: #3D81F6; }
.cube .sticker.green { background: #009D54; }
.cube .sticker.orange { background: #E87000; }
.cube .sticker.yellow { background: #F5B400; }
.cube .sticker.red { background: rgba(26, 26, 26, 0.9); }
.cube .sticker.white { background: black; }
.cube .sticker.blue { background: blue; }
.cube .sticker.green { background: green; }
.cube .sticker.orange { background: rgb(216, 216, 216, 0.9); }
.cube .sticker.yellow { background: yellow; }

.cube .sticker.stickerLogo {
/* .cube .sticker.stickerLogo {

background: #F3F3F3 url( "../media/rubiksLogoClassic.png" );
background: #0eb16d url( "../media/rubiksLogoClassic.png" );
background-size: 100% 100%;
background-repeat: none;
} */

[sticker~="10-1"]{
background: rgba(151, 207, 211, 0.9) !important;
}

[sticker~="16-3"]{
background: rgba(19, 66, 70, 0.9) !important;
}

[sticker~="0-0"],
[sticker~="1-0"],
[sticker~="2-0"],
[sticker~="2-2"],
[sticker~="11-2"],
[sticker~="20-2"],
[sticker~="20-5"],
[sticker~="19-5"],
[sticker~="18-5"],
[sticker~="18-4"],
[sticker~="9-4"],
[sticker~="0-4"]{
background: rgb(146, 146, 146, 0.9) !important;
}

[sticker~="3-0"],
[sticker~="4-0"],
[sticker~="5-0"],
[sticker~="5-2"],
[sticker~="14-2"],
[sticker~="23-2"],
[sticker~="23-5"],
[sticker~="22-5"],
[sticker~="21-5"],
[sticker~="21-4"],
[sticker~="12-4"],
[sticker~="3-4"]{
background: rgb(87, 87, 87 , 0.9) !important;
}

[sticker~="6-0"],
[sticker~="7-0"],
[sticker~="8-0"],
[sticker~="8-2"],
[sticker~="17-2"],
[sticker~="26-2"],
[sticker~="26-5"],
[sticker~="25-5"],
[sticker~="24-5"],
[sticker~="24-4"],
[sticker~="15-4"],
[sticker~="6-4"]{
background: rgb(56, 56, 56 , 0.9) !important;
}

/*

Expand Down Expand Up @@ -290,3 +343,19 @@
-o-backface-visibility: hidden;
backface-visibility: hidden;*/
}

.buttons {
flex-direction: column;
font-size: 32px;
position: absolute;
bottom: 280px;
display: flex;
justify-content: center;
border-right: 5px solid black;
padding: 15px;
}

.buttons div {
margin-left: 16px;
margin-right: 16px;
}
Loading