cat-bookmarker/assets/css/app.css

203 lines
3.3 KiB
CSS

/* This file is for your main application CSS */
/*@import "./phoenix.css";*/
.inline { display: inline; }
.center-text { text-align: center; }
.center-box-inner {
margin-left: auto;
margin-right: auto;
}
body {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
margin: 0;
padding: 0;
}
h1,h2,h3,h4,h5,h6 {
font-family: "Lucida Console", Monaco, monospace;
}
h2 { font-size: 2em; }
img {
height: 50vh;
}
button {
padding: 10px;
margin: 5px;
background-color: #bde0fe;
}
button:hover { background-color: #a2d2ff; }
button.active { background-color: #ffc8dd; }
button.active:hover { background-color: #ffafcc }
.main-container {
width: 70%;
margin-left: auto;
margin-right: auto;
}
.random-image {
display: block;
}
.form-container {
width: 500px;
max-width: 80%;
margin-left: auto;
margin-right: auto;
}
.form-label {
margin-bottom: 5px;
}
input {
font-family: "Lucida Console", Monaco, monospace;
width: 100%;
padding: 10px;
}
button.form-submit-button {
min-width: 40%
}
img.collection-image {
height: auto;
max-width: 75%;
}
p.collection-note {
font-style: italic;
}
.collection-item-caption {
display: flex;
flex-direction: row;
align-items: center;
margin-top: 5px;
margin-bottom: 20px;
}
/* Alerts and form errors used by phx.new */
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}
.alert-info {
color: #31708f;
background-color: #d9edf7;
border-color: #bce8f1;
}
.alert-warning {
color: #8a6d3b;
background-color: #fcf8e3;
border-color: #faebcc;
}
.alert-danger {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
}
.alert p {
margin-bottom: 0;
}
.alert:empty {
display: none;
}
.invalid-feedback {
color: #a94442;
display: block;
margin: -1rem 0 2rem;
}
/* LiveView specific classes for your customization */
.phx-no-feedback.invalid-feedback,
.phx-no-feedback .invalid-feedback {
display: none;
}
.phx-click-loading {
opacity: 0.5;
transition: opacity 1s ease-out;
}
.phx-loading{
cursor: wait;
}
.phx-modal {
opacity: 1!important;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
}
.phx-modal-content {
background-color: #fefefe;
margin: 15vh auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
.phx-modal-close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.phx-modal-close:hover,
.phx-modal-close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
.fade-in-scale {
animation: 0.2s ease-in 0s normal forwards 1 fade-in-scale-keys;
}
.fade-out-scale {
animation: 0.2s ease-out 0s normal forwards 1 fade-out-scale-keys;
}
.fade-in {
animation: 0.2s ease-out 0s normal forwards 1 fade-in-keys;
}
.fade-out {
animation: 0.2s ease-out 0s normal forwards 1 fade-out-keys;
}
@keyframes fade-in-scale-keys{
0% { scale: 0.95; opacity: 0; }
100% { scale: 1.0; opacity: 1; }
}
@keyframes fade-out-scale-keys{
0% { scale: 1.0; opacity: 1; }
100% { scale: 0.95; opacity: 0; }
}
@keyframes fade-in-keys{
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes fade-out-keys{
0% { opacity: 1; }
100% { opacity: 0; }
}