2024-02-02 09:05:04 -06:00
|
|
|
@tailwind base;
|
|
|
|
@tailwind components;
|
|
|
|
@tailwind utilities;
|
|
|
|
|
2024-02-12 17:20:50 -05:00
|
|
|
/* Reset rules, default styles applied to plain HTML */
|
|
|
|
@layer base {
|
2024-02-29 03:07:26 +05:30
|
|
|
details > summary::-webkit-details-marker {
|
|
|
|
@apply hidden;
|
|
|
|
}
|
2024-06-19 06:52:08 -04:00
|
|
|
|
|
|
|
details > summary {
|
|
|
|
@apply list-none;
|
|
|
|
}
|
2024-02-12 17:20:50 -05:00
|
|
|
}
|
|
|
|
|
2024-02-09 15:29:31 +00:00
|
|
|
@layer components {
|
|
|
|
.form-field {
|
2024-06-07 16:56:30 -04:00
|
|
|
@apply relative rounded-md border bg-white border-alpha-black-100 shadow-xs;
|
|
|
|
@apply focus-within:border-gray-900 focus-within:shadow-none focus-within:ring-4 focus-within:ring-gray-100;
|
2024-02-09 15:29:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__label {
|
2024-06-07 16:56:30 -04:00
|
|
|
@apply block px-3 pt-2 pb-0 text-xs text-gray-500;
|
2024-02-09 15:29:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__input {
|
2024-06-07 16:56:30 -04:00
|
|
|
@apply w-full border-none bg-transparent px-3 pt-1 pb-2 text-sm opacity-100;
|
|
|
|
@apply focus:opacity-100 focus:outline-none focus:ring-0;
|
2024-04-13 14:49:48 +02:00
|
|
|
@apply placeholder-shown:opacity-50;
|
2024-04-25 07:54:56 -04:00
|
|
|
@apply disabled:opacity-50;
|
2024-02-09 15:29:31 +00:00
|
|
|
}
|
|
|
|
|
2024-04-25 14:55:39 -04:00
|
|
|
.form-field__radio {
|
|
|
|
@apply text-gray-900;
|
|
|
|
}
|
|
|
|
|
2024-02-09 15:29:31 +00:00
|
|
|
.form-field__submit {
|
2024-06-07 16:56:30 -04:00
|
|
|
@apply w-full cursor-pointer rounded-lg bg-black p-3 text-center text-white hover:bg-gray-700;
|
2024-02-09 15:29:31 +00:00
|
|
|
}
|
2024-03-07 10:55:51 -05:00
|
|
|
|
|
|
|
input:checked + label + .toggle-switch-dot {
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
2024-06-07 12:44:06 -04:00
|
|
|
|
|
|
|
[type='checkbox'].maybe-checkbox {
|
|
|
|
@apply rounded-sm;
|
|
|
|
}
|
|
|
|
|
|
|
|
[type='checkbox'].maybe-checkbox--light {
|
2024-06-07 16:56:30 -04:00
|
|
|
@apply border-alpha-black-200 checked:bg-gray-900 checked:ring-gray-900 focus:ring-gray-900 focus-visible:ring-gray-900 checked:hover:bg-gray-500;
|
2024-06-07 12:44:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
[type='checkbox'].maybe-checkbox--dark {
|
|
|
|
@apply ring-gray-900 checked:text-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
[type='checkbox'].maybe-checkbox--dark:checked {
|
|
|
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='111827' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
|
|
|
}
|
2024-06-07 16:56:30 -04:00
|
|
|
|
|
|
|
.maybe-switch {
|
|
|
|
@apply block bg-gray-100 w-9 h-5 rounded-full cursor-pointer;
|
|
|
|
@apply after:content-[''] after:block after:absolute after:top-0.5 after:left-0.5 after:bg-white after:w-4 after:h-4 after:rounded-full after:transition-transform after:duration-300 after:ease-in-out;
|
|
|
|
@apply peer-checked:bg-green-600 peer-checked:after:translate-x-4;
|
|
|
|
}
|
2024-06-14 22:40:50 +02:00
|
|
|
|
|
|
|
.prose--github-release-notes {
|
|
|
|
.octicon {
|
|
|
|
@apply inline-block overflow-visible align-text-bottom fill-current;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-caret {
|
|
|
|
@apply content-none border-4 border-b-0 border-transparent border-t-gray-500 size-0 inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-mention {
|
|
|
|
@apply font-bold;
|
|
|
|
}
|
|
|
|
}
|
2024-02-02 09:05:04 -06:00
|
|
|
}
|
2024-02-12 17:20:50 -05:00
|
|
|
|
|
|
|
/* Small, single purpose classes that should take precedence over other styles */
|
|
|
|
@layer utilities {
|
2024-03-14 15:30:36 +01:00
|
|
|
.scrollbar::-webkit-scrollbar {
|
|
|
|
width: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scrollbar::-webkit-scrollbar-thumb {
|
|
|
|
background: #d6d6d6;
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scrollbar::-webkit-scrollbar-thumb:hover {
|
|
|
|
background: #a6a6a6;
|
|
|
|
}
|
2024-02-12 17:20:50 -05:00
|
|
|
}
|