Replace more custom button classes with Bootstrap counterparts

This commit is contained in:
Aaron van Geffen 2023-03-11 13:51:12 +01:00
parent 2d1a299fe0
commit cf31f0af07
3 changed files with 2 additions and 34 deletions

View File

@ -280,29 +280,12 @@ ul#nav li a:hover {
margin-bottom: 20px;
}
.album_button_box > a {
background: #fff;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
display: inline-block;
float: left;
font-size: 1em;
padding: 8px 10px;
margin-left: 12px;
}
/* Generic boxed content
--------------------------*/
.boxed_content {
background: #fff;
padding: 25px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.boxed_content h2 {
font: 300 24px "Open Sans", sans-serif;
margin: 0 0 0.2em;
}
/* Error pages
----------------*/
.errormsg p {
@ -333,21 +316,6 @@ footer a {
}
/* Input
----------*/
.btn-red {
background: #eebbaa;
border-color: #cc9988;
}
.btn-red:hover, .btn-red:focus {
border-color: #bb7766;
color: #000;
}
.btn-red:focus:not(:active) {
box-shadow: 0px 0px 0px 2px rgba(241, 70, 104, 0.25);
}
/* Login box styles
---------------------*/
#login {

View File

@ -22,7 +22,7 @@ class AlbumButtonBox extends Template
foreach ($this->buttons as $button)
echo '
<a href="', $button['url'], '">', $button['caption'], '</a>';
<a class="btn btn-light" href="', $button['url'], '">', $button['caption'], '</a>';
echo '
</div>';

View File

@ -242,7 +242,7 @@ class PhotoPage extends Template
echo '
<div id=user_actions_box>
<h3>Actions</h3>
<a class="btn btn-red" href="', BASEURL, '/', $this->photo->getSlug(), '?confirm_delete">Delete</a>
<a class="btn btn-danger" href="', BASEURL, '/', $this->photo->getSlug(), '?confirm_delete">Delete</a>
</div>';
}
}