<commit_before>/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.u2.md',
  name: 'OverlayDropdown',
  extends: 'foam.u2.Element',

  imports: [
    'window'
  ],

  exports: [
    'as dropdown'
  ],

  documentation: 'A popup overlay that grows from the top-right corner of ' +
      'its container. Useful for e.g. "..." overflow menus in action bars. ' +
      'Just $$DOC{ref:".add"} things to this container.',

  axioms: [
    foam.u2.CSS.create({
      code: function CSS() {/*
      ^overlay {
        position: fixed;
        z-index: 1009;
      }

      ^container {
        position: absolute;
        right: 0;
        top: 0;
        z-index: 100;
      }

      ^ {
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
        display: block;
        font-size: 13px;
        font-weight: 400;
        overflow-x: hidden;
        overflow-y: hidden;
        position: absolute;
        width: 125px;
        padding: 10px;
        padding-bottom: -20px;
        margin-bottom: -20px;
        right: 3px;
        top: 4px;
        transition: height 0.25s cubic-bezier(0, .3, .8, 1);
        z-index: 1010;
      }

      ^open {
        overflow-y: auto;
      }

      ^zeroOverlay {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
      }

      ^initialOverlay {
        top: initial;
        bottom: initial;
        left: initial;
        right: initial;
      }

      ^parents {
        z-index: 1000 !important;
      }
    */}
    })
  ],

  constants: {<commit_msg>Update css style.<commit_after>/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.u2.md',
  name: 'OverlayDropdown',
  extends: 'foam.u2.Element',

  imports: [
    'window'
  ],

  exports: [
    'as dropdown'
  ],

  documentation: 'A popup overlay that grows from the top-right corner of ' +
      'its container. Useful for e.g. "..." overflow menus in action bars. ' +
      'Just $$DOC{ref:".add"} things to this container.',

  css: `
    ^overlay {
      position: fixed;
      z-index: 1009;
    }

    ^container {
      position: absolute;
      right: 0;
      top: 0;
      z-index: 100;
    }

    ^ {
      background: white;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
      display: block;
      font-size: 13px;
      font-weight: 400;
      overflow-x: hidden;
      overflow-y: hidden;
      position: absolute;
      width: 125px;
      padding: 10px;
      padding-bottom: -20px;
      margin-bottom: -20px;
      right: 3px;
      top: 4px;
      transition: height 0.25s cubic-bezier(0, .3, .8, 1);
      z-index: 1010;
    }

    ^open {
      overflow-y: auto;
    }

    ^zeroOverlay {
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
    }

    ^initialOverlay {
      top: initial;
      bottom: initial;
      left: initial;
      right: initial;
    }

    ^parents {
      z-index: 1000 !important;
    }
  `,

  constants: {
{'fraction_non_alphanumeric': 0.13630532392559333, 'fraction_numerical': 0.039448364336112894, 'mean_word_length': 1.6934369602763386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1988172', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1054, 'n_words': 274}