File tree Expand file tree Collapse file tree 5 files changed +78
-77
lines changed
packages/column-components/stories Expand file tree Collapse file tree 5 files changed +78
-77
lines changed Original file line number Diff line number Diff line change 1- import h , { compose } from "@macrostrat/hyper" ;
1+ import hyper , { compose } from "@macrostrat/hyper" ;
22import {
33 ColumnProvider ,
44 ColumnSVG ,
@@ -17,7 +17,9 @@ import {
1717 TimescaleOrientation ,
1818 IncreaseDirection ,
1919} from "@macrostrat/timescale" ;
20- import "./measured-section.sass" ;
20+ import styles from "./measured-section.module.sass" ;
21+
22+ const h = hyper . styled ( styles ) ;
2123
2224function patternPath ( id ) {
2325 return `../../../deps/geologic-patterns/assets/svg/${ id } .svg` ;
Original file line number Diff line number Diff line change 1+ // :global
2+ // @require "./imported"
3+
4+ @use " sass:color"
5+
6+ :global
7+
8+ .measured-section
9+ display : flex
10+ flex-direction : row
11+ .timescale
12+ margin-top : 30px
13+ .spacer
14+ flex-grow : 2
15+
16+ .column-array
17+ display : flex
18+ flex-direction : row
19+ padding : 1em
20+ .spacer
21+ flex-grow : 2
22+
23+ .timescale
24+ margin-top : 30px
25+
26+ .labeled-unit div .unit-overlay
27+ font-size : 14px
28+ text-align : center
29+
30+ g .unit
31+ rect .unit
32+ stroke-width : 1.5px
33+
34+ g .lithology-column use .frame
35+ stroke : black
36+
37+ @media (prefers-color-scheme : dark )
38+ .lithology-column .frame
39+ stroke : white
40+ g .inner
41+ pattern : image
42+ filter : invert (100% )
43+
44+ .column.age-axis
45+ width : 55px
46+
47+ .column .tick text
48+ font-size : 14px
49+
50+ .column
51+ flex : 0
52+ .age-axis-label
53+ font-size : 14px
54+
55+ .map-area
56+ height : 220px
57+
58+ @mixin interval($color)
59+ & >.interval-box
60+ margin : 0px
61+ background-color : color .adjust($color , $lightness : 50% )
62+ border : 2px solid color .adjust($color , $lightness : 10% ) !important
63+ .interval-label
64+ color : color .adjust($color , $lightness : -30% )
65+
66+ .interval
67+ & .Blueflower
68+ @include interval (dodgerblue )
69+ & .Gametrail
70+ @include interval (#c0ddc6 )
71+ & .Rackla
72+ @include interval (#aaa )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import h from "@macrostrat/hyper";
22import { ColumnDivision , ColumnSurface } from "@macrostrat/column-components" ;
33import { BaseUnit } from "@macrostrat/api-types" ;
44import { IUnit } from "@macrostrat/column-views" ;
5- import "./measured-section.sass" ;
5+ import "./measured-section.module. sass" ;
66
77import { MeasuredSection } from "./base-section" ;
88
Original file line number Diff line number Diff line change 55 ParameterIntervals ,
66} from "@macrostrat/column-components" ;
77import { BaseUnit } from "@macrostrat/api-types" ;
8- import "./measured-section.sass" ;
8+ import "./measured-section.module. sass" ;
99import zebraNappeIntervals from "./naukluft-intervals.json" ;
1010import namaIntervals from "./nama-intervals.json" ;
1111import "./zebra-nappe.sass" ;
You can’t perform that action at this time.
0 commit comments