Skip to content

Commit

Permalink
Create 1.2.1 Release (#193)
Browse files Browse the repository at this point in the history
* INTERIM-175 Just in case Suitcase Interim is being used on admin pages.

* INTERIM-172 Begin working on exposed filers.

* INTERIM-172 Select list margin

* INTERIM-172 Working with margins over fields

* INTERIM-172 Working with label spacing

* INTERIM-173 Remove black bars above/below embedded videos (#185)

* INTERIM-173 Remove black bars above/below embedded videos

* INTERIM-173 Make sure video doesn't overflow its container

* INTERIM-172 Adjust alignment with the submit buttons

* INTERIM-178 Adjust padding on the top and bottom full Mega Panels panes (#187)

* Interim 180 (#188)

* INTERIM-180 Add classes for full-width layout

* INTERIM-180 Adjust spacing

* LUGG-1160 Override luggage_video CSS for sizing videos to be more responsive on suitcase_interim (#189)

* LUGG-1165 Duplicate content template to add ARIA role to alerts. (#190)

* INTERIM-29 Add a class to make a content link look like a button. (#191)

* INTERIM-29 Add a class to make a content link look like a button.

* INTERIM-29 Duplicate the button style in ckeditor

* LUGG-1187 Add link for Workday (#192)
  • Loading branch information
angelamnr authored Jul 2, 2019
1 parent ad96040 commit 5c6becd
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 18 deletions.
15 changes: 15 additions & 0 deletions ckeditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ blockquote {

blockquote p { margin-top: 0; }

a.link-button {
display: inline-block;
padding: 0.25rem 0.5rem;
color: #ffffff;
font-weight: 700;
text-decoration: none;
background: #cc0000;
border-radius: 3px;
transition: background 0.2s ease;
}

a.link-button:hover {
background: #333333;
}

/* -------------------- */
/* ## General indentation & positioning classes */
/* -------------------- */
Expand Down
184 changes: 168 additions & 16 deletions css/suitcase.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,27 @@
e. Misc Typography
f. Figures & Images
g. Forms
02. COMPONENTS
02. EXPOSED FILTERS
03. COMPONENTS
a. Pagination
b. Media Card
c. Icon Menus
d. Social Menus
03. UTILITY
04. GRID
05. HEADER
04. UTILITY
05. GRID
06. HEADER
a. ISU Menu Bar
b. Site Name
c. Header Search
d. Header Search Menu
06. MENU
07. MENU
a. Sticky Menu
07. SECONDARY MENU
08. BREADCRUMBS
09. ALERTS
10. TABS
08. SECONDARY MENU
09. BREADCRUMBS
10. ALERTS
11. TABS
a. Secondary Tabs
11. FOOTER
12. FOOTER
HOME
Expand Down Expand Up @@ -208,6 +209,28 @@ a:hover {
margin-bottom: 1rem;
}

/* --- Content Buttons --- */
/* Add the link-button class to a link in CKEditor to style it like
* a button. Remember, the link-button needs to be added to the list of
* allowed classes in the Text Formatter.
*/

a.link-button {
display: inline-block;
padding: 0.25rem 0.5rem;
color: #ffffff;
font-weight: 700;
text-decoration: none;
background: #cc0000;
border-radius: 3px;
transition: background 0.2s ease;
}

a.link-button:hover {
background: #333333;
}


/* --- Read More --- */

.read-more {
Expand Down Expand Up @@ -503,8 +526,9 @@ input[type="time"],
input[type="url"],
input[type="week"] {
height: auto;
min-height: 2.25rem;
max-width: 100%;
padding: 0.5rem;
padding: 0.525rem;
border: 1px solid #ddd;
border-radius: 2px;
}
Expand Down Expand Up @@ -541,23 +565,55 @@ input[type=submit].form-submit {
padding-right: 0.5rem;
}

/* Views Forms */
/* -------------------- */
/* ## EXPOSED FILTERS
/* -------------------- */
/* Overrides styles from views.css */

.views-exposed-widgets {
display: flex;
align-items: flex-end;
flex-wrap: wrap;
align-items: flex-start;
}

.views-exposed-widgets .form-submit {
height: 2.25rem;
margin-top: 0;
.views-exposed-form .views-exposed-widget {
float: none;
padding: 0;
margin: 0 1em 1em 0;
}

.form-required {
color: #cc0000;
}

.views-exposed-form label {
margin-bottom: 0.25rem;
}

.form-radios label {
font-weight: normal
}

.views-exposed-form .views-exposed-widget .form-submit {
height: 2.25rem;
margin-top: 1.75rem;
}

/* Select Lists */
.form-type-select select {
margin-top: 0;
margin-bottom: 0.5rem;
}

/* Date Filter */
.views-exposed-widget.views-widget-filter-date_filter {
flex-shrink: 0;
}

.views-exposed-form .container-inline-date .date-padding {
display: flex;
align-items: center;
}

/* -------------------- */
/* ## COMPONENTS
Expand Down Expand Up @@ -1667,6 +1723,20 @@ ul.tabs.secondary img {
margin-bottom: 1rem;
}

.megapanels-wrapper_full_top,
.megapanels-wrapper_full_bottom {
margin-right: 0.5rem;
margin-left: 0.5rem;
}

@media (max-width: 740px) {
.megapanels-wrapper_full_top,
.megapanels-wrapper_full_bottom {
margin-right: 2rem;
margin-left: 2rem;
}
}

@media (min-width: 1141px) {

.megapanels-pane:first-child:nth-last-child(4),
Expand Down Expand Up @@ -1695,6 +1765,65 @@ ul.tabs.secondary img {
}
}

/* --- Full Width Option --- */
/* Add these classes to the Panel Page in General Settings. Supplement
* with the CSS code field.
*/

.megapanels_full-width .zone-content {
max-width: 100% !important;
width: 100%;
margin: 0;
}

.megapanels_full-width .grid-12 {
width: 100% !important;
margin: 0;
}

.megapanels_full-width .megapanels-wrapper_full_top,
.megapanels_full-width .megapanels-wrapper_full_bottom {
margin-right: 0;
margin-left: 0;
}

.megapanels_full-width.megapanels_content-contained .megapanels-row {

}

/* Mimic container-12 */

@media (max-width: 740px) {
.megapanels_full-width.megapanels_content-contained .megapanels-row {
margin-right: 0;
margin-left: 0;
}
}
@media (min-width: 740px) {
.megapanels_full-width.megapanels_content-contained .megapanels-row {
width: 92%;
margin-left: 4%;
margin-right: 4%;
}
}

@media (min-width: 1200px) {
.megapanels_full-width.megapanels_content-contained .megapanels-row {
width: 92%;
max-width: calc(1200px + 2rem);
margin-left: auto !important;
margin-right: auto !important;
}
}

.megapanels_full-width.megapanels_content-contained .suitcase_megapanels {
margin: 0;
}

.megapanels_full-width.megapanels_content-contained .megapanels-pane {
margin: 0;
}

/* ---------------------------------------- */
/* ## BLOCKS
/* ---------------------------------------- */
Expand Down Expand Up @@ -2830,6 +2959,29 @@ td.views-field-field-resource-screenshot img {
min-width: 100px;
}

.player {
padding-bottom: 56.25%;
position: relative;
height: 0;
}

.player iframe {
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
}

/* Strong override for luggage_video.css */

.field-item .embedded-video {
position: static !important;
padding-bottom: 0;
padding-top: 0;
height: auto;
overflow: visible;
}

/* ---------------------------------------- */
/* ## CONTENT EDITING
/* ---------------------------------------- */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
</div>

<?php if (!empty($content['bottom_full'])): ?>
<div class="megapanels_wrapper">
<div class="megapanels_wrapper megapanels-wrapper_full_top">
<div class="megapanels-full megapanels-full_bottom">
<div class="megapanels-pane_full">
<?php print $content['bottom_full']; ?>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
.megapanels-row {
display: flex;
flex-wrap: nowrap !important;
margin: 0 !important;
}

.megapanels-pane {
flex: 1 1 100%;
flex: 1 1 100% !important;
min-width: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
1 change: 1 addition & 0 deletions templates/region--isu_menu.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<li><a href="https://iastate.box.com/">CyBox</a></li>
<li><a href="http://cymail.iastate.edu/">CyMail</a></li>
<li><a href="https://outlook.iastate.edu/">Outlook</a></li>
<li><a href="https://workday.iastate.edu/">Workday</a></li>
<li><a href="https://web.iastate.edu/signons">More Sign Ons...</a></li>
</ul>
</li>
Expand Down
11 changes: 11 additions & 0 deletions templates/zone--content.tpl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php if ($wrapper): ?><div<?php print $attributes; ?>><?php endif; ?>
<div<?php print $content_attributes; ?>>
<?php if ($breadcrumb): ?>
<div id="breadcrumb" class="grid-<?php print $columns; ?>"><?php print $breadcrumb; ?></div>
<?php endif; ?>
<?php if ($messages): ?>
<div id="messages" role="status" class="grid-<?php print $columns; ?>"><?php print $messages; ?></div>
<?php endif; ?>
<?php print $content; ?>
</div>
<?php if ($wrapper): ?></div><?php endif; ?>

0 comments on commit 5c6becd

Please sign in to comment.