rDrama/files/static/src/main.css

176 lines
4.2 KiB
CSS
Raw Normal View History

2021-11-25 21:50:30 +00:00
@tailwind base;
@tailwind components;
@tailwind utilities;
2021-12-01 20:42:51 +00:00
/* ----------------------- VARIABLES --------------------- */
2021-12-01 18:19:48 +00:00
:root {
--color-primary: 220, 38, 38;
}
2021-12-01 20:42:51 +00:00
/* ---------------- RESPONSIVE UTILITIES ----------------- */
2021-12-01 18:11:15 +00:00
@responsive {
.text-shadow {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12)
}
.text-shadow-t {
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12)
}
.text-shadow-light {
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1)
}
.text-shadow-light-t {
text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.1)
}
2021-12-04 23:35:37 +00:00
.sub-header-shadow {
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, -1px -1px 0.5px rgba(17, 40, 19, 0.1) inset;
}
2021-12-05 18:32:51 +00:00
.gradient-mask {
-webkit-mask-image: linear-gradient(180deg,#000 60%,transparent); mask-image: linear-gradient(180deg,#000 60%,transparent)
}
2021-12-09 15:21:04 +00:00
/* Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
2021-12-01 18:11:15 +00:00
}
2021-12-01 20:42:51 +00:00
/* -------------------- BASE STYLING -------------------- */
2021-12-01 21:26:44 +00:00
@layer base {
2021-12-01 18:17:03 +00:00
/* Headings */
h1, .h1 {
@apply text-5xl font-bold leading-10 mb-2;
}
h2, .h2 {
@apply text-4xl font-bold leading-8 mb-2;
}
h3, .h3 {
@apply text-3xl font-bold leading-7 mb-2;
}
h4, .h4 {
@apply text-2xl font-bold leading-6 mb-2;
}
h5, .h5 {
@apply text-lg font-bold leading-5 mb-2;
}
h6, .h6 {
@apply text-base font-bold leading-4 mb-2;
}
/* Typography */
p {
@apply mb-3 last:mb-0;
}
a {
@apply text-primary break-all
}
2021-12-11 21:36:11 +00:00
blockquote {
@apply bg-red-200 border-l-2 border-red-600
}
2021-12-01 18:17:03 +00:00
hr {
@apply my-3
}
ul {
@apply mb-3
}
strong {
@apply font-bold
}
code {
@apply text-pink-600 dark:text-pink-300 font-mono;
}
pre {
white-space: pre-wrap; /* Since CSS 2.1 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
/* Images */
2021-12-03 17:05:38 +00:00
img {
2021-12-05 01:45:50 +00:00
@apply inline
2021-12-03 17:05:38 +00:00
}
2021-12-01 18:17:03 +00:00
img[lazy=loading] {
@apply animate-pulse;
}
2021-12-12 03:48:36 +00:00
img[width], img[height] {
2021-12-05 17:25:44 +00:00
max-width: none;
2021-12-12 05:17:57 +00:00
height: 24px;
2021-12-05 17:25:44 +00:00
}
2021-12-01 18:17:03 +00:00
/*Inputs*/
.label {
2021-12-01 23:20:36 +00:00
@apply block font-bold text-gray-700 text-sm leading-normal mb-1;
2021-12-01 18:17:03 +00:00
}
}
2021-12-01 20:42:51 +00:00
/* ----------------------- INPUTS ----------------------- */
2021-12-01 16:38:05 +00:00
.form-input {
2021-12-01 23:20:36 +00:00
@apply text-lg sm:text-base appearance-none block w-full rounded shadow-inner p-2 bg-white border border-gray-300 hover:border-gray-400 focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50
2021-12-01 04:13:32 +00:00
}
2021-12-01 20:42:51 +00:00
/* ---------------------- BUTTONS ----------------------- */
2021-12-01 18:13:19 +00:00
.btn {
2021-12-10 04:53:11 +00:00
@apply inline-block px-4 py-2 active:shadow-inner border rounded-md text-shadow-t shadow-inset-t-white-10 text-sm font-bold focus:outline-none disabled:opacity-50;
2021-12-01 18:13:19 +00:00
}
.btn-red {
2021-12-03 17:19:20 +00:00
@apply bg-gradient-to-t from-red-700 to-red-600 hover:from-red-600 hover:to-red-700 border-red-900 text-gray-100 focus:text-white;
2021-12-01 21:32:27 +00:00
}
2021-12-01 23:28:11 +00:00
.btn-green {
@apply bg-gradient-to-t from-green-700 to-green-600 hover:from-green-600 hover:to-green-700 border-green-900 text-gray-100 focus:text-gray-200;
}
.btn-gray {
@apply bg-gradient-to-t from-gray-200 to-gray-100 hover:from-gray-100 hover:to-gray-200 border-gray-300 text-gray-700 focus:text-gray-900;
}
2021-12-01 21:32:27 +00:00
/* ----------------------- BADGES ----------------------- */
.badge {
2021-12-05 21:04:34 +00:00
@apply px-1 py-0.5 text-sm text-shadow-light font-bold leading-normal rounded bg-gradient-to-t;
2021-12-01 21:32:27 +00:00
}
2021-12-06 20:37:22 +00:00
.badge-pink {
@apply from-pink-600 to-pink-500 text-white;
}
.badge-purple {
@apply from-purple-600 to-purple-500 text-white;
}
2021-12-01 21:32:27 +00:00
.badge-red {
2021-12-04 19:06:04 +00:00
@apply from-red-600 to-red-500 text-white;
2021-12-04 19:03:41 +00:00
}
.badge-yellow {
2021-12-04 19:04:10 +00:00
@apply from-yellow-600 to-yellow-500 text-yellow-900;
2021-12-01 21:32:27 +00:00
}
2021-12-04 19:47:23 +00:00
.badge-blue {
@apply from-blue-600 to-blue-500 text-white;
}
2021-12-06 20:35:15 +00:00
.badge-green {
@apply from-green-600 to-green-500 text-white;
}
.badge-primary {
@apply bg-primary text-white;
}
2021-12-01 21:32:27 +00:00
2021-12-06 20:13:02 +00:00
/* ---------------------- TOOLTIPS ---------------------- */
.tooltip-inner {
background-color: @apply text-black;
color: @apply text-white;
}
2021-12-12 06:28:16 +00:00
/* ----------------------- EMOJI ------------------------ */
img.emoji {
width: 30px;
height: 30px;
@apply inline-block object-contain
}
2021-12-15 19:30:26 +00:00
img.emoji-md {
2021-12-12 06:28:16 +00:00
width: 60px;
height: 60px;
@apply inline-block object-contain
}
2021-12-15 19:30:26 +00:00
img.emoji-lg {
max-width: 100%;
@apply inline-block object-contain
}