Skip to content

Commit cb566aa

Browse files
committed
improve lookbook styles
1 parent 2765846 commit cb566aa

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

apps/lookbook/src/components/DemoCards.astro

+11-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Card from './Card.astro';
44
import TagCloudFilter from './TagCloudFilter.astro';
55
66
import lookbook from '../images/20221122-lookbook-white-fat.svg?url';
7-
import logo from '../images/twopoint5d.png?url';
7+
import logo from '../images/twopoint5d-glitch.png?url';
88
99
const {demos} = loadMetadataForDemos();
1010
---
@@ -29,17 +29,24 @@ const {demos} = loadMetadataForDemos();
2929
<style>
3030
main {
3131
margin: auto auto 3rem;
32-
padding: 1.5rem;
32+
padding: 80px 1.5rem 1.5rem;
3333
max-width: 120ch;
3434
}
3535
.lookbook-header {
36+
position: fixed;
37+
top: 0;
38+
left: 0;
39+
width: 100%;
40+
padding: 10px;
3641
margin: 0;
3742
display: flex;
38-
align-items: center;
43+
justify-content: center;
44+
background-color: rgba(13 15 20 / 80%);
45+
border-bottom: 1px solid #33353a;
46+
box-shadow: 0 0 10px #000;
3947
}
4048
.lookbook-header img.primary {
4149
max-height: 66px;
42-
margin-left: 1rem;
4350
}
4451
.lookbook-header img.secondary {
4552
filter: drop-shadow(0 0 2px #ccc) drop-shadow(0 0 15px #999);

apps/lookbook/src/layouts/Layout.astro

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ const {title} = Astro.props;
2121
</html>
2222

2323
<style lang="scss" is:global>
24-
$color-background: #252525;
25-
$color-primary: #afada5;
24+
$color-background: rgb(13 15 20); // #252525;
25+
$color-primary: #adafb4;
2626
$hue-shift: 10deg;
2727

2828
:root {
2929
--color-background: #{$color-background};
3030
--color-background-dark: #{darken($color-background, 5%)};
31-
--color-background-light: #{lighten($color-background, 5%)};
31+
--color-background-light: #{lighten($color-background, 10%)};
3232
--color-primary: #{$color-primary};
3333
--color-primary-darker: #{adjust-hue(darken($color-primary, 20%), -$hue-shift)};
3434
--color-primary-inactive: #{adjust-hue(darken($color-primary, 25%), -$hue-shift)};

0 commit comments

Comments
 (0)