Skip to content

Instantly share code, notes, and snippets.

View ymnj's full-sized avatar

Tom ymnj

View GitHub Profile
drush ev “drupal_set_installed_schema_version(‘aw_content_mgt’, 8410)”
//ev = evaluate
//drupal_set_installed_schema_version = the function to evaluate
//‘aw_content_mgt’ = function arg1 = the module where your install function exists
//8410 = function arg2 = the install function you want to roll-back to.
@ymnj
ymnj / css
Last active June 20, 2018 18:26
.path-team-member-01 {
#block-mainpagecontent {
padding-bottom: 3rem;
.team-member {
.grid-x {
flex-direction: column;
align-items: center;
.media-object-section {
max-width: 300px;
width: 100%;
@ymnj
ymnj / css
Created May 8, 2018 00:36
Using "Image Top" view mode
.path-team-member-01.not-front {
#block-mainpagecontent {
.grid-x.medium-up-2 {
justify-content: center;
}
}
article.team-member {
max-width: 350px;
width: 100%;
.field--name-title {
@ymnj
ymnj / js
Created April 10, 2018 16:51
// change order of contact form
var message = jQuery("#edit-message-wrapper");
message.next().insertBefore(message);
var subject = jQuery("#edit-subject-wrapper");
subject.next().insertBefore(subject);
message.next().insertBefore(message);
subject.next().insertBefore(subject);
// decrease text area height
We couldn’t find that file to show.
.faq-accordion a {
display: block;
text-decoration: none;
}
.faq-accordion a .bio-indicator {
float: right;
}
.faq-accordion a .bio-indicator:after {
content: "+";
}
@ymnj
ymnj / js
Created March 26, 2018 18:09
Slow scroll to element on the page
//SCROLL TO ROLE
jQuery('.team-btns a').click(function(){
event.preventDefault();
var role = jQuery(this).attr('href');
jQuery('html').animate({
scrollTop: jQuery(role).offset().top - 250},
'slow');
});
<div class="grid-x">
<div class="cell large-10 large-offset-1 medium-10 medium-offset-1">
<div class="grid-x">
<div class="cell large-3 align-self-middle">
<img class="napa-award" src="/sites/noeldulac.us1.advisor.ws/files/styles/max_325x325/public/images/2017_NAPA_TopDCAdvisorTeams_Logo-516988-edited_0.png?itok=jomW3Sfv" alt="NAPA">
</div>
<div class="cell large-9">
<h1>AFS 401(k) Retirement Services Honored in NAPA’s Top DC Advisor Teams List</h1>
@ymnj
ymnj / Custom Services
Last active March 13, 2018 21:25
Custom Services Block
.columns {
display: flex;
justify-content: center;
height: 100%;
text-align: center;
flex-direction: column;
}
@ymnj
ymnj / css
Last active February 8, 2018 00:59
.acc-container {
width:100%;
margin:30px auto 0 auto;
overflow:hidden;
border: 1px solid black;
}
.acc-btn {
width:100%;
margin:0 auto;