summaryrefslogtreecommitdiff
path: root/src/scss
diff options
context:
space:
mode:
authorAdam Carpenter <atc@53hor.net>2020-04-23 18:01:31 -0400
committerAdam Carpenter <atc@53hor.net>2020-04-23 18:01:31 -0400
commitac6ea8dc4da8be20f69088ee71f32b05339c910c (patch)
tree0d34ff097a3cf076b64604a33d29f36de092b89a /src/scss
parent2291e6fb5ad6e51669ad1147f18aa10ea603488a (diff)
downloadcarpentertutoring-ac6ea8dc4da8be20f69088ee71f32b05339c910c.tar.xz
carpentertutoring-ac6ea8dc4da8be20f69088ee71f32b05339c910c.zip
added temporary flip cards, ran through htmlhint and prettier
Diffstat (limited to 'src/scss')
-rw-r--r--src/scss/flip-card.scss31
-rw-r--r--src/scss/index.scss2
2 files changed, 33 insertions, 0 deletions
diff --git a/src/scss/flip-card.scss b/src/scss/flip-card.scss
new file mode 100644
index 0000000..1f9af5b
--- /dev/null
+++ b/src/scss/flip-card.scss
@@ -0,0 +1,31 @@
+.flip-card {
+ perspective: 1000px;
+}
+
+.flip-card-inner {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ transition: transform 0.8s;
+ transform-style: preserve-3d;
+}
+
+.flip-card:hover .flip-card-inner {
+ transform: rotateY(180deg);
+}
+
+.flip-card-front, .flip-card-back {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ -webkit-backface-visibility: hidden;
+ backface-visibility: hidden;
+}
+
+.flip-card-front {
+}
+
+.flip-card-back {
+ transform: rotateY(180deg);
+}
+
diff --git a/src/scss/index.scss b/src/scss/index.scss
index 2b9aec2..59aac49 100644
--- a/src/scss/index.scss
+++ b/src/scss/index.scss
@@ -122,3 +122,5 @@ $body-font-size: 1.25rem;
body {
background-image: url("/bg.png");
}
+
+@import "./flip-card.scss";