Commit 5cae52ef authored by Liam's avatar Liam Committed by Rebecca Blundell

Bug #1765276: A few raw theme fixes, mostly changing card-heading to card-header

Change-Id: Ia6e8911a4f416385577d5841302db38a2f7fc2bd
parent ad5c0436
......@@ -27,7 +27,7 @@
}
}
.card-quarter .card-heading a {
.card-quarter .card-header a {
font-family: $font-family-sans-serif;
font-weight: 300;
}
......@@ -23,3 +23,16 @@ div.admin-title a {
color: inherit;
}
}
// Remove the weird smaller button in the approve friend request box
.btn-text,
button.btn-text:not(:disabled):not(.disabled) {
border: 0;
box-shadow: none;
&:active {
box-shadow: none;
background-color: transparent;
border-width: 0;
color: inherit;
}
}
......@@ -7,3 +7,11 @@
}
}
}
.card.bg-warning {
.card-header a {
border-width: 0;
}
.card-body {
background-color: inherit;
}
}
......@@ -5,7 +5,7 @@
{if $wallposts}
{foreach from=$wallposts item=wallpost}
<div class="card {if $wallpost->private}card bg-warning{else}card-secondary{/if} wallpost">
<h4 class="card-heading has-link">
<h4 class="card-header has-link">
<a href="{$wallpost->profileurl}" class="userinfo has-user-icon">
<span class="user-icon left">
<img src="{profile_icon_url user=$wallpost maxheight=60 maxwidth=60}" alt="{str tag=profileimagetext arg1=$wallpost|display_default_name}" />
......@@ -14,7 +14,7 @@
</a>
{if $wallpost->deletable}
<a href="{$WWWROOT}blocktype/wall/deletepost.php?postid={$wallpost->postid}&return={if $wholewall}wall{else}profile{/if}" class="card-control card-header-action">
<span class="icon icon-trash left text-danger icon-lg" role="presentation" aria-hidden="true"></span>
<span class="icon icon-trash left text-danger icon-sm" role="presentation" aria-hidden="true"></span>
<span class="sr-only">{str tag='delete' section='blocktype.wall'}</span>
</a>
{/if}
......
......@@ -145,7 +145,7 @@
}
// Specific card-block styling for the edit page layout
.card-block.blockinstance > .card-heading > .blockinstance-header {
.card-block.blockinstance > .card-header > .blockinstance-header {
display: block;
padding-left: 10px;
padding-right: 80px;
......@@ -356,6 +356,9 @@
.heading {
margin: 0;
}
.checkbox {
display: inline-block;
}
}
// Used to make the forum settings look like it should
......
......@@ -197,7 +197,7 @@ td.action-list-copy {
// Often the same template is used to render buttons at the top of the page and
// in a list group. cf. groups table/groups
.list-group,
.card-heading {
.card-header {
.btn-group-top {
@include clearfix;
text-align: right;
......@@ -205,7 +205,7 @@ td.action-list-copy {
margin-top: 10px;
@include media-breakpoint-up(md) {
@include clearfix;
margin-top: -10px;
margin-top: -13px;
margin-bottom: 11px;
}
.btn {
......
......@@ -6,7 +6,7 @@
opacity: 0.7;
a:hover &,
.card-heading:hover & {
.card-header:hover & {
opacity: 1;
}
.card-block & {
......
......@@ -82,7 +82,7 @@
padding-left: 53px;
}
.card-heading {
.card-header {
a.has-user-icon , a.has-user-icon.collapsed {
padding-left:65px; //make room for user image
}
......
......@@ -128,7 +128,7 @@
}
.filelist-wrapper {
.card-heading {
.card-header {
padding: 10px 0 10px 20px;
margin-bottom: 10px;
}
......
......@@ -71,7 +71,7 @@
white-space: nowrap;
max-width: 100%;
}
.card-heading {
.card-header {
font-weight: 300;
}
}
......
......@@ -55,7 +55,7 @@ body {
.columns3,
.columns4,
.columns5 {
.wallpost .card-heading {
.wallpost .card-header {
font-size: 12px;
padding-right:40px;
h4 {
......
......@@ -159,7 +159,7 @@
&.has-attachment {
border-radius: $border-radius-sm;
border-width: 1px;
.card-heading a {
.card-header a {
border-width: 0;
&:not(.collapsed) {
border-bottom-width: 1px;
......@@ -170,7 +170,7 @@
// Remove border from heading - add to link tag.
// In this case we have a nested a tag that takes up the whole of the heading space
// rather than applying the card-header to the link
.card-heading {
.card-header {
border: 0;
a {
text-shadow: 1px 0 0 $text-shadow;
......@@ -178,7 +178,7 @@
}
&.card-primary{
.card-heading a {
.card-header a {
font-weight: bold;
}
}
......@@ -195,18 +195,18 @@
.card-body,
.card-footer,
.card-heading a {
.card-header a {
border: 1px solid $card-border-color;
}
.card-heading a,
.card-header a,
.card-body:not(.no-footer) {
border-bottom-width: 0;
}
// last class will add bottom border to collapsible element(s)
// Except has-attachment, it doesn't need one.
&.last .card-heading a.collapsed {
&.last .card-header a.collapsed {
border-bottom-width: 1px;
}
}
......
......@@ -49,7 +49,7 @@
}
}
&.card-warning {
> .card-heading, .card-heading-nested {
> .card-header, .card-heading-nested {
border-left: 4px solid $card-secondary-border;
background-color: $card-warning-heading-bg;
border-bottom: 1px solid $card-warning-border;
......
......@@ -79,7 +79,7 @@
.ui-sortable-helper .blockinstance-controls {
display: none;
}
.ui-sortable-helper.card-block.blockinstance > .card-heading > .blockinstance-header {
.ui-sortable-helper.card-block.blockinstance > .card-header > .blockinstance-header {
padding-right: 0;
}
......
......@@ -112,7 +112,7 @@ h2 {
}
h2, h3, h4, h5, legend {
&.card-heading {
&.card-header {
margin: 0;
font-size: 16px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment