Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / applications / storybook / src / app / index.scss
blob8b4eb681f70d16967eea0160b427e2c38ef4bffa
1 @import '~@proton/colors/themes/dist/duotone.theme.css';
2 @import '~@proton/styles/scss/proton-ui-storybook';
4 body {
5         overflow: scroll !important;
6         color: inherit;
9 pre code {
10         line-height: 1.5 !important;
13 // dirty fixes while whaiting to have better solutions
14 .language-markup code {
15         inline-size: 100%;
16         white-space: pre-wrap;
19 .icon-ko,
20 .icon-ok {
21         &::after {
22                 position: absolute;
23                 inset-block-start: 0.75em;
24                 inset-inline-end: 0;
25                 padding-block: 0;
26                 padding-inline: 0 0.5em;
27                 font-size: 2em;
28         }
31 .icon-ko::after {
32         content: '×';
33         color: var(--signal-danger);
36 .icon-ok::after {
37         content: '✔';
38         color: var(--signal-success);
41 .icon-ko button {
42         display: none; // don't copy shit!
45 table {
46         // table-layout: initial;
48         &.no-bg {
49                 tr {
50                         background: none !important;
51                 }
52         }
55 .sbdocs-h2 {
56         margin-block-start: 2em !important;
57         border: none !important;
60 // Fix weird margin on auto scroll
61 .docs-story > div {
62         margin: 0;
65 .icon-grid {
66         display: grid;
67         grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
68         gap: 1em;
71 .sbdocs-a {
72         &#{&} {
73                 @extend .link;
75                 color: var(--link-norm) !important;
76         }
79 // Theme support
80 .sbdocs:not(.bg-primary) {
81         background: var(--background-norm) !important;
82         color: var(--text-norm) !important;
85 .sbdocs-title {
86         color: var(--text-norm) !important;
89 .sbdocs-preview {
90         border-color: var(--border-weak) !important;
93 .docblock-code-toggle {
94         background: var(--background-strong) !important;
95         color: var(--text-norm) !important;
96         border-color: var(--border-weak) !important;
99 .docs-story > div:last-child {
100         background: none !important;
103 .sbdocs-preview > .os-host {
104         background: var(--background-strong) !important;
105         border: none !important;
106         box-shadow: none !important;
108         button,
109         a {
110                 color: var(--text-norm) !important;
111         }
114 .docblock-source {
115         color: black !important;
116         background: white !important;
117         border-color: var(--border-weak) !important;
119         .prismjs {
120                 background: white !important;
121         }
124 .docblock-argstable-head {
125         background: var(--background-strong) !important;
127         th {
128                 color: var(--text-norm) !important;
129         }
132 .docblock-argstable-body {
133         border: none !important;
135         tr {
136                 border-color: var(--border-weak) !important;
137         }
139         td {
140                 background: var(--background-weak) !important;
141                 color: var(--text-weak) !important;
142         }
145 .docblock-emptyblock {
146         color: var(--text-weak) !important;
147         border-color: var(--border-weak) !important;
150 // props content when multiple tabs are shown
151 #panel-tab-content {
152         background: none !important;
155 .docblock-colorpalette div {
156         color: var(--text-norm) !important;
159 .docblock-colorpalette [title^='var(--'] {
160         padding-block: 0;
161         padding-inline: 0.1rem;
162         font-size: 0.8em;
163         user-select: all;
166 body.sb-main-fullscreen::before {
167         position: fixed;
168         inset-block-end: 0;
169         display: block;
170         background: var(--primary);
171         color: var(--primary-contrast);
172         border-radius: var(--border-radius-sm);
173         font-size: 0.8em;
174         padding-block: 0;
175         padding-inline: 0.3em;
176         inset-inline-end: 0;
177         z-index: 12000;