Skip to content

Commit dd7753d

Browse files
authored
Merge pull request #148 from bootdotdev/2794_hb_new_ui
Update UI to match the main site
2 parents cb22cd2 + 44689d0 commit dd7753d

25 files changed

+657
-278
lines changed

assets/css/styles.css

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,45 @@
1010
--blue-500: hsl(235, 86%, 65%);
1111
--blue-600: hsl(235, 89%, 57%);
1212

13-
--gray-50: hsl(235, 10%, 97%);
14-
--gray-100: hsl(235, 9%, 94%);
15-
--gray-400: hsl(235, 3%, 62%);
16-
--gray-500: hsl(235, 1%, 50%);
17-
--gray-700: hsl(235, 5%, 24%);
18-
--gray-750: hsl(235, 6%, 18%);
19-
--gray-800: hsl(236, 7%, 13%);
20-
--gray-900: hsl(240, 9%, 6%);
21-
--gray-950: hsl(240, 10%, 3%);
13+
--gray-50: #f5f7f9;
14+
--gray-100: #e8ecf1;
15+
--gray-150: #dde3eb;
16+
--gray-200: #d7dee6;
17+
--gray-250: #c4d1db;
18+
--gray-300: #b2c1d0;
19+
--gray-350: #a3b3c7;
20+
--gray-400: #919dab;
21+
--gray-450: #818a98;
22+
--gray-500: #6e7888;
23+
--gray-550: #606877;
24+
--gray-600: #4e5564;
25+
--gray-650: #454b59;
26+
--gray-700: #3c424f;
27+
--gray-750: #323845;
28+
--gray-800: #252936;
29+
--gray-850: #202330;
30+
--gray-900: #181b26;
31+
--gray-950: #121620;
32+
33+
--yellow-50: #fffaeb;
34+
--yellow-100: #fef4d1;
35+
--yellow-150: #fde9b0;
36+
--yellow-200: #fddf8f;
37+
--yellow-250: #fcd570;
38+
--yellow-300: #f6bd45;
39+
--yellow-350: #eeb23f;
40+
--yellow-400: #e5ae3c;
41+
--yellow-450: #dca336;
42+
--yellow-500: #efbb03;
43+
--yellow-550: #d69e02;
44+
--yellow-600: #c18500;
45+
--yellow-650: #a96f06;
46+
--yellow-700: #905a0a;
47+
--yellow-750: #7b4d0c;
48+
--yellow-800: #64400e;
49+
--yellow-850: #4e3310;
50+
--yellow-900: #3b2710;
51+
--yellow-950: #2a1c0c;
2252

2353
--top-nav-bar-height: 56px;
2454
}
@@ -96,12 +126,12 @@ main ol {
96126
}
97127

98128
main a {
99-
color: var(--blue-400);
129+
color: inherit;
100130
text-decoration: underline;
101131
}
102132

103133
main a:hover {
104-
color: var(--blue-300);
134+
opacity: 0.7;
105135
}
106136

107137
main code {

assets/css/syntax.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Background */
22
.bg {
33
color: #f8f8f2;
4-
background-color: var(--gray-750);
4+
background-color: var(--gray-800);
55
}
66

77
/* PreWrapper */

assets/css/tail-in.css

Lines changed: 66 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,79 @@
44

55
@layer components {
66
.textlink {
7-
@apply hover:text-blue-300 text-blue-400 underline cursor-pointer;
8-
}
9-
.glassmorph {
10-
@apply rounded border border-gray-500 bg-glassmorph;
11-
}
12-
.bg-glassmorph {
13-
@apply bg-gradient-to-br from-gray-750/60 to-black/60 bg-clip-padding backdrop-filter backdrop-blur-sm;
7+
@apply cursor-pointer underline hover:opacity-70;
148
}
9+
1510
.block-button-primary {
16-
@apply active-scale-103 relative block origin-bottom overflow-hidden rounded px-4 py-2 text-white shadow-md focus:outline-none disabled:scale-100 disabled:cursor-not-allowed bg-gradient-to-br from-blue-500 to-blue-550 hover:from-blue-550 hover:to-blue-600 disabled:from-blue-350 disabled:to-blue-450;
11+
@apply relative block origin-bottom overflow-hidden rounded-full border text-center text-sm text-gray-950 font-semibold bg-blend-soft-light px-4 py-2 shadow-md focus:outline-none disabled:scale-100 disabled:cursor-not-allowed btn-texture-yellow;
1712
}
13+
1814
.block-button-secondary {
19-
@apply active-scale-103 relative block origin-bottom overflow-hidden rounded px-4 py-2 text-white shadow-md focus:outline-none disabled:scale-100 disabled:cursor-not-allowed bg-gradient-to-br from-gray-650 to-gray-700 hover:from-gray-700 hover:to-gray-750 disabled:from-gray-500 disabled:to-gray-600;
15+
@apply relative block origin-bottom overflow-hidden rounded-full border text-center text-sm text-gray-950 font-semibold bg-blend-soft-light px-4 py-2 shadow-md focus:outline-none disabled:scale-100 disabled:cursor-not-allowed btn-texture-gray;
2016
}
2117
}
2218

23-
.active-scale-103 {
24-
transition: transform 0.15s;
19+
.bg-black-textured {
20+
background-image: url('/img/800/bg-black.webp');
21+
background-size: cover;
22+
background-repeat: no-repeat;
23+
}
24+
25+
.bg-blue-textured {
26+
background-image: url('/img/800/maptexture.webp'), url('/img/800/bg-blue.webp');
27+
background-blend-mode: overlay;
28+
background-size: cover;
29+
background-repeat: no-repeat;
30+
}
31+
32+
.bg-wooden-divider {
33+
background-image: url('/img/800/woodendividergem.webp');
34+
}
35+
36+
.btn-texture-yellow {
37+
background-image: url("/img/800/smalltexture.webp"),
38+
radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%),
39+
linear-gradient(to bottom,
40+
var(--yellow-350),
41+
var(--yellow-450),
42+
var(--yellow-550));
43+
border-color: var(--yellow-200);
44+
}
45+
46+
.btn-texture-yellow:hover {
47+
background-image: url("/img/800/smalltexture.webp"),
48+
radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 30%),
49+
linear-gradient(to bottom,
50+
var(--yellow-500),
51+
var(--yellow-600),
52+
var(--yellow-700));
53+
border-color: var(--yellow-450);
54+
}
55+
56+
.btn-texture-yellow:disabled {
57+
background-image: url("/img/800/smalltexture.webp"),
58+
radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%),
59+
linear-gradient(to bottom, var(--yellow-650), var(--yellow-850));
60+
border-color: var(--yellow-550);
61+
}
62+
63+
.btn-texture-gray {
64+
background-image: url("/img/800/smalltexture.webp"),
65+
radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%),
66+
linear-gradient(to bottom, var(--gray-250), var(--gray-350));
67+
border-color: var(--gray-200);
68+
}
69+
70+
.btn-texture-gray:hover {
71+
background-image: url("/img/800/smalltexture.webp"),
72+
radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 30%),
73+
linear-gradient(to bottom, var(--gray-350), var(--gray-500));
74+
border-color: var(--gray-350);
2575
}
2676

27-
.active-scale-103:hover {
28-
transform: scale(1.03);
77+
.btn-texture-gray:disabled {
78+
background-image: url("/img/800/smalltexture.webp"),
79+
radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%),
80+
linear-gradient(to bottom, var(--gray-450), var(--gray-550));
81+
border-color: var(--gray-450);
2982
}

0 commit comments

Comments
 (0)