Skip to content

Commit 49fb92e

Browse files
author
Pickra
committed
Built in functions
1 parent 0a23352 commit 49fb92e

File tree

4 files changed

+41
-13
lines changed

4 files changed

+41
-13
lines changed

images/wolverine.gif

26.7 KB
Loading

index.html

+3-11
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,9 @@
66
<link rel="stylesheet" href="css/main.css">
77
</head>
88
<body>
9-
<div class="spiderman-container">
10-
<div class="spiderman">
11-
<img src="images/spiderman.jpg" height="350" />
12-
<div class="description">
13-
<div class="header">
14-
Spider-man
15-
<a class="description-link" href="https://en.wikipedia.org/wiki/Spider-Man">stuff </a>
16-
<div>MOOOOOOOOAAAR!!!</div>
17-
</div>
18-
</div>
19-
</div>
9+
<div class="wolverine">
10+
<img src="images/wolverine.gif">
11+
<p class="wolverine-text">Wolverine</p>
2012
</div>
2113
</body>
2214
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
$base-color: #a83b24;
2+
$light-color: lighten($base-color, 20%);
3+
$dark-color: darken($base-color, 35%);
4+
5+
.old-light-dark {
6+
background-image: linear-gradient($light-color, $base-color, $dark-color);
7+
}
8+
9+
$light-color: scale_color($base-color, $alpha: -50%);
10+
$dark-color: scale_color($base-color, $saturation: -35%);
11+
12+
$cbc: complement($base-color);
13+
$clc: complement($light-color);
14+
$cdc: complement($dark-color);
15+
16+
.wolverine {
17+
text-align: center;
18+
background-image: linear-gradient($light-color, $base-color, $dark-color);
19+
20+
&:hover {
21+
background-image: linear-gradient($clc, $cbc, $cdc);
22+
.wolverine-text {
23+
color: transparentize(mix($base-color, yellow, 25%), .2);
24+
}
25+
}
26+
27+
&-text {
28+
font-size: 1.5rem;
29+
padding-bottom: 1rem;
30+
color: mix($base-color, yellow, 75%);
31+
}
32+
33+
img {
34+
margin-top: 3rem;
35+
border-radius: 50%;
36+
}
37+
}

scss/main.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
@import "variables/variables";
2-
@import "variables/vary";
1+
@import "built-in-functions/built-in-functions";

0 commit comments

Comments
 (0)