Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/components/content_editor.scss')
-rw-r--r--app/assets/stylesheets/components/content_editor.scss56
1 files changed, 56 insertions, 0 deletions
diff --git a/app/assets/stylesheets/components/content_editor.scss b/app/assets/stylesheets/components/content_editor.scss
new file mode 100644
index 00000000000..64abf5574fa
--- /dev/null
+++ b/app/assets/stylesheets/components/content_editor.scss
@@ -0,0 +1,56 @@
+.ProseMirror {
+ td,
+ th,
+ li {
+ :only-child {
+ margin-bottom: 0 !important;
+ }
+ }
+
+ ul[data-type='taskList'] {
+ list-style: none;
+ padding: 0;
+
+ li {
+ margin: 0 !important;
+ }
+ }
+
+ [data-type='taskList'] {
+ p {
+ margin-bottom: 0;
+ }
+
+ li {
+ > label,
+ > div {
+ display: inline-block;
+ vertical-align: top;
+ }
+
+ > label {
+ padding: $gl-spacing-scale-1 $gl-spacing-scale-3 0 0;
+ margin: 0;
+ }
+ }
+ }
+}
+
+.table-creator-grid-item {
+ box-shadow: inset 0 0 0 $gl-spacing-scale-2 $white,
+ inset $gl-spacing-scale-1 $gl-spacing-scale-1 0 #{$gl-spacing-scale-2 * 3 / 4} $gray-100,
+ inset #{-$gl-spacing-scale-1} #{-$gl-spacing-scale-1} 0 #{$gl-spacing-scale-2 * 3 / 4} $gray-100 !important;
+
+ &.active {
+ box-shadow: inset 0 0 0 $gl-spacing-scale-2 $white,
+ inset $gl-spacing-scale-1 $gl-spacing-scale-1 0 $gl-spacing-scale-2 $blue-500,
+ inset #{-$gl-spacing-scale-1} #{-$gl-spacing-scale-1} 0 $gl-spacing-scale-2 $blue-500 !important;
+ }
+}
+
+.table-dropdown .dropdown-menu {
+ @include gl-min-w-0;
+ @include gl-w-auto;
+
+ @include gl-white-space-nowrap;
+}