/*
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
contact@meeds.io
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
//
// Buttons
// --------------------------------------------------
.btn {
	padding: @paddingDefault;
	border-bottom-color: @btnBorder;
    text-shadow: none!important;
    color: @btnColor;
	background-color: @btnBackgroundColor;
	background-image: @btnBackgroundImage;
    &:hover,
    &:focus {
      color: @btnColor;
	  background-color: @btnHoverBackgroundColor;
    }
}

.btn.dropdown-toggle {
	padding-right: 5px;
	background-color: @btnDropdownBackground;
	background-image: @btnDropdownImage;
}

.btn-primary{
	font-family: @sansBoldFontFamily;
	font-weight: bold;
	.buttonBackgroundEXO(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight, @btnPrimaryBorder, @btnPrimaryColor);
}

.btn-primary:hover {
	background-color: @btnPrimaryHoverBackgroundColor;
	background-position: @btnPrimaryHoverBackgroundPosition;
}

.uiAction .btn:first-child {
	.btn-primary;
}

.uiAction {
	padding: 15px 0 0;
	text-align: center;
	.btn {
		margin: 0 5px;
		min-width: 50px;
	}
}

.uiActionBorder{
	border-top: @uiActionBorderBorderTop;
	text-align: center;
	padding: 15px 0;
	margin-top: @uiActionBorderMarginTop;
	margin-left: -15px;
	margin-right: -15px;
}

.uiCreateToolBarPortlet {
  .uiActionBorder {
    margin-left: 0;
    margin-right: 0;
  }

  span.dropdown-menu {
    padding: 10px;
  }
}

.uiBox() {
	 .uiContentBox {
		.uiAction.uiActionBorder{
			margin: 15px -15px 0;
			padding-bottom: 0;
		}
		.uiAction {
			padding-top: 15px;
		}
	}
}

.uiBox.uiFormWithTitle {
	.uiContentBox {
		.uiActionBorder{
			margin: 10px -15px 0;
		}
	}
}

.uiPortalComposer {
	.uiAction {
		padding: 15px 0;
	}
}

.btn:focus{
	background-position: 0 0;
}

h1,h2,h3,h4 {
	.btn + .btn{
	font-weight: normal;
	}
}


///// Size Button


// X-large
.btn-xlarge {
	font-size: @fontsizeXlarge;
	padding: @paddingXLarge;
}

// Large
.btn-large {
  padding: @paddingLarge;
}

// Small
.btn-small {
  padding: @paddingSmall;
}

// Mini
.btn-mini {
	padding: @paddingMini;
	.border-radius(@borderRadiusSmall - 1px);
}

// Extra (padding-left = padding-right = 15px)
.extra-btn {
	padding-left: 15px;
	padding-right: 15px;
}

.btn.disabled, .btn[disabled] {
  color: @btnDisableColor;
  background-color: @btnDisableBackground;
}

.btn.btn-primary.disabled,
.btn.btn-primary[disabled] {
	background-color: @btnPrimaryDisableBackground;
}

.btn.btn-primary.disabled:hover,
.btn.btn-primary[disabled]:hover {
	background-color: @btnPrimaryDisableHoverBackground;
}

.uiAction .btn-primary.disabled:first-child,
.uiAction .btn-primary[disabled]:first-child ,
.btn-primary[disabled]:first-child,
.btn-primary[disabled],
.uiAction .btn.disabled:first-child,
.uiAction .btn[disabled]:first-child {
	color: @btnPrimaryColor
}

@media (max-width: 480px) {
    .uiAction .btn {
        display: block;
        margin: 5px auto!important;
        width: 80%;
    }
}