analytics/assets/css/app.css

332 lines
5.6 KiB
CSS
Raw Normal View History

/* purgecss start ignore */
@tailwind base;
2019-09-02 14:29:19 +03:00
@tailwind components;
/* purgecss end ignore */
2019-09-02 14:29:19 +03:00
@import "modal.css";
@import "loader.css";
2019-09-02 14:29:19 +03:00
@import "tooltip.css";
@import "flatpickr.css";
2019-09-02 14:29:19 +03:00
[x-cloak] { display: none; }
2019-09-02 14:29:19 +03:00
.button {
@apply inline-flex justify-center px-4 py-2 text-sm font-medium text-white bg-indigo-600 border border-transparent rounded-md leading-5 transition hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500;
2019-09-02 14:29:19 +03:00
}
2021-05-04 15:37:58 +03:00
.button[disabled] {
@apply bg-gray-400 dark:bg-gray-600;
2021-05-04 15:37:58 +03:00
}
2019-09-02 14:29:19 +03:00
.button-outline {
@apply text-indigo-600 bg-transparent border border-indigo-600;
2019-09-02 14:29:19 +03:00
}
.button-outline:hover {
@apply text-white;
}
2019-09-02 14:29:19 +03:00
.button-sm {
@apply px-4 py-2 text-sm;
2019-09-02 14:29:19 +03:00
}
.button-md {
@apply px-4 py-2;
2019-09-02 14:29:19 +03:00
}
html {
@apply text-gray-800;
2019-09-02 14:29:19 +03:00
}
body {
-webkit-font-smoothing: antialiased;
Adds sticky header row (site selection, date, filters) (#472) * Adds New Dark Mode Assets * Moves triangle for dropdown to a reasonable position * Majority .eex dark implementation * Fixes Logo Positioning * Adds theme flag to user schema, uses it * Uses correct variables for theme applicator script * Minor missed theme changes/fallbacks * Individual Component Support + Theme Context * Sources Tab Support This was a pain to test D: * Partial Stats Sections Support * More of stats modules supported * Modal +table support * Improves some Flatpickr in light theme, supports dark theme * Fixes missed settings tab colors * Finishes Devices module support * Fixes bar graph colors * Better colorizes maps module * Undoes colorized bars (they looked bad, on second thought) * Fixes loading indicator * Finishes conversions module * Adds changelog entry The PR number could be wrong, will double check * Fixes missed header color * Fixes naming of migration and removes static alter * Does migration correctly As I said, my Elixir is pretty weak heh * Adds support for spike notifications setting * Improves contrast and visibility for email settings * Add initial implementation for sticky header * Minor mobile formatting improvements * Finishes (probably) pinned header feature * Adds changelog entry for pinned header * Updates PR number in sticky header changelog entry * Wraps up code cleanup + feature * Merge conflicts are hard, apparently * Removes extraneous tailwind variants * Fixes mentioned issues * Removes option to unsticky * py-3 * Tailwind in CSS
2020-12-22 16:39:14 +03:00
-moz-osx-font-smoothing: grayscale;
width:100vw; /* Prevents content from jumping when scrollbar is added/removed due to vertical overflow */
Adds sticky header row (site selection, date, filters) (#472) * Adds New Dark Mode Assets * Moves triangle for dropdown to a reasonable position * Majority .eex dark implementation * Fixes Logo Positioning * Adds theme flag to user schema, uses it * Uses correct variables for theme applicator script * Minor missed theme changes/fallbacks * Individual Component Support + Theme Context * Sources Tab Support This was a pain to test D: * Partial Stats Sections Support * More of stats modules supported * Modal +table support * Improves some Flatpickr in light theme, supports dark theme * Fixes missed settings tab colors * Finishes Devices module support * Fixes bar graph colors * Better colorizes maps module * Undoes colorized bars (they looked bad, on second thought) * Fixes loading indicator * Finishes conversions module * Adds changelog entry The PR number could be wrong, will double check * Fixes missed header color * Fixes naming of migration and removes static alter * Does migration correctly As I said, my Elixir is pretty weak heh * Adds support for spike notifications setting * Improves contrast and visibility for email settings * Add initial implementation for sticky header * Minor mobile formatting improvements * Finishes (probably) pinned header feature * Adds changelog entry for pinned header * Updates PR number in sticky header changelog entry * Wraps up code cleanup + feature * Merge conflicts are hard, apparently * Removes extraneous tailwind variants * Fixes mentioned issues * Removes option to unsticky * py-3 * Tailwind in CSS
2020-12-22 16:39:14 +03:00
overflow-x: hidden;
2019-09-02 14:29:19 +03:00
}
blockquote {
@apply px-4 py-2 my-4 border-l-4 border-gray-500;
2019-09-02 14:29:19 +03:00
}
@screen xl {
.container {
max-width: 70rem;
}
}
2019-09-09 19:07:16 +03:00
.pricing-table {
height: 920px;
}
@screen md {
.pricing-table {
height: auto;
}
}
2019-09-02 14:29:19 +03:00
@tailwind utilities;
2019-09-02 14:29:19 +03:00
.light-text {
color: #F0F4F8;
}
.transition {
transition: all .1s ease-in;
}
.pulsating-circle {
position: absolute;
width: 10px;
height: 10px;
2019-09-02 14:29:19 +03:00
}
.pulsating-circle::before {
2019-09-02 14:29:19 +03:00
content: '';
position: relative;
display: block;
width: 300%;
height: 300%;
box-sizing: border-box;
margin-left: -100%;
margin-top: -100%;
border-radius: 45px;
background-color: #9ae6b4;
animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
@apply bg-green-500;
2019-09-02 14:29:19 +03:00
}
2021-12-02 12:53:29 +03:00
.pulsating-circle::after {
2019-09-02 14:29:19 +03:00
content: '';
position: absolute;
left: 0;
top: 0;
display: block;
width: 100%;
height: 100%;
background-color: white;
border-radius: 15px;
animation: pulse-dot 3s cubic-bezier(0.455, 0.03, 0.515, 0.955) -.4s infinite;
@apply bg-green-500;
2019-09-02 14:29:19 +03:00
}
@keyframes pulse-ring {
0% {
transform: scale(.33);
}
2021-12-02 12:53:29 +03:00
50% {
transform: scale(1);
}
2021-12-02 12:53:29 +03:00
40%, 100% {
2019-09-02 14:29:19 +03:00
opacity: 0;
}
}
@keyframes pulse-dot {
0% {
transform: scale(.8);
}
2021-12-02 12:53:29 +03:00
25% {
2019-09-02 14:29:19 +03:00
transform: scale(1);
}
2021-12-02 12:53:29 +03:00
50%, 100% {
2019-09-02 14:29:19 +03:00
transform: scale(.8);
}
}
.just-text h1, .just-text h2, .just-text h3 {
margin-top: 1em;
margin-bottom: .5em;
}
.just-text p {
margin-top: 0;
margin-bottom: 1rem;
}
.dropdown-content::before {
top: -16px;
right: 8px;
2019-09-02 14:29:19 +03:00
left: auto;
border: 8px solid transparent;
border-bottom-color: rgba(27,31,35,0.15);
}
2021-12-02 12:53:29 +03:00
2019-09-02 14:29:19 +03:00
.dropdown-content::before, .dropdown-content::after {
position: absolute;
display: inline-block;
content: "";
}
2021-12-02 12:53:29 +03:00
2019-09-02 14:29:19 +03:00
.dropdown-content::after {
top: -14px;
right: 9px;
2019-09-02 14:29:19 +03:00
left: auto;
border: 7px solid transparent;
border-bottom-color: #fff;
2019-09-02 14:29:19 +03:00
}
.feather {
height: 1em;
width: 1em;
overflow: visible;
display: inline;
}
.feather-sm {
height: 1em;
width: 1em;
overflow: visible;
display: inline;
2019-09-02 14:29:19 +03:00
}
.table-striped tbody tr:nth-child(odd) {
background-color: #f1f5f8;
}
2020-01-16 14:39:47 +03:00
.dark .table-striped tbody tr:nth-child(odd) {
background-color: rgb(37, 47, 63);
}
.dark .table-striped tbody tr:nth-child(even) {
background-color: rgb(26, 32, 44);
}
.stats-item {
2021-06-15 10:34:43 +03:00
min-height: 436px;
}
@screen md {
.stats-item {
margin-left: 6px;
margin-right: 6px;
width: calc(50% - 6px);
position: relative;
2021-06-15 10:34:43 +03:00
min-height: initial;
height: 27.25rem;
2021-06-15 10:34:43 +03:00
}
2021-12-02 12:53:29 +03:00
.stats-item-header {
2021-06-15 10:34:43 +03:00
height: inherit;
}
}
.stats-item:first-child {
margin-left: 0;
}
.stats-item:last-child {
margin-right: 0;
}
.fade-enter {
opacity: 0;
}
2021-12-02 12:53:29 +03:00
.fade-enter-active {
opacity: 1;
transition: opacity 100ms ease-in;
}
.flatpickr-calendar.static.open {
right: 2px;
top: 12px;
}
.datamaps-subunit {
cursor: pointer;
}
/* Only because the map handler doesn't expose an easier way to change the shadow color */
.dark .hoverinfo {
box-shadow: 1px 1px 5px rgb(26, 32, 44);
}
Adds sticky header row (site selection, date, filters) (#472) * Adds New Dark Mode Assets * Moves triangle for dropdown to a reasonable position * Majority .eex dark implementation * Fixes Logo Positioning * Adds theme flag to user schema, uses it * Uses correct variables for theme applicator script * Minor missed theme changes/fallbacks * Individual Component Support + Theme Context * Sources Tab Support This was a pain to test D: * Partial Stats Sections Support * More of stats modules supported * Modal +table support * Improves some Flatpickr in light theme, supports dark theme * Fixes missed settings tab colors * Finishes Devices module support * Fixes bar graph colors * Better colorizes maps module * Undoes colorized bars (they looked bad, on second thought) * Fixes loading indicator * Finishes conversions module * Adds changelog entry The PR number could be wrong, will double check * Fixes missed header color * Fixes naming of migration and removes static alter * Does migration correctly As I said, my Elixir is pretty weak heh * Adds support for spike notifications setting * Improves contrast and visibility for email settings * Add initial implementation for sticky header * Minor mobile formatting improvements * Finishes (probably) pinned header feature * Adds changelog entry for pinned header * Updates PR number in sticky header changelog entry * Wraps up code cleanup + feature * Merge conflicts are hard, apparently * Removes extraneous tailwind variants * Fixes mentioned issues * Removes option to unsticky * py-3 * Tailwind in CSS
2020-12-22 16:39:14 +03:00
.fullwidth-shadow::before {
@apply absolute top-0 w-screen h-full bg-gray-50 dark:bg-gray-850;
Adds sticky header row (site selection, date, filters) (#472) * Adds New Dark Mode Assets * Moves triangle for dropdown to a reasonable position * Majority .eex dark implementation * Fixes Logo Positioning * Adds theme flag to user schema, uses it * Uses correct variables for theme applicator script * Minor missed theme changes/fallbacks * Individual Component Support + Theme Context * Sources Tab Support This was a pain to test D: * Partial Stats Sections Support * More of stats modules supported * Modal +table support * Improves some Flatpickr in light theme, supports dark theme * Fixes missed settings tab colors * Finishes Devices module support * Fixes bar graph colors * Better colorizes maps module * Undoes colorized bars (they looked bad, on second thought) * Fixes loading indicator * Finishes conversions module * Adds changelog entry The PR number could be wrong, will double check * Fixes missed header color * Fixes naming of migration and removes static alter * Does migration correctly As I said, my Elixir is pretty weak heh * Adds support for spike notifications setting * Improves contrast and visibility for email settings * Add initial implementation for sticky header * Minor mobile formatting improvements * Finishes (probably) pinned header feature * Adds changelog entry for pinned header * Updates PR number in sticky header changelog entry * Wraps up code cleanup + feature * Merge conflicts are hard, apparently * Removes extraneous tailwind variants * Fixes mentioned issues * Removes option to unsticky * py-3 * Tailwind in CSS
2020-12-22 16:39:14 +03:00
box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.06);
content: "";
z-index: -1;
left: calc(-1 * calc(50vw - 50%));
background-color: inherit;
Adds sticky header row (site selection, date, filters) (#472) * Adds New Dark Mode Assets * Moves triangle for dropdown to a reasonable position * Majority .eex dark implementation * Fixes Logo Positioning * Adds theme flag to user schema, uses it * Uses correct variables for theme applicator script * Minor missed theme changes/fallbacks * Individual Component Support + Theme Context * Sources Tab Support This was a pain to test D: * Partial Stats Sections Support * More of stats modules supported * Modal +table support * Improves some Flatpickr in light theme, supports dark theme * Fixes missed settings tab colors * Finishes Devices module support * Fixes bar graph colors * Better colorizes maps module * Undoes colorized bars (they looked bad, on second thought) * Fixes loading indicator * Finishes conversions module * Adds changelog entry The PR number could be wrong, will double check * Fixes missed header color * Fixes naming of migration and removes static alter * Does migration correctly As I said, my Elixir is pretty weak heh * Adds support for spike notifications setting * Improves contrast and visibility for email settings * Add initial implementation for sticky header * Minor mobile formatting improvements * Finishes (probably) pinned header feature * Adds changelog entry for pinned header * Updates PR number in sticky header changelog entry * Wraps up code cleanup + feature * Merge conflicts are hard, apparently * Removes extraneous tailwind variants * Fixes mentioned issues * Removes option to unsticky * py-3 * Tailwind in CSS
2020-12-22 16:39:14 +03:00
}
.dark .fullwidth-shadow::before {
box-shadow: 0 4px 2px -2px rgba(200, 200, 200, 0.1);
}
iframe[hidden] {
display: none;
}
.pagination-link[disabled] {
@apply cursor-default bg-gray-100 dark:bg-gray-300 pointer-events-none;
}
@media (max-width: 768px) {
.flatpickr-wrapper {
position: absolute !important;
right: 0 !important;
left: 0 !important;
}
}
Adds Main Graph Metric Selection (#1364) * First pass bringing in previous graph improvements, and comparsion context * Swaps issue template to new issue form syntax * Indentation update * Indentation update? * More indentation * Intendation is hard * Finalized indentation? * Github indentation * Missing fields * Formatting changes * Checkbox changes * Uses new timeseries API, various UI improvements, descopes conversions, ToP from graphing * Fixes Mobile UI Issues * Improves point detection and display on hover * Fixes & adds tests for updated main-graph API route * Changelog * Changes to better metric option declaration & minor UI/default fixes * Fixes top stat tooltips showing unformatted numbers for special (non-rounded) top stats * Formatting * Fixes regression with dashed portion not stopping at present_index * Removes comparison + lint * Improves top stat active style * Removes comparison tests * Splits out tooltip and top stats Still needs: - Tests - Potentially more cleanup * Adds/moves tests for top stats * Formatting * Updates metric LS key, removes console log * Various fixes + cleanup * Makes tooltip position & style more consistent * Fixes test (returns import status on both main graph & top stats) * Fixes interaction with month dateFormatter * Fixes edge case tooltip behavior It was simpler than I thought :/ * Make the entire top stat clickable * Minor UI improvements * Fixes another tooltip visibility edge case + cleans up boolean algebra Co-authored-by: Uku Taht <Uku.taht@gmail.com>
2022-04-13 10:38:47 +03:00
#chartjs-tooltip {
background-color: rgba(25, 30, 56);
position: absolute;
font-size: 14px;
font-style: normal;
padding: 10px 12px;
pointer-events: none;
border-radius: 5px;
z-index: 100;
}
.active-prop-heading {
/* Properties related to text-decoration are all here in one place. TailwindCSS does support underline but that's about it. */
text-decoration-line: underline;
text-decoration-color: #4338CA; /* tailwind's indigo-700 */
text-decoration-thickness: 2px;
}
@media (prefers-color-scheme: dark) {
.active-prop-heading {
text-decoration-color: #6366F1; /* tailwind's indigo-500 */
}
2021-12-02 12:53:29 +03:00
}
/* This class is used for styling embedded dashboards. Do not remove. */
/* stylelint-disable */
.date-option-group { }
.popper-tooltip {
background-color: rgba(25, 30, 56);
}
.tooltip-arrow,
.tooltip-arrow::before {
position: absolute;
width: 10px;
height: 10px;
background: inherit;
}
.tooltip-arrow {
visibility: hidden;
}
.tooltip-arrow::before {
visibility: visible;
content: '';
transform: rotate(45deg) translateY(1px);
}