hugo-theme-hello-friend/source/css/buttons.css

118 lines
2 KiB
CSS
Raw Normal View History

2018-07-20 19:14:22 +02:00
.button-container {
display: table;
margin-left: auto;
margin-right: auto;
}
2018-07-24 23:35:46 +02:00
button,
2018-07-20 19:14:22 +02:00
.button,
a.button {
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 8px 18px;
margin-bottom: 5px;
background: var(--light-background-secondary);
text-decoration: none;
text-align: center;
font-weight: 500;
border-radius: 8px;
border: 1px solid transparent;
appearance: none;
cursor: pointer;
outline: none;
.dark-theme & {
background: var(--dark-background-secondary);
2018-07-24 23:35:46 +02:00
color: inherit;
2018-07-20 19:14:22 +02:00
}
/* variants */
&.outline {
background: transparent;
2018-07-24 23:35:46 +02:00
border-color: var(--light-background-secondary);
2018-07-20 19:14:22 +02:00
box-shadow: none;
padding: 8px 18px;
2018-07-24 23:35:46 +02:00
.dark-theme & {
border-color: var(--dark-background-secondary);
color: inherit;
}
2018-07-20 19:14:22 +02:00
:hover {
transform: none;
box-shadow: none;
}
}
&.primary {
box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
&:hover {
box-shadow: 0 2px 6px rgba(50, 50, 93, .21), 0 1px 3px rgba(0, 0, 0, .08);
}
}
&.link {
background: none;
font-size: 1rem;
}
/* sizes */
&.small {
font-size: .8rem;
}
&.wide {
min-width: 200px;
padding: 14px 24px;
}
}
a.read-more,
a.read-more:hover,
a.read-more:active {
display: inline-flex;
background: none;
box-shadow: none;
padding: 0;
margin: 20px 0;
font-weight: bold;
.dark-theme & {
background: none;
}
}
2018-09-04 09:16:52 +02:00
.code-toolbar {
margin-bottom: 20px;
.toolbar-item a {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 3px 8px;
margin-bottom: 5px;
background: var(--light-background-secondary);
text-decoration: none;
text-align: center;
font-size: 13px;
font-weight: 500;
border-radius: 8px;
border: 1px solid transparent;
appearance: none;
cursor: pointer;
outline: none;
.dark-theme & {
background: var(--dark-background-secondary);
color: inherit;
}
}
}