interaction design – Best practice for Styling links when used in tables and headings

Should links in data tables be styled like regular text links or only have some indication on hover?

For example Shopify tables have default black text color and only change to blue on hover:

enter image description here

I dont want a table full of blue text when each cell has a link as this might be overkill to the experience when viewed as a whole. I also dont know if its best practice to only indicate they are links when the user hovers.

theming – CSS styling breaks field hide mechanism

I have some jquery set up to hide a radio list field when the user clicks on an adjacent field. I’m trying to style the radio list to display horizontally, but it breaks the jquery. I believe this happens because I am declaring the display value for the radio list in CSS, which overrides the hide function in the code.

The jquery looks like this:

      // apply event handler to radio inputs
      $('.main-field input').change(function(){
        // if 1 or more YES selections are found
        if($('.main-field input:checked').length > 0){
          // hide submit button
          $('.radio-list-field').hide();
        }
        // otherwise
        else{
          // show submit button
          $('.radio-list-field').show();
        }
      });
 });
})(jQuery);

The css portion to style the radio list currently includes this:

.radio-list-item-wrapper {
    display: inline;
    margin: 10px 1em;
    padding: 0;
    list-style: none;
    position: relative;
}

I have tried using flex instead of inline, but that doesn’t work either. None of the other attributes affect functionality.

Is there a way to display a radio list horizontally without declaring the display: inline/flex attribute, or perhaps a different approach that gets me the display I want without breaking the jquery code?

This is for a Drupal 7 site.

Robot Styling on Current Visitors

Admin submitted a new resource:

Robot Styling on Current Visitors – Better distinguishment of Robots on the Current Visitors list

Makes it easier to distinguish Robots on the Current Visitors list at a quick glance.. 👀

Before:

{
“lightbox_close”: “Close”,
“lightbox_next”: “Next”,
“lightbox_previous”: “Previous”,
“lightbox_error”: “The requested content cannot be loaded. Please try again later.”,
“lightbox_start_slideshow”: “Start slideshow”,
“lightbox_stop_slideshow”: “Stop slideshow”,
“lightbox_full_screen”: “Full screen”,
“lightbox_thumbnails”: “Thumbnails”,
“lightbox_download”: “Download”,
“lightbox_share”: “Share”,
“lightbox_zoom”: “Zoom”,
“lightbox_new_window”: “New window”,
“lightbox_toggle_sidebar”: “Toggle sidebar”
}

1617275107870.png

