Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<br>

<ul class="accordion">
  
  <li>
    <a class="toggle" href="javascript:void(0);"> Domain 1: International support for durable solutions and sustainable outcomes in the host country : Promoting international coherence policies such as CRRF, Global Compact for Refugees and Migrants </a>
    <ul class="inner">
      
      <li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 1.1 </a>
        
        <ul class="inner">
          
          <li>
            <p>Policy Transposition: International policies for forced migration designed to enhance relief and development coherence are translated into the host country government policies.</p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
                Regional inter-governmental policies are established for protection, human mobility, repatriation, and resettlement of forcibly displaced persons among nations with common refugee crises. 
              </p>
             
            </div>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
            <div class="inner">
              <p>
               The host country government participates in international periodic forums  to align its policies with the global policies on forced migration. 
              </p>
             
            </div>
            </li>
           
            </li>
          </li>
        </ul>
      </li>
      <li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 1.2 </a>
        
        <ul class="inner">
          
          <li>
            <p>Policies for Combined Hum/Dev Strategies: To establish mutually agreed outcomes and sustainable solutions at the onset of forced migration crisis. </p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
                Humanitarian and development shared  commitment towards the wellbeing of refugees, migrants, and host communities is reflected in public statements, press releases, or reports. 
              </p>
             
            </div>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
            <div class="inner">
              <p>
               Coordination policies are established between humanitarian and development actors (UN partners, I/NGOs, donors) to achieve sustainable solutions for the self-reliance of forcibly displaced populations and host comunities post crises.
              </p>
             
            </div>
            </li>
           
            </li>
        
          </li>
        </ul>
  <li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 1.3 </a>
        
        <ul class="inner">
          
          <li>
            <p>Donors support program extension and transitional programming: Donors ensure sustainable programming in response to forced migration. </p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
                Humanitarian donors have policies for extending project timelines for long-term and sustainable programming in response to the forced migrations crises. 
              </p>
             
            </div>
          

        </ul>
      </li>
 <li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 1.4 </a>
        
        <ul class="inner">
          
          <li>
            <p>Flexible Funding from International Donors: Humanitarian and development funds are used to aid both forcibly displaced populations and the host communities.</p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
                Host country Policies: Host country government has laid out policies for equitable split of international  humanitarian and development funds across both forcibly displaced and host community populations.
              </p>
             
            </div>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
            <div class="inner">
              <p>
              Development Funding Policies: Bilateral and multilateral donors have established policies to engage with the host country national government for distribution of aid across both forcibly displaced and host community populations. 
              </p>
             
            </div>
            </li>
           
            </li>
        
          </li>
 <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
            <div class="inner">
              <p>
Humanitarian funding Policies: Bilateral and multilateral donors have established policies to split allocated humanitarian funds to both forcibly displaced and host community populations.               </p>
             
            </div>
            </li>
           
            </li>
        
          </li>

        </ul>
      </li>
    </ul>
     

      <li>
    <a class="toggle" href="javascript:void(0);">Domain 2: Host Country Capacities in  improving accountability and sustainable programming in response to forced migration crises.  </a>
    <ul class="inner">
      
      <li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 2.1 </a>
        
        <ul class="inner">
          
          <li>
            <p>Reinforcing host country capacities: To ensure timely emergency response and development programming.</p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
              Comprehensive Refugee Response Plan is adopted and led by the host country government to improve country capacities in response to forced migration crises. 
              </p>
             
            </div>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
            <div class="inner">
              <p>
               A national entity is designated to establish multi-stakeholder policies regarding the rights for all forcibly displaced populations
              </p>
             
            </div>
            </li>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
            <div class="inner">
              <p>
              A national entity exists to safeguard access to rights for all forcibly displaced populations. 
              </p>
             
            </div>
            </li>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #4</a>
            <div class="inner">
              <p>
                National and inter-ministerial agreements are in place to incorporate humanitarian response to forced migration within national development plans and ministerial response plans.
              </p>
             
            </div>
            </li>
          
            </li>
          </li>
      
        </ul>
      </li>
 <li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 2.2 </a>
        
        <ul class="inner">
          
          <li>
            <p>Including forcibly displaced populations within host country’s inequality and poverty reduction plans: Policies include both forcibly displaced persons and host communities. </p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
               Progress toward the Global Compact on Refugees is reported and aligned with the Sustainable Development Goal Target 10.7 by reporting its MGI (Migration Governance Index).
              </p>
             
            </div>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
            <div class="inner">
              <p>
               SDG data reports are disaggregated by forced displacement to address the mandates for the global compact for refugees.
              </p>
             
            </div>
            </li>
          
            </li>
          </li>
       <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
            <div class="inner">
              <p>
               Forcibly displaced populations are included in the host country governments' social protections schemes to  facilitate access to rights (e.g. education, health, labor, and livelihoods). 
              </p>
             
            </div>
            </li>
          
            </li>
          </li>
       <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #4</a>
            <div class="inner">
              <p>
              Ongoing development plans allow for the integration of new and emerging humanitarian programs to forced migration crises. 
              </p>
             
            </div>
            </li>
          
            </li>
          </li>
      
        </ul>
 <li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 2.3 </a>
        
        <ul class="inner">
          
          <li>
            <p>Documented Commitment: Publiy available joint policies towards relief and development coherence.  </p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
                          <p>Documented Commitment: Publiy available joint policies towards relief and development coherence.  </p>

              </p>
             
            </div>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
            <div class="inner">
              <p>
              Priorities articulated in country's emergency response programs to forced migration crises are reflected in the national development plan and strategic reports. 
              </p>
             
            </div>
            </li>
          
            </li>
          </li>
      
      
      </li>
      <li>
        <li>
    
  
      </li>
      <li>
        <li>
          
    </ul>
 <li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 2.4 </a>
        
        <ul class="inner">
          
          <li>
            <p>Gender responsive policies: Formal mechanisms exist to ensure forced migration policies are gender responsive </p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
               National development programs address issues of gender biases and includes gender equity programs for all populations including displaced populations, refugees, migrants, and host communities.  
              </p>
             
            </div>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
            <div class="inner">
              <p>
               Gender inclusion and equity goals address both host communities and refugees and are implemented on sectoral (WASH, Education, Health, Protection) levels.
              </p>
             
            </div>
            </li>
          
            </li>
          </li>
      
    
          </li>

