Skip to content

Commit 8223bbc

Browse files
feat: Enhance CSS styles and integrate clipboard script dependencies
- Added new utility classes for z-index, margin, and text decoration in the CSS file to improve layout flexibility. - Updated the daily tests detail HTML to include a helper for clipboard script dependencies, streamlining the script management. - Introduced responsive design adjustments for various elements to enhance user experience across different screen sizes.
1 parent 446cecf commit 8223bbc

2 files changed

Lines changed: 79 additions & 2 deletions

File tree

css/simba.css

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@
395395
.left-1\/2 {
396396
left: calc(1/2 * 100%);
397397
}
398+
.z-1 {
399+
z-index: 1;
400+
}
398401
.z-10 {
399402
z-index: 10;
400403
}
@@ -638,6 +641,9 @@
638641
.mr-2 {
639642
margin-right: calc(var(--spacing) * 2);
640643
}
644+
.-mb-2 {
645+
margin-bottom: calc(var(--spacing) * -2);
646+
}
641647
.-mb-14 {
642648
margin-bottom: calc(var(--spacing) * -14);
643649
}
@@ -3056,6 +3062,12 @@
30563062
top: calc(var(--spacing) * 1);
30573063
}
30583064
}
3065+
.after\:top-1\/2 {
3066+
&::after {
3067+
content: var(--tw-content);
3068+
top: calc(1/2 * 100%);
3069+
}
3070+
}
30593071
.after\:top-2 {
30603072
&::after {
30613073
content: var(--tw-content);
@@ -3110,12 +3122,24 @@
31103122
z-index: 10;
31113123
}
31123124
}
3125+
.after\:mx-3 {
3126+
&::after {
3127+
content: var(--tw-content);
3128+
margin-inline: calc(var(--spacing) * 3);
3129+
}
3130+
}
31133131
.after\:ms-3 {
31143132
&::after {
31153133
content: var(--tw-content);
31163134
margin-inline-start: calc(var(--spacing) * 3);
31173135
}
31183136
}
3137+
.after\:hidden {
3138+
&::after {
3139+
content: var(--tw-content);
3140+
display: none;
3141+
}
3142+
}
31193143
.after\:inline-block {
31203144
&::after {
31213145
content: var(--tw-content);
@@ -3628,6 +3652,13 @@
36283652
}
36293653
}
36303654
}
3655+
.hover\:decoration-2 {
3656+
&:hover {
3657+
@media (hover: hover) {
3658+
text-decoration-thickness: 2px;
3659+
}
3660+
}
3661+
}
36313662
.hover\:shadow-xs {
36323663
&:hover {
36333664
@media (hover: hover) {
@@ -3790,6 +3821,11 @@
37903821
text-decoration-line: underline;
37913822
}
37923823
}
3824+
.focus\:decoration-2 {
3825+
&:focus {
3826+
text-decoration-thickness: 2px;
3827+
}
3828+
}
37933829
.focus\:opacity-80 {
37943830
&:focus {
37953831
opacity: 80%;
@@ -4192,6 +4228,12 @@
41924228
display: table-cell;
41934229
}
41944230
}
4231+
.sm\:size-6 {
4232+
@media (width >= 40rem) {
4233+
width: calc(var(--spacing) * 6);
4234+
height: calc(var(--spacing) * 6);
4235+
}
4236+
}
41954237
.sm\:w-11\/12 {
41964238
@media (width >= 40rem) {
41974239
width: calc(11/12 * 100%);
@@ -4506,6 +4548,11 @@
45064548
text-align: end;
45074549
}
45084550
}
4551+
.sm\:text-start {
4552+
@media (width >= 40rem) {
4553+
text-align: start;
4554+
}
4555+
}
45094556
.sm\:text-3xl {
45104557
@media (width >= 40rem) {
45114558
font-size: var(--text-3xl);
@@ -4596,6 +4643,14 @@
45964643
}
45974644
}
45984645
}
4646+
.sm\:after\:block {
4647+
@media (width >= 40rem) {
4648+
&::after {
4649+
content: var(--tw-content);
4650+
display: block;
4651+
}
4652+
}
4653+
}
45994654
.sm\:first\:ms-0 {
46004655
@media (width >= 40rem) {
46014656
&:first-child {
@@ -4653,6 +4708,15 @@
46534708
}
46544709
}
46554710
}
4711+
.sm\:hover\:bg-stone-100 {
4712+
@media (width >= 40rem) {
4713+
&:hover {
4714+
@media (hover: hover) {
4715+
background-color: var(--color-stone-100);
4716+
}
4717+
}
4718+
}
4719+
}
46564720
.sm\:focus\:bg-stone-100 {
46574721
@media (width >= 40rem) {
46584722
&:focus {
@@ -6363,6 +6427,20 @@
63636427
background-color: var(--color-white);
63646428
}
63656429
}
6430+
.hs-dropdown-open\:visible {
6431+
&.hs-dropdown-menu.open {
6432+
visibility: visible;
6433+
}
6434+
.hs-dropdown.open>& {
6435+
visibility: visible;
6436+
}
6437+
.hs-dropdown.open>.hs-dropdown-toggle & {
6438+
visibility: visible;
6439+
}
6440+
.hs-dropdown.open>.hs-dropdown-menu>& {
6441+
visibility: visible;
6442+
}
6443+
}
63666444
.hs-dropdown-open\:-rotate-180 {
63676445
&.hs-dropdown-menu.open {
63686446
rotate: calc(180deg * -1);

src/simba/mentor/daily_tests/detail/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@
3131
{% endblock content %}
3232

3333
{% block extra_scripts %}
34-
<script src="https://preline.co/assets/vendor/clipboard/dist/clipboard.min.js"></script>
35-
<script src="https://preline.co/assets/js/hs-copy-clipboard-helper.js"></script>
34+
{% include 'src/simba/helpers/clipboard_script_dependencies.html' %}
3635
{% endblock extra_scripts %}

0 commit comments

Comments
 (0)