Skip to content

Commit

Permalink
Fixed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jul 7, 2021
1 parent 6bde64d commit a554711
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 23 deletions.
8 changes: 4 additions & 4 deletions View/Elements/Components/optAction.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
'class' => 'd-flex justify-content-center',
'id' => 'join-group.' . $idx
)); ?>
<?php print $this->Form->hidden('GroupName', array('default' => $group, 'id' => 'groupName.'.$idx)); ?>
<button class="btn btn-block btn-<?php echo $member ? 'danger' : 'success'; ?>" type="submit">
<?php echo $member ? _txt('pl.grouperlite.action.leave') : _txt('pl.grouperlite.action.join') ?> &nbsp;
<i class="fa fa-<?php echo $member ? 'user-times' : 'users'; ?> fa-sm"></i>
<?php print $this->Form->hidden('GroupName', array('default' => $group, 'id' => 'groupName.' . $idx)); ?>
<button class="btn btn-block btn-sm btn-<?php echo $member ? 'danger' : 'success'; ?>" type="submit">
<?php echo $member ? _txt('pl.grouperlite.action.leave') : _txt('pl.grouperlite.action.join') ?> &nbsp;
<i class="fa fa-<?php echo $member ? 'user-times' : 'users'; ?> fa-sm"></i>
</button>
<?php echo $this->Form->end(); ?>
10 changes: 5 additions & 5 deletions View/GrouperGroups/groupmember.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ $numColumns = count($columns);
<tbody>
<tr>
<td colspan="<?php echo $numColumns; ?>">
<p class="lead">Ad-hoc groups</p>
<p class="h6 fw-bold m-0">Ad-hoc groups</p>
</td>
</tr>
<?php foreach ($groupmemberships as $key => $group) : ?>
<tr>
<td class="pl-2"><a href="<?php echo $this->Html->url(
<td class="pl-3"><a href="<?php echo $this->Html->url(
array(
'controller' => 'grouper_groups',
'action' => 'groupinfo',
Expand All @@ -60,12 +60,12 @@ $numColumns = count($columns);
<?php foreach ($wgmemberships as $wggroup) : ?>
<tr>
<td colspan="<?php echo $numColumns; ?>">
<p class="lead fw-bold"><?php echo $wggroup['WGName'] ?? "No Name"; ?></p>
<p class="h6 fw-bold m-0"><?php echo $wggroup['WGName'] ?? "No Name"; ?></p>
</td>
</tr>
<?php foreach ($wggroup['Groups'] as $key => $group) : ?>
<tr class="pl-2">
<td class="pl-2"><a href="<?php echo $this->Html->url(
<tr>
<td class="pl-3"><a href="<?php echo $this->Html->url(
array(
'controller' => 'grouper_groups',
'action' => 'groupinfo',
Expand Down
8 changes: 4 additions & 4 deletions View/GrouperGroups/groupoptin.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ $numColumns = count($columns);
<tbody>
<tr>
<td colspan="<?php echo $numColumns; ?>">
<p class="lead fw-bold">Ad-hoc groups</p>
<p class="h6 fw-bold m-0">Ad-hoc groups</p>
</td>
</tr>
<?php foreach ($groupoptins as $key => $group) : ?>
<tr>
<td class="pl-2"><a href="<?php echo $this->Html->url(
<td class="pl-3"><a href="<?php echo $this->Html->url(
array(
'controller' => 'grouper_groups',
'action' => 'groupinfo',
Expand All @@ -61,12 +61,12 @@ $numColumns = count($columns);
<?php foreach ($wgoptins as $wgoptin) : ?>
<tr>
<td colspan="<?php echo $numColumns; ?>">
<p class="lead fw-bold"><?php echo $wgoptin['WGName'] ?? "No Name"; ?></p>
<p class="h6 fw-bold m-0"><?php echo $wgoptin['WGName'] ?? "No Name"; ?></p>
</td>
</tr>
<?php foreach ($wgoptin['Groups'] as $key => $group) : ?>
<tr>
<td class="pl-2"><a href="<?php echo $this->Html->url(
<td class="pl-3"><a href="<?php echo $this->Html->url(
array(
'controller' => 'grouper_groups',
'action' => 'groupinfo',
Expand Down
8 changes: 4 additions & 4 deletions View/GrouperGroups/groupowner.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ $numColumns = count($columns);
<tbody>
<tr>
<td colspan="<?php echo $numColumns; ?>">
<p class="lead fw-bold">Ad-hoc groups</>
<p class="h6 fw-bold m-0">Ad-hoc groups</>
</td>
</tr>
<?php foreach ($groupsowners as $group) : ?>
<tr>
<td class="pl-2"><a href="<?php echo $this->Html->url(
<td class="pl-3"><a href="<?php echo $this->Html->url(
array(
'controller' => 'grouper_groups',
'action' => 'groupinfo',
Expand Down Expand Up @@ -67,12 +67,12 @@ $numColumns = count($columns);
<?php foreach ($wgowners as $wgowner) : ?>
<tr>
<td colspan="<?php echo $numColumns; ?>">
<p class="lead fw-bold"><?php echo $wgowner['WGName'] ?? "No Name"; ?></p>
<p class="h6 fw-bold m-0"><?php echo $wgowner['WGName'] ?? "No Name"; ?></p>
</td>
</tr>
<?php foreach ($wgowner['Groups'] as $key => $group) : ?>
<tr>
<td class="pl-2"><a href="<?php echo $this->Html->url(
<td class="pl-3"><a href="<?php echo $this->Html->url(
array(
'controller' => 'grouper_groups',
'action' => 'groupinfo',
Expand Down
7 changes: 1 addition & 6 deletions webroot/css/co-grouper-base.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--red: #CC3333;
--red: #912929;
--blue: #1D7AB4;
--green: #22AA22;
--teal: #1c6070;
Expand All @@ -24,10 +24,5 @@
background-color: var(--danger);
border-color: var(--danger);
color: white;
filter: grayscale(20%);
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
}

.grouper .btn.btn-danger.btn-grouper:hover {
filter: none;
}

0 comments on commit a554711

Please sign in to comment.