<commit_before>/**
 * Copyright (c) 2017, Shopgate, Inc. All rights reserved.
 *
 * This source code is licensed under the Apache 2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { css } from 'glamor';
import colors from 'Styles/colors';

const basic = css({
  color: colors.shade3,
  whiteSpace: 'nowrap',
  span: {
    position: 'relative',
    ':before': { // The strike-through effect is achieved by using the :before pseudo-class.
      borderColor: 'currentColor',
      content: '""',
      position: 'absolute',
      left: 0,
      right: 0,
      top: '50%',
    },
  },
}).toString();

/**
 * Returns a class for the rotated strike-through line.
 * @param {number} angle The calculated angle for the strike-through line.
 * @returns {string} Classname
 */
const getAngleStyle = angle => css({
  span: {
    ':before': {
      borderTop: '1px solid',<commit_msg>Corrected style declaration for the PriceStriked component<commit_after>/**
 * Copyright (c) 2017, Shopgate, Inc. All rights reserved.
 *
 * This source code is licensed under the Apache 2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { css } from 'glamor';
import colors from 'Styles/colors';

const basic = css({
  color: colors.shade3,
  whiteSpace: 'nowrap',
  '& span': {
    position: 'relative',
    ':before': { // The strike-through effect is achieved by using the :before pseudo-class.
      borderColor: 'currentColor',
      content: '""',
      position: 'absolute',
      left: 0,
      right: 0,
      top: '50%',
    },
  },
}).toString();

/**
 * Returns a class for the rotated strike-through line.
 * @param {number} angle The calculated angle for the strike-through line.
 * @returns {string} Classname
 */
const getAngleStyle = angle => css({
  '& span': {
    ':before': {
      borderTop: '1px solid',
{'fraction_non_alphanumeric': 0.13326282390269698, 'fraction_numerical': 0.01269169751454257, 'mean_word_length': 3.122004357298475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4100454', 'n_tokens_mistral': 580, 'n_tokens_neox': 558, 'n_words': 211}