[libadwaita/wip/exalm/stylesheet2: 90/97] stylesheet: Split text selection styles into a separate file
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/stylesheet2: 90/97] stylesheet: Split text selection styles into a separate file
- Date: Fri, 9 Apr 2021 12:30:26 +0000 (UTC)
commit 5915af42b9b1530d7f6c07d6bedfa6d93b96c576
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Apr 9 14:17:29 2021 +0500
stylesheet: Split text selection styles into a separate file
src/stylesheet/_common.scss | 40 -----------------------------
src/stylesheet/_widgets.scss | 1 +
src/stylesheet/meson.build | 1 +
src/stylesheet/widgets/_text-selection.scss | 34 ++++++++++++++++++++++++
4 files changed, 36 insertions(+), 40 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 503afd0..e853970 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -281,46 +281,6 @@ expander-widget {
}
-/**********************
- * Touch Copy & Paste *
- *********************/
-//touch selection handlebars for the Popover.osd above
-cursor-handle {
- background-color: transparent;
- background-image: none;
- box-shadow: none;
- border-style: none;
- min-width: 20px;
- min-height: 24px;
- padding-left: 20px;
- padding-right: 20px;
- padding-top: 24px;
- padding-bottom: 24px;
-
- @each $s,$as in ('',''),
- (':hover','-hover'),
- (':active','-active') { //no need for insensitive and backdrop
- &.top#{$s}:dir(ltr), &.bottom#{$s}:dir(rtl) {
- $_url: '#{$assets}/text-select-start#{$as}#{$asset_suffix}';
- -gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
- url('#{$_url}@2.png'));
- }
-
- &.bottom#{$s}:dir(ltr), &.top#{$s}:dir(rtl) {
- $_url: '#{$assets}/text-select-end#{$as}#{$asset_suffix}';
- -gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
- url('#{$_url}@2.png'));
- }
-
- &.insertion-cursor#{$s}:dir(ltr), &.insertion-cursor#{$s}:dir(rtl) {
- $_url: '#{$assets}/slider-horz-scale-has-marks-above#{$as}#{$asset_suffix}';
- -gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
- url('#{$_url}@2.png'));
- }
- }
-}
-
-
/*************
* App Icons *
*************/
diff --git a/src/stylesheet/_widgets.scss b/src/stylesheet/_widgets.scss
index 237dfc5..1581c11 100644
--- a/src/stylesheet/_widgets.scss
+++ b/src/stylesheet/_widgets.scss
@@ -24,6 +24,7 @@
@import 'widgets/spinner';
@import 'widgets/spin-button';
@import 'widgets/switch';
+@import 'widgets/text-selection';
@import 'widgets/toolbars';
@import 'widgets/tooltip';
@import 'widgets/trees';
diff --git a/src/stylesheet/meson.build b/src/stylesheet/meson.build
index 0a32665..903a87d 100644
--- a/src/stylesheet/meson.build
+++ b/src/stylesheet/meson.build
@@ -46,6 +46,7 @@ if not fs.exists('Adwaita-light.css')
'widgets/_spinner.scss',
'widgets/_spin-button.scss',
'widgets/_switch.scss',
+ 'widgets/_text-selection.scss',
'widgets/_toolbars.scss',
'widgets/_tooltip.scss',
'widgets/_trees.scss',
diff --git a/src/stylesheet/widgets/_text-selection.scss b/src/stylesheet/widgets/_text-selection.scss
new file mode 100644
index 0000000..68d660b
--- /dev/null
+++ b/src/stylesheet/widgets/_text-selection.scss
@@ -0,0 +1,34 @@
+cursor-handle {
+ background-color: transparent;
+ background-image: none;
+ box-shadow: none;
+ border-style: none;
+ min-width: 20px;
+ min-height: 24px;
+ padding-left: 20px;
+ padding-right: 20px;
+ padding-top: 24px;
+ padding-bottom: 24px;
+
+ @each $s,$as in ('',''),
+ (':hover','-hover'),
+ (':active','-active') { //no need for insensitive and backdrop
+ &.top#{$s}:dir(ltr), &.bottom#{$s}:dir(rtl) {
+ $_url: '#{$assets}/text-select-start#{$as}#{$asset_suffix}';
+ -gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
+ url('#{$_url}@2.png'));
+ }
+
+ &.bottom#{$s}:dir(ltr), &.top#{$s}:dir(rtl) {
+ $_url: '#{$assets}/text-select-end#{$as}#{$asset_suffix}';
+ -gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
+ url('#{$_url}@2.png'));
+ }
+
+ &.insertion-cursor#{$s}:dir(ltr), &.insertion-cursor#{$s}:dir(rtl) {
+ $_url: '#{$assets}/slider-horz-scale-has-marks-above#{$as}#{$asset_suffix}';
+ -gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
+ url('#{$_url}@2.png'));
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]