After:
[IMG…

Read more

.

javascript – Styling Muitextfield input background, hides label

I am trying to style Textfield from the global theme, but, I can’t manage to put a colored background for the input only (white), whithout hiding the label when it move inside the input.

I want to have this result :
enter image description here

But, I have this one : enter image description here
I put the white background with transparency, to show that the text is indeed behind it, but, if I set the transparency to no transparency, the label will be fully hidden behind the white background, like this : enter image description here

Here is my theme :


export const testGlobal = createMuiTheme({
  palette: {
    common: {
      black: "#000",
      white: "rgba(255, 255, 255, 1)",

      blue: {
        light: "rgba(184, 244, 255, 1)",
        default: "rgba(0, 219, 255, 1)",
        dark: "rgba(0, 184, 213, 1)",
      },
      red: {
        light: "#ff1744",
        default: "#fd0031",
        dark: "#e3002c",
      },
      orange: {
        light: "#ffc046",
        default: "#ff8f00",
        dark: "#c56000",
      },
      grey: {
        light: "rgba(99, 99, 99, 1)",
        medium: "rgba(99, 99, 99, 1)",
        paper: "rgba(65, 65, 65, 1)",
        default: "rgba(99, 99, 99, 1)",
        dark: "rgba(60, 60, 60, 1)",
      },
    },
  },
});

testGlobal.root = {
  borderColor: "rgba(85, 85, 85, 1)",
};
testGlobal.img = {
  width: "79%",
};
testGlobal.palette = {
  ...testGlobal.palette,
  vumeter: {
    top: "#fd0031",
    mid: "#ff8f00",
    bottom: "rgba(0, 219, 255, 1)",
  },
  playlist: {
    playing: "#ef5350",
  },
  background: {
    light: "rgba(99, 99, 99, 1)",
    medium: "rgba(99, 99, 99, 1)",
    paper: "rgba(65, 65, 65, 1)",
    default: "rgba(99, 99, 99, 1)",
    dark: "rgba(60, 60, 60, 1)",
  },
  primary: {
    light: "rgba(184, 244, 255, 1)",
    main: "rgba(0, 219, 255, 1)",
    dark: "rgba(0, 184, 213, 1)",
    contrastText: "rgba(255, 255, 255, 1)",
  },
  text: {
    primary: "rgba(255, 255, 255, 0.87)",
    secondary: "rgba(255, 255, 255, 0.54)",
    disabled: "rgba(255, 255, 255, 0.38)",
    hint: "rgba(255, 255, 255, 0.38)",
  },
};
testGlobal.overrides = {
  MuiFormLabel: {
    root: {
      background: "black",
      fontWeight: "bolder",
      color: "grey",
      "&.Mui-focused": { color: "grey" },
      paddingLeft: theme.spacing(1),
    },
  },
  MuiInput: {
    root: {
      fontWeight: "bolder",
      background: "white", // the white background that keep hiding my label :(
      padding: theme.spacing(1),
      color: "black",
    },

  },
};

testGlobal.props = {
  MuiInput: { disableUnderline: true },
};

I did not add additional styling to the textfield component

Why would a background get on top of the label? 🙁

sharepoint online – Using Json to format a columns data. Problems with the styling

So I have a column whose data is a multi line field. The problem I am having is it contains a lot of data and stretches out the list. So I tried changing the width and height of the column, but I am having problems. I would like the height to be something like 150px and show the beginning portion of the data and then just fade out the rest of the data that does not fit in the box. I have a working hover feature that shows everything in a pop up.

How to find where WP cforms plugin keeps content of custom styling settings?

I am running two concurrent WP installs (one WP for each language):

domain.com (English)

domain.com/ru (Russian, previously ru.domain.com)

And after transferring website from
ru.domain.com to domain.com/ru

The cforms plugin is not applying the styling (the form still works, but there is no design applied to it).

The kicker: I can’t change anything in WP back end (very strict restrictions).

Only way to change anything on site is via FTP access or mysql database changes.

After further analysis I determined that cforms -> custom styling window is blank on the WP version where contact form has no styling applied.

Even after all custom form stylings being copied in respective FTP folders.

I want to copy the styling in this blank form, but I’m unable to use WP back end (no changes are allowed due to restrictions).

Question is:
Where in FTP settings of cforms plugin could I look for this field via backend or Database?

Example of “blank style” settings page:
https://i.imgur.com/JcOPhr9.png

I understand that this is about a specific plugin, however, I don’t know where to turn and maybe someone could at least point me in right direction?

And here is example how it should look (correct style applied):
https://i.imgur.com/bRKMd2y.png

I really just need to figure out where I can access this particular field via backend FTP or mysql and then styling should work.

Thank you for any help regarding troubleshooting this issue!

theming – CSS problems styling the search box block created by Search API Pages module

I’m using Search API and Search API Pages on Drupal 9 and I’m trying to style the Search API Pages search block. The problem is that when placed anywhere but bottom in the sidebar, the search block overlaps with the block below as seen in the attached pics. This makes the blocks visually too close and also (in Firefox) disables the overlapped part of the search box from being clicked in, which is really annoying. Any suggestions for resolving this?

The other issue I’m having is that the fontawesome search icon only appears within the search box in Firefox. In Chrome and Safari the icon is placed at the top left of the page, relative to the body instead of to the search block. What am I missing here?

Overlap between search block and block below

Another view of the overlap

.search-api-page-block-form-search input {
  width: 100%;
}
.search-api-page-block-form-search .form-item {
  width: 70%;
  float: left;
}
.search-api-page-block-form-search .form-actions {
  width: 30%;
  float: right;
}
.search-api-page-block-form-search .form-type-search input {
  border-right: none !important;
  text-indent: 25px;
  background-color: transparent;
  position: relative;
}
.search-api-page-block-form-search .form-type-search:before {
  content: "f002";
  font-family: FontAwesome;
  position: absolute;
  top: 25px;
  left: 35px;
  background-color: transparent;
}
.search-api-page-block-form-search .form-item,
.search-api-page-block-form-search .form-actions {
  margin: 5px auto!important;
  display: inline-block;
  font-family: Consolas, "courier new";
}
.search-api-page-block-form-search .form-actions input {
  font-family: FontAwesome;
  margin: 0 !important;
}

I don’t know whether I’m allowed to provide a link but you can see the problem here: https://verygomez.com/theatre.
Before downvoting this please note that I’m not a coder. I’m trying my best but I’m making this up as I go along.

Thanks!

html – How can I find and remove WordPress malware resulting in URLs with this styling: / top:0; left:-9999px

Alright, I managed to solve it.

I know that “one size fits all” is not the case with malware. I asked for extra thoughts as someone might have a hint how to approach it as I’m well informed and capable of dealing with these situations through the years.

After numerous failed attempts to search various strings, trying to encode few words in hex and search those, searching through plugins etc. I inspected the cached .html file and noticed that these links were hidden under WooCommerce delivery-info div.

I then searched delivery-info string through all the WP files and I got around 50 hits. I found a suspicious line that one of the developers added, which was calling delivery-info div together with $content string.

I then searched $content string through all the plugins with numerous hits. After searching for a while I finally found the script that was causing it. It was hidden in WPBakery – js-composer/include/inc.php file which should not have existed. One of the lines from the file:

$abc1 = '' . $divclass . '<a href="'.sanitize_context_zero("aHR0cHM6Ly93d3cudGhld3BjbHViLm5ldA==").'">' . $array(array_rand($array) ) . '</a></div>';

I deleted that file & then searched inc.php with a hit in js-composer.php calling for it.

How do I change the styling of the confirmation for Contact Form 7?

I’m using Contact Form 7 on WordPress, and when it says ‘Thank you for sending your email’ or something like that, the text comes out white. How can I change the colour to something else – what would the customisation code be?

css – How do I integrate jQuery-ui autocomplete styling into my public scss?

I’m helping to maintain a plugin I did not original author.

The similar sounding posts I’ve read are older, and I understand the process for adding this support has changed to these steps:

  1. Enqueue the script associated with the widget.

In my functions.php, I have:

wp_enqueue_script('jquery-ui-autocomplete');
  1. Download and customize the jquery-ui.css.

This is where I seem to be stuck.

The plugin uses scss files compiled for distribution. In my public.scss I have added

@import 'jquery-ui.css';

This gets picked up and the widget box appears with the minimal styling.

However, when I try to override or add custom classes later in our scss file…

.ui-autocomplete-loading {
  background-color: red;
}

.ui-autocomplete-category {
  font-weight: bold;
  padding: .2em .4em;
  margin: .8em 0 .2em;
  line-height: 1.5;
  background-color: red;
}

…these styles seem to get ignored.

I suspected my problem was due to my lack of css skills so put together a plain html/script demo. By doing so I was able to get the styling I wanted outside of WordPress. The issue appears to be with how I’m trying to do this in the WordPress environment.

I’ve read others say to use ThemeRoller, but we have styles I’m trying to adhere to, and I didn’t find any useful documentation about how to use ThemeRoller. I figured a small amount of customization would make more sense.

What do I need to do differently?

Edit: I should add:

  1. If I try to modify .ui-autocomplete-input from inside the public.scss, that gets picked up. The issue seems particular to the styling of the widget itself.

  2. I can post a block of my js code for the autocomplete if you think that is helpful. Suffice to say, ui-autocomplete-category is a class associated with the headers the drop down list should have, and it is my understanding the ui-autocomplete-loading is a class internal to jQuery-ui autocomplete lib. So, this has be wondering if I still need to be loading something differently?