</ul>
<li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 2.5 </a>
        
        <ul class="inner">
          
          <li>
            <p>Evidence-based decision making: The national government policies for forced migration response are adaptive to evidence-based decision-making practices.  </p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
              National government census data are disaggregated by migration status and represent all forcibly displaced populations. 
              </p>
             
            </div>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
            <div class="inner">
              <p>
               The national census includes the demographics of forcibly displaced populations disaggregated by age, sex, origin, and population type as they change through three mechanisms (natural increase, migration status, changes in administrative status). 
              </p>
             
            </div>
            </li>
          
            </li>
          </li>
      
    
          </li>
</ul>
 <li>
       
        
        <a href ="#" class="toggle" style="background-color: #8B4513">
        Goal 2.6 </a>
        
        <ul class="inner">
          
          <li>
            <p>Information Sharing for Accountability: Ensure responsibility and accountability towards forcibly displaced populations and host communities. </p>
             <a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
            <div class="inner">
              <p>
               Data sharing is driven by standardized policies that dictate the scope, intended use, consequences, and challenges of data sharing. 
              </p>
             
            </div>
            <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
            <div class="inner">
              <p>
              Data collection and sharing practices adhere to standardized policies that ensure the protection of privacy and rights of all forcibly displaced persons and host communities.
              </p>
             
            </div>
            </li>
          
            </li>
   
          </li>
      
      <li>
                <a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
            <div class="inner">
              <p>
             The national government facilitates  coherence-related data sharing practices across all humanitarian organizations and national ministries.
              </p>
             
            </div>
            </li>
          
            </li>
   
          </li>
          </li>

      <li>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Pacifico|Open+Sans:300,400,600');

* {
    box-sizing: border-box;
    font-family: 'Open Sans',sans-serif;
    font-weight: 300;
}

a {
    text-decoration: none;
    text-align: center;
    color: inherit;
}

p {
    font-size:1.1em;
    margin: 1em 0;
}

.description {
  margin: 1em auto 2.25em;
}

body {
    width: 100%;
    min-width: 300px;
    max-width: 95%;
    margin: 1.5em auto;
    color: #333;
}

h1 {
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    font-size: 2.5em;
}



ul {
  
    list-style: none;
    padding: 0;
  
    .inner {
        padding-left: 1em;
        overflow: hidden;
        display: none;
      
        &.show {
          /*display: block;*/
        }
    }
  
  
    li {
        margin: .5em 0;
        
        a.toggle {
            width: 100%;
            display: block;
            background: rgba(0,0,0,0.78);
            color: #fefefe;
            padding: .75em;
            border-radius: 0.15em;
            transition: background .3s ease;
          
            
            &:hover {
                background: rgba(0, 0, 0, 0.9);
              
            
            }
        }
    }
}
              
            
!

JS

              
                $('.toggle').click(function(e) {
  	e.preventDefault();
  
    var $this = $(this);
  
    if ($this.next().hasClass('show')) {
        $this.next().removeClass('show');
        $this.next().slideUp(350);
    } else {
        $this.parent().parent().find('li .inner').removeClass('show');
        $this.parent().parent().find('li .inner').slideUp(350);
        $this.next().toggleClass('show');
        $this.next().slideToggle(350);
    }
});
              
            
!
999px

Console