Files
Popsu-coloque/web/themes/contrib/mediteran/css/components/buttons.css
T
2020-06-08 23:57:36 +02:00

223 lines
4.0 KiB
CSS

/**
* @file
*
* Apply these classes to any element (<link>, <button>, <input>, etc.) that
* should appear as a button.
*/
/* nav action links */
nav.action-links {
display: flex;
}
nav.action-links li {
margin-right: 20px;
}
nav.action-links li .button--small {
padding: 13px 24px;
}
/* action links */
.action-links {
margin: 0 0 20px 0;
padding: 0;
list-style: none;
}
.action-links li {
margin: 0;
padding: 0;
list-style: none;
}
.button,
.views-remove-link,
.views-remove-group-link {
box-sizing: border-box;
display: inline-block;
position: relative;
text-align: center;
text-transform: uppercase;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
padding: 13px 24px;
background-color: #f5f5f5;
color: #333;
text-decoration: none;
font-weight: 700;
font-size: 12px;
line-height: 1;
-webkit-transition: all 0.2s;
transition: all 0.2s;
-webkit-font-smoothing: antialiased;
border: 1px solid #b8b8b8;
margin-left: 0;
margin-top: 20px;
min-width: 100px;
width: 100%;
height: auto;
border-radius: 0;
}
.button:first-child {
margin-left: 0;
margin-top: 0;
}
.button:hover,
.button:focus,
.views-remove-link:hover,
.views-remove-link:focus,
.views-remove-group-link:hover,
.views-remove-group-link:focus {
background-color: white;
border-color: #0678be;
color: #0678be;
text-decoration: none;
outline: transparent;
}
/* small */
.button--small,
.views-remove-link,
.views-remove-group-link {
font-size: 12px;
padding: 6px 10px;
}
@media screen and (min-width: 640px) {
.button,
.views-remove-link,
.views-remove-group-link {
width: auto;
margin-left: 20px;
margin-top: 0;
}
.button {
margin-left: 0;
margin-right: 20px;
}
.button:last-child,
table .button:last-of-type {
margin-right: 0;
}
}
/* Prevent focus ring being covered by next siblings. */
.button:focus {
z-index: 10;
}
.button:active {
background-color: #dfdfd9;
-webkit-transition: none;
transition: none;
}
.button--primary {
padding: 13px 24px;
background-color: #7cbc48;
border-color: #7cbc48;
color: #fff;
font-weight: 700;
-webkit-font-smoothing: antialiased;
}
.button--primary:hover,
.button--primary:focus {
background-color: #6aab35;
border-color: #6aab35;
color: #fff;
}
/**
* Overrides styling from system.theme.
*/
.button-action:before {
margin-left: -0.2em; /* LTR */
padding-right: 0.2em; /* LTR */
font-size: 14px;
font-size: 0.875rem;
line-height: 16px;
-webkit-font-smoothing: auto;
}
[dir="rtl"] .button-action:before {
margin-right: -0.2em;
margin-left: 0;
padding-right: 0;
padding-left: 0.2em;
}
.button:disabled,
.button:disabled:active,
.button.is-disabled,
.button.is-disabled:active {
border-color: #d4d4d4;
background: #ededed;
color: #5c5c5c;
cursor: default;
}
/* Link actions.
* Style a clickable/tappable element as a link. Duplicates the base style for
* the <a> tag, plus a reset for padding, borders and background.
*/
.link {
display: inline;
cursor: pointer;
padding: 0 2px;
border: 0;
background: none;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
color: #0678be;
text-decoration: none;
font-weight: 700;
text-transform: uppercase;
}
.link:hover,
.link:focus {
text-decoration: none;
outline: transparent;
}
.link:hover {
color: #999;
}
/**
* We've temporarily added the danger button here, bit of a harsh reset but we
* need it.
* @todo replace with link--danger.
* See https://www.drupal.org/node/2123731
*/
.button--danger {
cursor: pointer;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
}
.button--danger:hover,
.button--danger:focus,
.button--danger:active {
color: #c72100;
border-color: #c72100;
background: none;
}
.button--danger:disabled,
.button--danger.is-disabled {
color: #737373;
cursor: default;
text-decoration: none;
-webkit-font-smoothing: antialiased;
box-shadow: none;
background: none;
}