/* Copyright 2015 Sam Hewitt. * * This file is part of the Paper GTK theme. * * The Paper GTK theme is free software: you can redistribute it * and/or modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * The Paper GTK theme is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * Public License for more details. * * You should have received a copy of the GNU General Public License along * with the Paper GTK theme. If not, see http://www.gnu.org/licenses/. */ /****************** * Message Dialogs * *******************/ .message-dialog { padding: 0px; border-radius: 4px; border: none; outline: none; box-shadow: none; background: @background; -GtkDialog-button-spacing: 0; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; } .window-frame.message-dialog, .window-frame.message-dialog:backdrop { border-radius: 4px; } .message-dialog.csd { border-radius: 0 0 4px 4px; background: @background; box-shadow: 0 3px 6px alpha (#000, 0.16), 0 3px 6px alpha (#000, 0.23); margin: 0; } .message-dialog .titlebar, .message-dialog .header-bar { padding:0; border: none; border-radius: 4px 4px 0 0; background-color: @header; color: @header_text; box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.1), inset 0 -1px 0 0 rgba(0,0,0,0.1), inset 0 -3px 3px -4px alpha(#000, 0.4); } .message-dialog .titlebar:backdrop, .message-dialog .header-bar:backdrop { background-image: none; background-color: @backdrop_header; color: @backdrop_header_text; } .message-dialog .titlebar:insensitive, .message-dialog .header-bar:insensitive { color: @insensitive_header_text; } .message-dialog.csd.background { padding: 0px; margin: 0px; background: @background; box-shadow: none; } .message-dialog .titlebar .title { padding: 0px; color: @header_text; } .message-dialog .titlebar .title:backdrop { color: @backdrop_header_text; } /* Buttons */ .message-dialog.csd .dialog-action-area { padding: 0; } .message-dialog .dialog-action-area .button { border-radius: 0; padding: 0; font: bold; /*padding: 8px;*/ } .message-dialog.csd .dialog-action-area .button { border-radius: 0; border: none; background-image: none; background-color: transparent; color: @text; } .message-dialog.csd .dialog-action-area .button:hover { border: none; background-image: none; background-color: transparent; color: @selection; } .message-dialog.csd .dialog-action-area .button:active { border: none; background-image: none; background-color: transparent; color: @text; } .message-dialog.csd .dialog-action-area .button:insensitive { border: 0px solid @insensitive_border; background-color: @insensitive_background; color: @insensitive_text; } .message-dialog.csd .dialog-action-area .button:backdrop { border: 0px solid @backdrop_border; background-color: @backdrop_background; color: @backdrop_text; } .message-dialog.csd .dialog-action-area .button:backdrop:insensitive { border: 0px solid mix(@insensitive_border, @backdrop_border, 0.5); background-color: mix(@insensitive_background, @backdrop_background, 0.5); color: mix(@insensitive_text, @backdrop_text, 0.5); } .message-dialog.csd .dialog-action-area .button:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .button.titlebutton:insensitive > .label, .message-dialog.csd .dialog-action-area .titlebar .button.titlebutton:insensitive > .label, .message-dialog.csd .dialog-action-area .button:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .button.titlebutton:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .titlebar .button.titlebutton:backdrop:insensitive > .label { color: inherit; } /* Suggested Action Button */ .message-dialog.csd .dialog-action-area .button.suggested-action { border: 0px solid @suggested_action_button; background-color: @suggested_action_button; color: @suggested_action_button_foreground; } .message-dialog.csd .dialog-action-area .button.suggested-action:hover { border: 0px solid shade(@suggested_action_button, 1.2); background-color: shade(@suggested_action_button, 1.2); color: @suggested_action_button_foreground; } .message-dialog.csd .dialog-action-area .button.suggested-action:active { border: 0px solid shade(@suggested_action_button, 1.1); background-color: shade(@suggested_action_button, 1.1); color: @suggested_action_button_foreground; } .message-dialog.csd .dialog-action-area .button.suggested-action:backdrop { border: 0px solid @backdrop_border; background-color: @backdrop_background; color: @backdrop_text; } .message-dialog.csd .dialog-action-area .button.suggested-action:insensitive { border: 0px solid @insensitive_border; background-color: @insensitive_background; color: @insensitive_text; } .message-dialog.csd .dialog-action-area .button.suggested-action:backdrop:insensitive { border: 0px solid mix(@insensitive_border, @backdrop_border, 0.5); background-color: mix(@insensitive_background, @backdrop_background, 0.5); color: mix(@insensitive_text, @backdrop_text, 0.5); } .message-dialog.csd .dialog-action-area .button.suggested-action:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .suggested-action.button.titlebutton:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .titlebar .suggested-action.button.titlebutton:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .button.suggested-action:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .suggested-action.button.titlebutton:insensitive > .label, .message-dialog.csd .dialog-action-area .titlebar .suggested-action.button.titlebutton:insensitive > .label { color: inherit; } /* Destructive Action Button */ .message-dialog.csd .dialog-action-area .button.destructive-action { border: 0px solid @destructive_action_button_border; background-color: @destructive_action_button; color: @destructive_action_button_foreground; } .message-dialog.csd .dialog-action-area .button.destructive-action:hover { border: 0px solid shade(@destructive_action_button_border, 1.1); background-color: shade(@destructive_action_button, 1.1); color: @destructive_action_button_foreground; } .message-dialog.csd .dialog-action-area .button.destructive-action:active { border: 0px solid @destructive_action_button_border; background-color: @destructive_action_button; color: @destructive_action_button_foreground; } .message-dialog.csd .dialog-action-area .button.destructive-action:backdrop { border: 0px solid @backdrop_border; background-color: @backdrop_background; color: @backdrop_text; } .message-dialog.csd .dialog-action-area .button.destructive-action:insensitive { border: 0px solid @insensitive_border; background-color: @insensitive_background; color: @insensitive_text; } .message-dialog.csd .dialog-action-area .button.destructive-action:backdrop:insensitive { border: 0px solid mix(@insensitive_border, @backdrop_border, 0.5); background-color: mix(@insensitive_background, @backdrop_background, 0.5); color: mix(@insensitive_text, @backdrop_text, 0.5); } .message-dialog.csd .dialog-action-area .button.destructive-action:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .destructive-action.button.titlebutton:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .titlebar .destructive-action.button.titlebutton:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .button.destructive-action:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .destructive-action.button.titlebutton:insensitive > .label, .message-dialog.csd .dialog-action-area .titlebar .destructive-action.button.titlebutton:insensitive > .label { color: inherit; } .message-dialog.csd .dialog-action-area .button, .message-dialog.csd .dialog-action-area .button:hover, .message-dialog.csd .dialog-action-area .button:active, .message-dialog.csd .dialog-action-area .button:insensitive, .message-dialog.csd .dialog-action-area .button:backdrop, .message-dialog.csd .dialog-action-area .button:backdrop:insensitive, .message-dialog.csd .dialog-action-area .button.suggested-action, .message-dialog.csd .dialog-action-area .button.suggested-action:hover, .message-dialog.csd .dialog-action-area .button.suggested-action:active, .message-dialog.csd .dialog-action-area .button.suggested-action:backdrop, .message-dialog.csd .dialog-action-area .button.suggested-action:backdrop:insensitive, .message-dialog.csd .dialog-action-area .button.suggested-action:insensitive, .message-dialog.csd .dialog-action-area .button.destructive-action, .message-dialog.csd .dialog-action-area .button.destructive-action:hover, .message-dialog.csd .dialog-action-area .button.destructive-action:active, .message-dialog.csd .dialog-action-area .button.destructive-action:backdrop, .message-dialog.csd .dialog-action-area .button.destructive-action:backdrop:insensitive, .message-dialog.csd .dialog-action-area .button.destructive-action:insensitive { border-left-style: solid; border-right-style: none; border-bottom-style: none; } .message-dialog.csd .dialog-action-area .button:last-child { /*border-bottom-right-radius: 7px;*/ } .message-dialog.csd .dialog-action-area .button:first-child { border-left-style: none; /*border-bottom-left-radius: 7px;*/ }