Mercurial > repos > other > Adwaita-Dark-Green
comparison gtk-3.20/_common.scss @ 64:b85e4f7ff7c8
Upgrade to GTK 3.22.25 changes
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 11 Nov 2017 20:16:53 +0000 |
parents | d8eaee5178b7 |
children | 85f683cb0f5b |
comparison
equal
deleted
inserted
replaced
63:0aca06ef7c35 | 64:b85e4f7ff7c8 |
---|---|
278 &.left { @include undershoot(left); } | 278 &.left { @include undershoot(left); } |
279 &.right { @include undershoot(right); } | 279 &.right { @include undershoot(right); } |
280 } | 280 } |
281 | 281 |
282 &.flat { | 282 &.flat { |
283 &:focus, & { | 283 &:focus, &:backdrop, &:disabled, &:backdrop:disabled, & { |
284 min-height: 0; | 284 min-height: 0; |
285 padding: 2px; | 285 padding: 2px; |
286 background-color: transparent; | 286 background-color: transparent; |
287 border-color: transparent; | 287 border-color: transparent; |
288 border-radius: 0; | 288 border-radius: 0; |
425 | 425 |
426 &:focus { border-color: $selected_bg_color; } | 426 &:focus { border-color: $selected_bg_color; } |
427 } | 427 } |
428 } | 428 } |
429 | 429 |
430 .entry-tag { | |
431 // sizing | |
432 padding: 5px; | |
433 | |
434 margin-top: 2px; | |
435 margin-bottom: 2px; | |
436 | |
437 // side margins: compensate the entry padding with a negative margin | |
438 // then the negative margin itself | |
439 :dir(ltr) & { | |
440 margin-left: 8px; | |
441 margin-right: -5px; | |
442 } | |
443 :dir(rtl) & { | |
444 margin-left: -5px; | |
445 margin-right: 8px; | |
446 } | |
447 | |
448 border-style: none; | |
449 | |
450 $_entry_tag_color: if($variant=='light', $selected_fg_color, $base_color); | |
451 color: $_entry_tag_color; | |
452 | |
453 $_entry_tag_bg: if($variant=='light', $selected_bg_color, mix($fg_color, $base_color, 50%)); | |
454 background-color: $_entry_tag_bg; | |
455 | |
456 &:hover { | |
457 background-color: lighten($_entry_tag_bg, 10%); | |
458 } | |
459 | |
460 :backdrop & { | |
461 color: $backdrop_base_color; | |
462 background-color: if($variant=='light', $selected_bg_color, | |
463 mix($backdrop_fg_color, $backdrop_base_color, 50%)); | |
464 } | |
465 | |
466 &.button { | |
467 background-color: transparent; | |
468 color: transparentize($_entry_tag_color, 0.3); | |
469 } | |
470 | |
471 :not(:backdrop) &.button { | |
472 &:hover { | |
473 border: 1px solid $_entry_tag_bg; | |
474 color: $_entry_tag_color; | |
475 } | |
476 &:active { | |
477 background-color: $_entry_tag_bg; | |
478 color: transparentize($_entry_tag_color, 0.3); | |
479 } | |
480 } | |
481 } | |
430 | 482 |
431 /*********** | 483 /*********** |
432 * Buttons * | 484 * Buttons * |
433 ***********/ | 485 ***********/ |
434 // stuff for .needs-attention | 486 // stuff for .needs-attention |
1522 background-image: none; | 1574 background-image: none; |
1523 box-shadow: none; | 1575 box-shadow: none; |
1524 padding-left: 10px; | 1576 padding-left: 10px; |
1525 padding-right: 10px; | 1577 padding-right: 10px; |
1526 | 1578 |
1527 GtkArrow { -GtkArrow-arrow-scaling: 1; } | 1579 arrow { -GtkArrow-arrow-scaling: 1; } |
1528 | 1580 |
1529 .arrow { | 1581 .arrow { |
1530 -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); | 1582 -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); |
1531 color: transparentize($selected_fg_color,0.5); | 1583 color: transparentize($selected_fg_color,0.5); |
1532 -gtk-icon-shadow: none; | 1584 -gtk-icon-shadow: none; |
1533 } | 1585 } |
1534 } | 1586 } |
1535 } | 1587 } |
1536 } | 1588 } |
1537 | 1589 |
1590 // squared corners when the window is maximized, tiled, or fullscreen | |
1538 .tiled &, | 1591 .tiled &, |
1539 .maximized & { &:backdrop, & { border-radius: 0; }} // squared corners when the window is maximized or tiled | 1592 .tiled-top &, |
1593 .tiled-right &, | |
1594 .tiled-bottom &, | |
1595 .tiled-left &, | |
1596 .maximized &, | |
1597 .fullscreen & { | |
1598 &:backdrop, & { | |
1599 border-radius: 0; | |
1600 } | |
1601 } | |
1540 | 1602 |
1541 &.default-decoration { | 1603 &.default-decoration { |
1542 min-height: 28px; | 1604 min-height: 28px; |
1543 padding: 4px; | 1605 padding: 4px; |
1544 | 1606 |
1576 margin-top: 9px; | 1638 margin-top: 9px; |
1577 margin-bottom: 9px; | 1639 margin-bottom: 9px; |
1578 } | 1640 } |
1579 } | 1641 } |
1580 | 1642 |
1581 .background:not(.tiled):not(.maximized):not(.solid-csd) .titlebar { | 1643 .background .titlebar { |
1582 &:backdrop, & { | 1644 &:backdrop, & { |
1583 border-top-left-radius: 7px; | 1645 border-top-left-radius: 7px; |
1584 border-top-right-radius: 7px; | 1646 border-top-right-radius: 7px; |
1585 } | 1647 } |
1586 } | 1648 } |
1587 | 1649 |
1650 .background.tiled .titlebar, | |
1651 .background.tiled-top .titlebar, | |
1652 .background.tiled-right .titlebar, | |
1653 .background.tiled-bottom .titlebar, | |
1654 .background.tiled-left .titlebar, | |
1655 .background.maximized .titlebar, | |
1656 .background.solid-csd .titlebar { | |
1657 &:backdrop, & { | |
1658 border-top-left-radius: 0; | |
1659 border-top-right-radius: 0; | |
1660 } | |
1661 } | |
1662 | |
1588 headerbar { // headerbar border rounding | 1663 headerbar { // headerbar border rounding |
1589 window:not(.tiled):not(.maximized):not(.solid-csd) separator:first-child + &, // tackles the paned container case | 1664 |
1590 window:not(.tiled):not(.maximized):not(.solid-csd) &:first-child { &:backdrop, & { border-top-left-radius: 7px; }} | 1665 window separator:first-child + &, |
1591 window:not(.tiled):not(.maximized):not(.solid-csd) &:last-child { &:backdrop, & { border-top-right-radius: 7px; }} | 1666 window &:first-child { &:backdrop, & { border-top-left-radius: 7px; }} |
1592 window:not(.tiled):not(.maximized):not(.solid-csd) stack & { // tackles the stacked headerbars case | 1667 window &:last-child { &:backdrop, & { border-top-right-radius: 7px; }} |
1668 | |
1669 window stack & { // tackles the stacked headerbars case | |
1593 &:first-child, &:last-child { | 1670 &:first-child, &:last-child { |
1594 &:backdrop, & { | 1671 &:backdrop, & { |
1595 border-top-left-radius: 7px; | 1672 border-top-left-radius: 7px; |
1596 border-top-right-radius: 7px; | 1673 border-top-right-radius: 7px; |
1674 } | |
1675 } | |
1676 } | |
1677 | |
1678 window.tiled &, | |
1679 window.tiled-top &, | |
1680 window.tiled-right &, | |
1681 window.tiled-bottom &, | |
1682 window.tiled-left &, | |
1683 window.maximized &, | |
1684 window.fullscreen &, | |
1685 window.solid-csd & { | |
1686 &, &:backdrop { | |
1687 &, | |
1688 &:first-child, | |
1689 &:last-child, | |
1690 &:only-child { | |
1691 border-top-left-radius: 0; | |
1692 border-top-right-radius: 0; | |
1597 } | 1693 } |
1598 } | 1694 } |
1599 } | 1695 } |
1600 } | 1696 } |
1601 | 1697 |
1824 | 1920 |
1825 color: $fg_color; | 1921 color: $fg_color; |
1826 transition: none; //I shouldn't need this | 1922 transition: none; //I shouldn't need this |
1827 } | 1923 } |
1828 } | 1924 } |
1829 | |
1830 button:last-child { &:backdrop, & { border-right-style: none; }} | |
1831 } | 1925 } |
1832 | 1926 |
1833 button.dnd, | 1927 button.dnd, |
1834 header.button.dnd { // for treeview-like derive widgets | 1928 header.button.dnd { // for treeview-like derive widgets |
1835 &:active, &:selected, &:hover, & { | 1929 &:active, &:selected, &:hover, & { |
1871 &:disabled { | 1965 &:disabled { |
1872 border-color: $backdrop_bg_color; | 1966 border-color: $backdrop_bg_color; |
1873 background-image: none; | 1967 background-image: none; |
1874 } | 1968 } |
1875 } | 1969 } |
1970 | |
1971 &:last-child { &:backdrop, & { border-right-style: none; }} | |
1876 } | 1972 } |
1877 | 1973 |
1878 | 1974 |
1879 /********* | 1975 /********* |
1880 * Menus * | 1976 * Menus * |
1904 } | 2000 } |
1905 | 2001 |
1906 menu, | 2002 menu, |
1907 .menu, | 2003 .menu, |
1908 .context-menu { | 2004 .context-menu { |
1909 margin: 4px; | 2005 margin: 4px; // see https://bugzilla.gnome.org/show_bug.cgi?id=591258 |
1910 padding: 2px 0px; | 2006 padding: 2px 0px; |
1911 background-color: $menu_color; | 2007 background-color: $menu_color; |
1912 border: 1px solid $borders_color; // adds borders in a non composited env | 2008 border: 1px solid $borders_color; // adds borders in a non composited env |
1913 | 2009 |
1914 .csd & { border: none; } // axes borders in a composited env | 2010 .csd & { border: none; } // axes borders in a composited env |
2582 box-shadow: none; | 2678 box-shadow: none; |
2583 border-color: $selected_borders_color; | 2679 border-color: $selected_borders_color; |
2584 | 2680 |
2585 &:backdrop { border-color: $selected_borders_color; } | 2681 &:backdrop { border-color: $selected_borders_color; } |
2586 | 2682 |
2587 &.slider:dir(rtl) { border-left-color: $borders_color; } | 2683 slider:dir(rtl) { border-left-color: $borders_color; } |
2588 &.slider:dir(ltr) { border-right-color: $borders_color; } | 2684 slider:dir(ltr) { border-right-color: $borders_color; } |
2589 | 2685 |
2590 &.slider { &:checked, & { border-color: $selected_borders_color; } } | 2686 slider { &:checked, & { border-color: $selected_borders_color; } } |
2591 } | 2687 } |
2592 } | 2688 } |
2593 } | 2689 } |
2594 | 2690 |
2595 | 2691 |
2638 radio { | 2734 radio { |
2639 margin: 0 4px; | 2735 margin: 0 4px; |
2640 | 2736 |
2641 &:only-child { margin: 0; } | 2737 &:only-child { margin: 0; } |
2642 | 2738 |
2739 popover & { // when in a popover add more space between the label and the check, reset the other side margin. | |
2740 // See https://bugzilla.gnome.org/show_bug.cgi?id=779570 for details. | |
2741 &.left:dir(rtl) { | |
2742 margin-left: 0; | |
2743 margin-right: 12px; | |
2744 } | |
2745 | |
2746 &.right:dir(ltr) { | |
2747 margin-left: 12px; | |
2748 margin-right: 0; | |
2749 } | |
2750 } | |
2751 | |
2643 min-height: 14px; | 2752 min-height: 14px; |
2644 min-width: 14px; | 2753 min-width: 14px; |
2645 border: 1px solid; | 2754 border: 1px solid; |
2646 -gtk-icon-source: none; | 2755 -gtk-icon-source: none; |
2647 | 2756 |
3295 | 3404 |
3296 /************* | 3405 /************* |
3297 * Level Bar * | 3406 * Level Bar * |
3298 *************/ | 3407 *************/ |
3299 levelbar { | 3408 levelbar { |
3300 block { | 3409 &.horizontal { |
3301 min-width: 32px; | 3410 block { |
3302 min-height: 1px; | 3411 min-height: 1px; |
3303 } | 3412 } |
3304 | 3413 |
3305 &.vertical block { | 3414 &.discrete block { |
3306 min-width: 1px; | 3415 margin: 0 1px; |
3307 min-height: 32px; | 3416 min-width: 32px; |
3417 } | |
3418 } | |
3419 | |
3420 &.vertical { | |
3421 block { | |
3422 min-width: 1px; | |
3423 } | |
3424 | |
3425 &.discrete block { | |
3426 margin: 1px 0; | |
3427 min-height: 32px; | |
3428 } | |
3308 } | 3429 } |
3309 | 3430 |
3310 &:backdrop { transition: $backdrop_transition; } | 3431 &:backdrop { transition: $backdrop_transition; } |
3311 | 3432 |
3312 trough { | 3433 trough { |
3315 border-radius: 3px; | 3436 border-radius: 3px; |
3316 @include entry(normal); | 3437 @include entry(normal); |
3317 | 3438 |
3318 &:backdrop { @include entry(backdrop); } | 3439 &:backdrop { @include entry(backdrop); } |
3319 } | 3440 } |
3320 | |
3321 &.horizontal.discrete block { margin: 0 1px; } | |
3322 | |
3323 &.vertical.discrete block { margin: 1px 0; } | |
3324 | 3441 |
3325 block { | 3442 block { |
3326 border: 1px solid; | 3443 border: 1px solid; |
3327 border-radius: 1px; | 3444 border-radius: 1px; |
3328 | 3445 |
3724 /**************** | 3841 /**************** |
3725 * File chooser * | 3842 * File chooser * |
3726 ****************/ | 3843 ****************/ |
3727 $_placesidebar_icons_opacity: 0.7; | 3844 $_placesidebar_icons_opacity: 0.7; |
3728 | 3845 |
3846 row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sidebar icons | |
3847 // see bug #786613 for details | |
3848 // on this oddity | |
3849 | |
3729 placessidebar { | 3850 placessidebar { |
3730 > viewport.frame { border-style: none; } | 3851 > viewport.frame { border-style: none; } |
3731 | 3852 |
3732 row { | 3853 row { |
3733 // Needs overriding of the GtkListBoxRow padding | 3854 // Needs overriding of the GtkListBoxRow padding |
3749 | 3870 |
3750 &:disabled { color: $backdrop_insensitive_color; } | 3871 &:disabled { color: $backdrop_insensitive_color; } |
3751 } | 3872 } |
3752 | 3873 |
3753 image.sidebar-icon { | 3874 image.sidebar-icon { |
3754 opacity: $_placesidebar_icons_opacity; // dim the device icons | |
3755 | |
3756 &:dir(ltr) { padding-right: 8px; } | 3875 &:dir(ltr) { padding-right: 8px; } |
3757 &:dir(rtl) { padding-left: 8px; } | 3876 &:dir(rtl) { padding-left: 8px; } |
3758 } | 3877 } |
3759 | 3878 |
3760 label.sidebar-label { | 3879 label.sidebar-label { |
4033 border-top-right-radius: $_colorswatch_radius; | 4152 border-top-right-radius: $_colorswatch_radius; |
4034 border-bottom-right-radius: $_colorswatch_radius; | 4153 border-bottom-right-radius: $_colorswatch_radius; |
4035 } | 4154 } |
4036 } | 4155 } |
4037 | 4156 |
4038 &.dark overlay { | 4157 &.dark { |
4039 color: $selected_fg_color; | 4158 outline-color: transparentize(white, 0.4); |
4040 | 4159 |
4041 &:hover { border-color: if($variant == 'light', transparentize(black, 0.2), $borders_color); } | 4160 overlay { |
4042 | 4161 color: white; |
4043 &:backdrop { color: $backdrop_selected_fg_color; } | 4162 |
4044 } | 4163 &:hover { border-color: if($variant == 'light', transparentize(black, 0.2), $borders_color); } |
4045 | 4164 |
4046 &.light overlay { | 4165 &:backdrop { color: transparentize(white, 0.5); } |
4047 color: $text_color; | 4166 } |
4048 | 4167 } |
4049 &:hover { border-color: if($variant == 'light', transparentize(black, 0.5), $borders_color); } | 4168 |
4050 | 4169 &.light { |
4051 &:backdrop { color: $backdrop_text_color; } | 4170 outline-color: transparentize(black, 0.4); |
4171 | |
4172 overlay { | |
4173 color: black; | |
4174 | |
4175 &:hover { border-color: if($variant == 'light', transparentize(black, 0.5), $borders_color); } | |
4176 | |
4177 &:backdrop { color: transparentize(black, 0.5); } | |
4178 } | |
4052 } | 4179 } |
4053 | 4180 |
4054 &:drop(active) { | 4181 &:drop(active) { |
4055 box-shadow: none; | 4182 box-shadow: none; |
4056 | 4183 |
4182 transition: $backdrop_transition; | 4309 transition: $backdrop_transition; |
4183 } | 4310 } |
4184 | 4311 |
4185 .maximized &, | 4312 .maximized &, |
4186 .fullscreen &, | 4313 .fullscreen &, |
4187 .tiled & { border-radius: 0; } | 4314 .tiled &, |
4315 .tiled-top &, | |
4316 .tiled-right &, | |
4317 .tiled-bottom &, | |
4318 .tiled-left & { border-radius: 0; } | |
4188 | 4319 |
4189 .popup & { box-shadow: none; } | 4320 .popup & { box-shadow: none; } |
4190 | 4321 |
4191 // server-side decorations as used by mutter | 4322 // server-side decorations as used by mutter |
4192 .ssd & { box-shadow: 0 0 0 1px $_wm_border; } //just doing borders, wm draws actual shadows | 4323 .ssd & { box-shadow: 0 0 0 1px $_wm_border; } //just doing borders, wm draws actual shadows |
4340 stackswitcher button.text-button.circular { // FIXME aggregate with buttons | 4471 stackswitcher button.text-button.circular { // FIXME aggregate with buttons |
4341 min-width: 32px; | 4472 min-width: 32px; |
4342 min-height: 32px; | 4473 min-height: 32px; |
4343 padding: 0; | 4474 padding: 0; |
4344 } | 4475 } |
4476 | |
4477 | |
4478 /********* | |
4479 * Emoji * | |
4480 ********/ | |
4481 | |
4482 popover.emoji-picker { padding-left: 0; padding-right: 0; } | |
4483 | |
4484 button.emoji-section { | |
4485 border-color: transparent; | |
4486 border-width: 3px; | |
4487 border-style: none none solid; | |
4488 border-radius: 0; | |
4489 | |
4490 margin: 2px 4px 2px 4px; | |
4491 padding: 3px 0 0; | |
4492 min-width: 32px; | |
4493 min-height: 28px; | |
4494 | |
4495 /* reset props inherited from the button style */ | |
4496 background: none; | |
4497 box-shadow: none; | |
4498 text-shadow: none; | |
4499 | |
4500 outline-offset: -5px; | |
4501 | |
4502 &:backdrop:not(:checked) { border-color: transparent; } | |
4503 &:hover { border-color: $borders_color; } | |
4504 &:checked { border-color: $selected_bg_color; } | |
4505 | |
4506 label { | |
4507 padding: 0; | |
4508 | |
4509 opacity: 0.55; | |
4510 } | |
4511 | |
4512 &:hover label { opacity: 0.775; } | |
4513 &:checked label { opacity: 1; } | |
4514 } | |
4515 | |
4516 .emoji { | |
4517 font-size: x-large; | |
4518 padding: 6px; | |
4519 border-radius: 6px; | |
4520 | |
4521 :hover { | |
4522 background: $selected_bg_color; | |
4523 } | |
4524 } |