bullet_train-themes-light 1.0.8 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/assets/stylesheets/light/actiontext.css +26 -0
  4. data/app/assets/stylesheets/light/application.css +31 -0
  5. data/app/assets/stylesheets/light/electron.css +46 -0
  6. data/app/assets/stylesheets/light/fields/cloudinary_image.css +58 -0
  7. data/app/assets/stylesheets/light/fields/date_field.css +19 -0
  8. data/app/assets/stylesheets/light/fields/index.css +5 -0
  9. data/app/assets/stylesheets/light/fields/phone_field.css +7 -0
  10. data/app/assets/stylesheets/light/fields/super_select.css +103 -0
  11. data/app/assets/stylesheets/light/fields/trix_editor.css +88 -0
  12. data/app/assets/stylesheets/light/mailer.scss +359 -0
  13. data/app/assets/stylesheets/light/tailwind/components.css +136 -0
  14. data/app/assets/stylesheets/light/tailwind/dark-mode.css +205 -0
  15. data/app/assets/stylesheets/light/tailwind/utilities.css +49 -0
  16. data/app/assets/stylesheets/light.tailwind.css +5 -3
  17. data/app/assets/stylesheets/tailwindcss/base.css +1 -0
  18. data/app/assets/stylesheets/tailwindcss/components.css +1 -0
  19. data/app/assets/stylesheets/tailwindcss/utilities.css +1 -0
  20. data/app/views/themes/light/conversations/_card.html.erb +21 -0
  21. data/app/views/themes/light/conversations/_comment.html.erb +26 -0
  22. data/app/views/themes/light/conversations/_message.html.erb +127 -0
  23. data/app/views/themes/light/conversations/_thread_border.html.erb +3 -0
  24. data/app/views/themes/light/layouts/_account.html.erb +1 -1
  25. data/app/views/themes/light/layouts/_head.html.erb +6 -4
  26. data/app/views/themes/light/workflow/_box.html.erb +1 -1
  27. data/lib/bullet_train/themes/light/engine.rb +1 -0
  28. data/lib/bullet_train/themes/light/version.rb +1 -1
  29. data/tailwind.light.config.js +5 -1
  30. metadata +22 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b90beb47e96c62a7bd1ab409607436aed12dad569eac5ffbd24ae69ea6a7bfb6
4
- data.tar.gz: b07607b04b83c80d4990ba55f01a030058e8427776dd0b90b54bd13d28a01b48
3
+ metadata.gz: 8f380dad7175edc562c592b197569cc6a435c2a33f2e1b3470d665311599d462
4
+ data.tar.gz: bae286373604c34f7e2cc77b99bd44757a525e3ce70087f5a1271ee55e7ca557
5
5
  SHA512:
