bullet_train-themes-light 1.0.7 → 1.0.10

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/app/assets/stylesheets/light/actiontext.css +26 -0
  3. data/app/assets/stylesheets/light/application.css +31 -0
  4. data/app/assets/stylesheets/light/electron.css +46 -0
  5. data/app/assets/stylesheets/light/fields/cloudinary_image.css +58 -0
  6. data/app/assets/stylesheets/light/fields/date_field.css +19 -0
  7. data/app/assets/stylesheets/light/fields/index.css +5 -0
  8. data/app/assets/stylesheets/light/fields/phone_field.css +7 -0
  9. data/app/assets/stylesheets/light/fields/super_select.css +96 -0
  10. data/app/assets/stylesheets/light/fields/trix_editor.css +88 -0
  11. data/app/assets/stylesheets/light/mailer.scss +359 -0
  12. data/app/assets/stylesheets/light/tailwind/components.css +136 -0
  13. data/app/assets/stylesheets/light/tailwind/dark-mode.css +205 -0
  14. data/app/assets/stylesheets/light/tailwind/utilities.css +49 -0
  15. data/app/assets/stylesheets/light.tailwind.css +5 -3
  16. data/app/assets/stylesheets/tailwindcss/base.css +1 -0
  17. data/app/assets/stylesheets/tailwindcss/components.css +1 -0
  18. data/app/assets/stylesheets/tailwindcss/utilities.css +1 -0
  19. data/app/{assets/javascript → javascript}/application.light.js +0 -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 +23 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7b07d00515c14850ac5da528b5b26ce656fed8a0314aa3058d4cb60f17fd5d3
4
- data.tar.gz: 594d6ed9181e26ce8a139ea7972eabc47d7e3beef048446c1b6a08e3b2239e8c
3
+ metadata.gz: 41d736402e6f38b02c5a08f133eca0f16ce4d1760fb2a8027a0a5254fcafbbdb
4
+ data.tar.gz: 5773196742bd8871951bc176b2b11f61d983ab89ddf19f9ec9379fc1868e9287
5
5
  SHA512:
6
- metadata.gz: 218e25be28cf97c0c54639a16a22db3e52a9ec4d445a85c02cd78df4815952979a9256c6fc51e2aae6ac662ef89f11221aa3f07bfafd1abfcc0e78a246f1b914
7
- data.tar.gz: 7f3fb2e4024eb6da1fd942c1ee2d383be45be6a79bc6e92fe98a9e29552c23e7f03e797ecd29e655ec115db145094ede9ef882d3764a4779381275c9fcff0538
6
+ metadata.gz: 2bf2788ddb448c704c2d59b0f1e26b4b1013540890c8e029fefd09cc51209b6aa94bc6a5d9fc311193ede7776d8431c9bb394e8731c9f505fb0fd86188be8cc2
7
+ data.tar.gz: 6fa8e7ec0e8b642cf438b2c1d08f1fa125f23d04dedad5259fcf2228930f9c471d8ce9beeed760f78bbce303baaaaa4743bcaeb21adbcb7f80a65b8854cf11c4
@@ -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,96 @@
1
+ .select2-selection.select2-selection--single {
2
+ min-height: 37px;
3
+ .select2-selection__rendered {
4
+ padding-left: 12px;
5
+ min-height: 34px;
6
+ line-height: 34px;
7
+ }
8
+ .select2-selection__arrow {
9
+ padding-top: 35px;
10
+ }
11
+ }
12
+
13
+ .select2-container .select2-search--inline .select2-search__field {
14
+ font-weight: 300;
15
+ margin-top: 6px;
16
+ }
17
+
18
+ .select2 {
19
+ display: block;
20
+ img {
21
+ display: none;
22
+ }
23
+ }
24
+
25
+ .select2-results {
26
+ img {
27
+ height: 30px;
28
+ width: 30px;
29
+ border-radius: 15px;
30
+ margin-right: 8px;
31
+ }
32
+ }
33
+
34
+ @layer components {
35
+ .select2-container {
36
+ @apply w-full;
37
+ }
38
+
39
+ .select2-border {
40
+ @apply border-blue !important;
41
+ box-shadow: inset 0 0 0 1px #047bf8 !important;
42
+ outline: 0 !important;
43
+ }
44
+
45
+ .select2-selection--single, .select2-selection--multiple {
46
+ @apply border-gray-300;
47
+ @apply rounded-md shadow-sm pt-0 focus:ring-blue !important;
48
+ height: 38px !important;
49
+
50
+ &.focus-visible {
51
+ @extend .select2-border;
52
+ }
53
+
54
+ &:focus {
55
+ outline: 0 !important;
56
+ }
57
+
58
+ .select2-selection__arrow {
59
+ height: 34px !important;
60
+ }
61
+
62
+ .select2-selection__rendered {
63
+ @apply text-gray-500 pl-3 !important;
64
+ line-height: 35px !important;
65
+ }
66
+ }
67
+
68
+ .select2-selection--multiple .select2-selection__choice {
69
+ margin-top: 6px !important;
70
+ line-height: 22px !important;
71
+ }
72
+
73
+ .select2-container--open, .select2-container--focus {
74
+ .select2-selection--single, .select2-selection--multiple {
75
+ @extend .select2-border;
76
+ }
77
+ }
78
+
79
+ .select2-container .select2-dropdown {
80
+ @apply border-2 border-gray-300 shadow-sm overflow-hidden !important;
81
+ border-color: #5897fb !important;
82
+ }
83
+
84
+ .select2-container--default .select2-results__option[aria-selected=true] {
85
+ @apply text-white bg-blue !important;
86
+ }
87
+
88
+ .select2-search__field {
89
+ @apply rounded-md;
90
+ @apply border-gray-300 !important;
91
+
92
+ &:focus {
93
+ border-color: #5897fb !important;
94
+ }
95
+ }
96
+ }
@@ -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
+ }