Sublime Forum

Werid CSS indentions

#1

Hello, I’m having a frustrating problem with CSS indentation.

When I type some class and press “Enter”, there is an indent before the class declaration.

Class
.author a {}

After pressing “enter”…
obraz_2022-11-30_235734380

What can I do with this? I doesn’t have any plugins/packages which would make the indentions.

0 Likes

#2

Does it happen in safe mode?

0 Likes

#3

Maybe a bit more information about the lines above 74 could provide some hints.

0 Likes

#4

In safe mode, this problem does not occur. I am removing all installed packages and themes and found a package that is the source of this problem.

@deathaxe That’s only clear css.

ul.menu a {
  color: white;
  text-decoration: none;
}

ul.menu a:hover {
  color: #0a2b42;
}

.categories {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  width: 950px;
  padding: 0;
}

h1 {
  font-size: 44px;
  font-weight: 400;
  color: #39a5f1;
  margin-bottom: 20px;
}

.author {
  margin-top: 10px;
  display: inline-block;
}

The source of the problem is the “Color Helper” package, which adds a color preview in the code. Is there any alternative to Sublime Text 4 for this package?

0 Likes

#5

LSP and LSP-css would also add such color phantoms, but if those are related it may be unrelated which plugin adds them.

It rather may be some kind of race condition causing indentation engine to get confused by phantoms being updated in the wrong moment.

0 Likes

#6

Yeah you right. With “LSP” plugin this problem also occurs.
Thanks for help!

0 Likes