6
- metadata.gz: 07ea3d59f77b789725e35607bbecf6ee44f168056d60e6411b4aae0d93cb6719b19a1d117c43cf9f3e7cd8badcfca616c461182f0553ddb06d6d7f1231726d48
7
- data.tar.gz: ceb5e26b93c910b716e6fa973ca402eb2077eeb1a3340fa465c382763f05a8c0aaadec4c9b4b4015788a707f994c78ec53930df3ebe52b109d1c5ff968fb5376
6
+ metadata.gz: 9178d4aa910c1c52389aa88d88c158e38b70d333f002de7f654003c93334a13ead015abc224f4b9d79b50097a3e2ffce6197a7897c0a0fd78567a71c5256dcf0
7
+ data.tar.gz: f0c5cfba40511514fe08c53be82286f6118df4b004b80015282c58bd60b6075b98114cfc7d17dce0531cb1b53f0116e68a5b0a01cc45430dca551f60da582e7f
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2022 Andrew Culver
1
+ Copyright 2022 Bullet Train, Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -0,0 +1,26 @@
1
+ .trix-content {
2
+ .attachment-gallery {
3
+ > action-text-attachment,
4
+ > .attachment {
5
+ flex: 1 0 33%;
6
+ padding: 0 0.5em;
7
+ max-width: 33%;
8
+ }
9
+
10
+ &.attachment-gallery--2,
11
+ &.attachment-gallery--4 {
12
+ > action-text-attachment,
13
+ > .attachment {
14
+ flex-basis: 50%;
15
+ max-width: 50%;
16
+ }
17
+ }
18
+ }
19
+
20
+ action-text-attachment {
21
+ .attachment {
22
+ padding: 0 !important;
23
+ max-width: 100% !important;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,31 @@
1
+ @import "./tailwind/components";
2
+ @import "./tailwind/utilities";
3
+ @import "./tailwind/dark-mode";
4
+
5
+ @import "./electron";
6
+ @import './fields';
7
+
8
+ /* TODO there is probably a better way to do this. */
9
+ .hover-indent-child {
10
+ .indent-child {
11
+ transition: transform 0.2s ease;
12
+ }
13
+ &:hover {
14
+ .indent-child {
15
+ transform:translateX(8px);
16
+ }
17
+ }
18
+ }
19
+
20
+ form.button_to {
21
+ @apply inline-block;
22
+ input[type=submit] {
23
+ @apply bg-transparent;
24
+ &.button {
25
+ @apply bg-blue hover:bg-blue-dark;
26
+ }
27
+ }
28
+ }
29
+
30
+ /* hide the first breadcrumb chevron */
31
+ ol.breadcrumb li:first-child svg { display: none; }
@@ -0,0 +1,46 @@
1
+ /* Import Electron utilities shared across all Tailwind-based themes. */
2
+ /* @import "../tailwind/electron.scss"; */
3
+
4
+ .electron, .todesktop {
5
+
6
+ a {
7
+ outline-color: var(--tw-ring-color);
8
+ --tw-ring-color: rgba(3, 98, 198, var(--tw-ring-opacity));
9
+ --tw-ring-opacity: 1;
10
+ }
11
+
12
+ .electron-mobile-only {
13
+ @apply block lg:hidden;
14
+ }
15
+
16
+ .electron-title-bar {
17
+ /* override `md:rounded-lg` */
18
+ border-top-left-radius: 0;
19
+
20
+ /* hide logo because it doesn't fit into the ui well. */
21
+ img { display: none; }
22
+
23
+ min-height: 36px;
24
+ }
25
+
26
+ .main-container-padding {
27
+ padding: 0;
28
+ }
29
+
30
+ .main-container {
31
+ /* override `md:rounded-lg` */
32
+ border-top-right-radius: 0;
33
+ border-top-left-radius: 0;
34
+ border-bottom-right-radius: 0;
35
+ border-bottom-left-radius: 0;
36
+
37
+ /* override `md:h-auto` */
38
+ height: 100vh;
39
+ }
40
+
41
+ /* hide profiler results because they don't fit into the ui well. */
42
+ .profiler-results { display: none; }
43
+
44
+ /* touch up the padding of the breadcrumbs. */
45
+ ol.breadcrumb { padding-top: 3px; }
46
+ }
@@ -0,0 +1,58 @@
1
+ .cloudinary-field {
2
+ button.upload {
3
+ margin: 0;
4
+ border-radius: 4px;
5
+ padding: 0;
6
+ border: 2px solid #dde2ec;
7
+ background: transparent;
8
+ position: relative;
9
+ min-height: 50px;
10
+ min-width: 50px;
11
+ &:not(.present) {
12
+ min-height: 100px;
13
+ min-width: 100px;
14
+ }
15
+ i {
16
+ display: block;
17
+ text-align: center;
18
+ vertical-align: middle;
19
+ position: absolute;
20
+ line-height: 50px;
21
+ width: 50px;
22
+ height: 50px;
23
+ margin-left: -25px;
24
+ margin-top: -25px;
25
+ top: 50%;
26
+ left: 50%;
27
+ font-size: 32px;
28
+ color: #dde2ec;
29
+ }
30
+ & + button.clear {
31
+ display: none;
32
+ font-size: 32px;
33
+ color: #dde2ec;
34
+ background: transparent;
35
+ border: 0;
36
+ vertical-align: -7px;
37
+ &:focus, &:active {
38
+ i {
39
+ color: #047bf8;
40
+ }
41
+ }
42
+ }
43
+ &.present {
44
+ i {
45
+ display: none;
46
+ }
47
+ & + button.clear {
48
+ display: inline;
49
+ }
50
+ }
51
+ &:focus, &:active {
52
+ border-color: #047bf8;
53
+ i {
54
+ color: #047bf8;
55
+ }
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,19 @@
1
+ @layer components {
2
+ .date-input {
3
+ .single-daterange {
4
+ @apply rounded-md shadow-sm focus:ring-blue focus:border-blue font-light text-sm;
5
+ }
6
+ }
7
+
8
+ .daterangepicker {
9
+ .hourselect, .minuteselect, .ampmselect {
10
+ @apply rounded-md shadow-sm focus:ring-blue font-light;
11
+ @apply border-gray-300 focus:border-blue bg-white !important;
12
+ text-align-last: center;
13
+ }
14
+
15
+ .calendar-table .active {
16
+ @apply bg-blue !important;
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,5 @@
1
+ @import './cloudinary_image';
2
+ @import './date_field';
3
+ @import './phone_field';
4
+ @import './super_select';
5
+ @import './trix_editor';
@@ -0,0 +1,7 @@
1
+ input[type=tel] {
2
+ line-height: 21px;
3
+
4
+ &::placeholder {
5
+ color: #9ca3af;
6
+ }
7
+ }
@@ -0,0 +1,103 @@
1
+ .select2-container--default {
2
+ .select2-selection--single,
3
+ .select2-selection--multiple {
4
+ @apply border-gray-300;
5
+ }
6
+ }
7
+
8
+ .select2-selection.select2-selection--single {
9
+ min-height: 37px;
10
+ .select2-selection__rendered {
11
+ padding-left: 12px;
12
+ min-height: 34px;
13
+ line-height: 34px;
14
+ }
15
+ .select2-selection__arrow {
16
+ padding-top: 35px;
17
+ }
18
+ }
19
+
20
+ .select2-container .select2-search--inline .select2-search__field {
21
+ font-weight: 300;
22
+ margin-top: 6px;
23
+ }
24
+
25
+ .select2 {
26
+ display: block;
27
+ img {
28
+ display: none;
29
+ }
30
+ }
31
+
32
+ .select2-results {
33
+ img {
34
+ height: 30px;
35
+ width: 30px;
36
+ border-radius: 15px;
37
+ margin-right: 8px;
38
+ }
39
+ }
40
+
41
+ @layer components {
42
+ .select2-container {
43
+ @apply w-full;
44
+ }
45
+
46
+ .select2-border {
47
+ @apply border-blue !important;
48
+ box-shadow: inset 0 0 0 1px #047bf8 !important;
49
+ outline: 0 !important;
50
+ }
51
+
52
+ .select2-selection--single, .select2-selection--multiple {
53
+ @apply border-gray-300;
54
+ @apply rounded-md shadow-sm pt-0 focus:ring-blue !important;
55
+ height: 38px !important;
56
+
57
+ &.focus-visible {
58
+ @extend .select2-border;
59
+ }
60
+
61
+ &:focus {
62
+ outline: 0 !important;
63
+ }
64
+
65
+ .select2-selection__arrow {
66
+ height: 34px !important;
67
+ }
68
+
69
+ .select2-selection__rendered {
70
+ @apply text-gray-500 pl-3 !important;
71
+ line-height: 35px !important;
72
+ }
73
+ }
74
+
75
+ .select2-selection--multiple .select2-selection__choice {
76
+ margin-top: 6px !important;
77
+ line-height: 22px !important;
78
+ }
79
+
80
+ .select2-container--open, .select2-container--focus {
81
+ .select2-selection--single, .select2-selection--multiple {
82
+ @extend .select2-border;
83
+ }
84
+ }
85
+
86
+ .select2-container .select2-dropdown {
87
+ @apply border-2 border-gray-300 shadow-sm overflow-hidden !important;
88
+ border-color: #5897fb !important;
89
+ }
90
+
91
+ .select2-container--default .select2-results__option[aria-selected=true] {
92
+ @apply text-white bg-blue !important;
93
+ }
94
+
95
+ .select2-search__field {
96
+ @apply rounded-md;
97
+ @apply border-gray-300 !important;
98
+
99
+ &:focus {
100
+ border-color: #5897fb !important;
101
+ }
102
+ }
103
+ }
@@ -0,0 +1,88 @@
1
+ @import "../actiontext";
2
+
3
+ /* don't show the editor tool bar unless the user is editing the field. */
4
+ /* see https://github.com/basecamp/trix/issues/343 and `app/assets/javascripts/account/fields.js` */
5
+ trix-toolbar {
6
+ opacity: 0.15;
7
+ &.visible {
8
+ opacity: 1;
9
+ }
10
+ }
11
+
12
+ a[href^="bullettrain://"], span.tribute-reference {
13
+ border-radius: 4px;
14
+ display: inline-block;
15
+ box-sizing: border-box;
16
+ padding: 0 4px;
17
+ margin: -1px 0;
18
+ color: #3E4B5B;
19
+ line-height: 17px;
20
+ text-decoration: none;
21
+ background-color: #ebe2ff;
22
+ border: 1px solid #7147d2;
23
+ }
24
+
25
+ a[href^="bullettrain://users"], a[href^="bullettrain://teams"], span.tribute-users-reference, span.tribute-teams-reference {
26
+ background-color: #e2ebff;
27
+ border: 1px solid #4771d2;
28
+ }
29
+
30
+ .tribute-container {
31
+ ul {
32
+ border-radius: 5px;
33
+ overflow: hidden;
34
+ box-sizing: border-box;
35
+ border: 2px solid #047bf8;
36
+ background: white;
37
+ list-style: none;
38
+ padding: 0;
39
+ &:empty {
40
+ display: none;
41
+ }
42
+ li {
43
+ span {
44
+ font-weight: normal;
45
+ }
46
+ &.highlight {
47
+ background-color: #5897fb;
48
+ color: white;
49
+ }
50
+ padding: 5px 10px;
51
+ img {
52
+ height: 30px;
53
+ width: 30px;
54
+ border-radius: 15px;
55
+ margin-right: 5px;
56
+ }
57
+ }
58
+ }
59
+ }
60
+
61
+ trix-editor [data-trix-cursor-target] {
62
+ display: none !important;
63
+ height: 0 !important;
64
+ width: 0 !important;
65
+ /* background-color: red; */
66
+ }
67
+
68
+ .trix-editor {
69
+ * {
70
+ box-sizing: border-box;
71
+ }
72
+ }
73
+
74
+ trix-editor {
75
+ padding-right: 0.75rem;
76
+ padding-left: 0.75rem;
77
+ @apply shadow-sm border-gray-300 font-light rounded-md;
78
+ &:focus, &:active {
79
+ border-color: #047bf8;
80
+ box-shadow: inset 0 0 0 1px #047bf8;
81
+ }
82
+ }
83
+
84
+ .trix-hide-toolbar {
85
+ trix-toolbar {
86
+ display: none !important;
87
+ }
88
+ }