|
80 | 80 | } |
81 | 81 |
|
82 | 82 | /* Details/Summary Styles */ |
83 | | -details { |
84 | | - border-radius: 8px; |
85 | | - margin: 1rem 0; |
86 | | - padding: 1rem; |
87 | | - border: 1px solid hsl(var(--border)); |
88 | | - background-color: hsl(var(--muted) / var(--un-bg-opacity, 1)) !important; |
89 | | - transition: background-color 0.2s ease, border-color 0.2s ease; |
90 | | -} |
91 | 83 |
|
92 | | -details summary { |
93 | | - font-weight: 700; |
94 | | - margin: 0; |
95 | | - display: flex; |
96 | | - align-items: center; |
97 | | - gap: 0.5rem; |
98 | | - cursor: pointer; |
99 | | - list-style: none; |
100 | | - color: hsl(var(--foreground)); |
101 | | - transition: color 0.2s ease; |
102 | | -} |
103 | | - |
104 | | -details summary::-webkit-details-marker { |
105 | | - display: none; |
106 | | -} |
107 | | - |
108 | | -details summary::before { |
109 | | - content: ''; /* No character content */ |
110 | | - display: inline-block; |
111 | | - width: 1em; /* Adjust size as needed */ |
112 | | - height: 1em; /* Adjust size as needed */ |
113 | | - margin-right: 0.5rem; |
114 | | - background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='hsl(240 10% 3.9%)' d='m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z'/></svg>"); |
115 | | - background-repeat: no-repeat; |
116 | | - background-position: center; |
117 | | - background-size: contain; |
118 | | - transition: background-image 0.2s ease; |
119 | | -} |
120 | | - |
121 | | -html.dark details summary::before { |
122 | | - background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='hsl(0 0% 98%)' d='m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z'/></svg>"); |
123 | | -} |
124 | | - |
125 | | - |
126 | | -details[open] summary::before { |
127 | | - transform: none; |
128 | | -} |
129 | | - |
130 | | -details .details-content { |
131 | | - margin-top: 1rem; |
132 | | - color: hsl(var(--muted-foreground)); |
133 | | -} |
134 | | - |
135 | | -details .details-content > :first-child { |
136 | | - margin-top: 0; |
137 | | -} |
138 | | -details .details-content > :last-child { |
139 | | - margin-bottom: 0; |
140 | | -} |
141 | 84 |
|
142 | 85 | /* inline code css*/ |
143 | 86 | .prose :where(:not(pre) > code):not(:where(.not-prose, .not-prose *)) { |
|
0 commit comments