< prev index next >

modules/javafx.controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css

Print this page


   1 /*
   2  * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


1968         linear-gradient(to bottom,
1969             derive(-fx-background,10%) 0%,
1970             derive(-fx-background,-5%) 12%,
1971             derive(-fx-background,15%) 88%,
1972             derive(-fx-background,-10%) 100%);
1973     -fx-background-insets: 0, 1;
1974     -fx-background-radius: 6, 5;
1975     -fx-padding: 1em; /* 12 */
1976     -fx-effect: dropshadow( gaussian , rgba(0,0,0,0.2) , 12, 0.0 , 0 , 8 );
1977 }
1978 .color-palette > .color-picker-grid {
1979     -fx-padding: 0.5px;
1980     -fx-snap-to-pixel: false;
1981 }
1982 .color-palette > .color-picker-grid > .color-square {
1983     -fx-background-color: transparent;
1984     -fx-padding: 0.5px;
1985 }
1986 /* the color over which the user is hovering */
1987 .color-palette-region > .color-square.hover-square {
1988     -fx-background-color: -fx-faint-focus-color, -fx-focus-color;
1989     -fx-background-insets: -3,-1;
1990     -fx-background-radius: 5,0;
1991     -fx-scale-x: 1.5;
1992     -fx-scale-y: 1.5;


1993 }
1994 /* ------- CUSTOM COLOR DIALOG ------- */
1995 .custom-color-dialog > .color-rect-pane {
1996     -fx-spacing: 0.75em;
1997     -fx-pref-height: 16.666667em;
1998     -fx-alignment: top-left;
1999     -fx-fill-height: true;
2000 }
2001 
2002 .custom-color-dialog .color-rect-pane .color-rect {
2003     -fx-min-width: 16.666667em;
2004     -fx-min-height: 16.666667em;
2005 }
2006 
2007 .custom-color-dialog .color-rect-pane .color-rect-border {
2008     -fx-border-color: derive(-fx-base, -20%);
2009 }
2010 
2011 .custom-color-dialog > .color-rect-pane #color-rect-indicator {
2012     -fx-background-color: null;


   1 /*
   2  * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


1968         linear-gradient(to bottom,
1969             derive(-fx-background,10%) 0%,
1970             derive(-fx-background,-5%) 12%,
1971             derive(-fx-background,15%) 88%,
1972             derive(-fx-background,-10%) 100%);
1973     -fx-background-insets: 0, 1;
1974     -fx-background-radius: 6, 5;
1975     -fx-padding: 1em; /* 12 */
1976     -fx-effect: dropshadow( gaussian , rgba(0,0,0,0.2) , 12, 0.0 , 0 , 8 );
1977 }
1978 .color-palette > .color-picker-grid {
1979     -fx-padding: 0.5px;
1980     -fx-snap-to-pixel: false;
1981 }
1982 .color-palette > .color-picker-grid > .color-square {
1983     -fx-background-color: transparent;
1984     -fx-padding: 0.5px;
1985 }
1986 /* the color over which the user is hovering */
1987 .color-palette-region > .color-square.hover-square {
1988     -fx-background-color: -fx-faint-focus-color, white;
1989     -fx-background-insets: -3,-1;
1990     -fx-background-radius: 5,0;
1991     -fx-scale-x: 1.5;
1992     -fx-scale-y: 1.5;
1993     -fx-border-color: -fx-focus-color;
1994     -fx-border-insets: -1, -1;
1995 }
1996 /* ------- CUSTOM COLOR DIALOG ------- */
1997 .custom-color-dialog > .color-rect-pane {
1998     -fx-spacing: 0.75em;
1999     -fx-pref-height: 16.666667em;
2000     -fx-alignment: top-left;
2001     -fx-fill-height: true;
2002 }
2003 
2004 .custom-color-dialog .color-rect-pane .color-rect {
2005     -fx-min-width: 16.666667em;
2006     -fx-min-height: 16.666667em;
2007 }
2008 
2009 .custom-color-dialog .color-rect-pane .color-rect-border {
2010     -fx-border-color: derive(-fx-base, -20%);
2011 }
2012 
2013 .custom-color-dialog > .color-rect-pane #color-rect-indicator {
2014     -fx-background-color: null;


< prev index next >