Although not explicitly listed, sexual orientation is read in as one of the prohibited grounds of discrimination under the Constitution.
Discrimination, including on grounds of sexual orientation, is criminalized (Penal Code). It is also listed under the Act Implementing the Principle of Equal Treatment, which aims to improve protection against discrimination and harassment.
Discrimination on grounds of sexual orientation is prohibited in the workplace (Employment Relationships Act).
Same-sex sexual activity was decriminalised 1977 and the age of consent for same-sex and opposite-sex sexual activity equalized in 1977 (Penal Code).
Same-sex relationships are recognised under the Civil Partnership Registration Act. The Act grants same-sex couples property rights, rights in case of illness, inheritance and obligations of mutual assistance. However, it does not deal with the relations between the partners or children.
On July 2, 2009, the Constitutional Court of Slovenia held that Article 22 violated the right to non-discrimination under Article 14 of the Constitution on the ground of sexual orientation in that it regulated inheritance for same-sex partners differently, and less favourably, than that for opposite-sex partners. The court ordered that the same rules for inheritance must be applied to both same-sex and opposite-sex couples (https://www.icj.org/sogicasebook/blazic-and-kern-v-slovenia-constitutional-court-of-the-republic-of-slovenia-2-july-2009/).
According to the Marriage and Family Relations Act, joint adoption of children by a couple in a registered partnership is not possible. However, either of the partners in a same-sex union may adopt the biological child of the other.
A revised Family Code extending same-sex couples all rights of marriage was passed by the then-governing coalition, but was subsequently rejected in a referendum held on March 25, 2012 (http://volitve.gov.si/Druzinski2012/).
link to full text in PDF: Slovenia-SOGI Legislation Country Report-2013-eng