Skip to content

Commit

Permalink
Was accidently using scss in css causing screenshots of graphs to fail
Browse files Browse the repository at this point in the history
I think nested css works in the very latest browsers which is why it worked for me but when screenshotting it would use an older browser where it's not supported. Well that was very confusing.
  • Loading branch information
mlandauer committed Feb 19, 2024
1 parent bdc9913 commit d510b46
Showing 1 changed file with 37 additions and 38 deletions.
75 changes: 37 additions & 38 deletions app/assets/stylesheets/application.tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,29 @@
}

/* TODO: Get rid of this ugly mess for styling the charts on the authority detail page as soon as we can */
.chart {
text {
@apply fill-navy;
font-size: .875em;
}
.chart text {
@apply fill-navy;
font-size: .875em;
}

.chart-area {
@apply fill-[#d7e4f3];
}
.chart .chart-area {
@apply fill-[#d7e4f3];
}

.y-axis,
.x-axis {
line {
@apply stroke-1 stroke-light-grey2;
}
.chart .x-axis line {
@apply stroke-1 stroke-light-grey2;
}

.domain {
@apply hidden;
}
}
.chart .y-axis line {
@apply stroke-1 stroke-light-grey2;
}

.chart .x-axis .domain {
@apply hidden;
}

.chart .y-axis .domain {
@apply hidden;
}

.x-axis-baseline {
Expand All @@ -51,27 +54,25 @@

.chart-line {
@apply fill-none stroke-[#346eb0] stroke-2;
}

&.chart-clipping-below {
display: none;
}
.chart-line.chart-clipping-below {
display: none;
}

.chart-with-callout {
svg {
width: 100%;
height: auto;
.chart-with-callout svg {
width: 100%;
height: auto;

@apply sm:float-left sm:clear-left sm:w-4/5;
}
@apply sm:float-left sm:clear-left sm:w-4/5;
}

.chart-callout {
@apply sm:float-right sm:w-1/5;
}
.chart-with-callout .chart-callout {
@apply sm:float-right sm:w-1/5;
}

text {
@apply text-xs;
}
.chart-with-callout text {
@apply text-xs;
}

.chart-callout-heading {
Expand All @@ -88,12 +89,10 @@
pointer-events: all;
}

.focus {
circle {
stroke: #346eb0;
stroke-width: 2px;
fill: transparent;
}
.focus circle {
stroke: #346eb0;
stroke-width: 2px;
fill: transparent;
}

/*
Expand Down

0 comments on commit d510b46

Please sign in to comment.